GET /v1/:account/projects/:project/resources

Display resources for the project specified.

Path Parameters

  • account (username of project owner)
  • project (project url, e.g. “Sample Project” -> “sample-project”)

Required Parameters

Example

curl -X GET https://api.lingohub.com/v1/acme/projects/kaboom/resources.json?auth_token=token
{
  "links": [
    {
      "rel": "self",
      "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources",
      "type": "application/json"
    }
  ],
  "members": [
    {
      "name": "en.yml",
      "project_locale": "en",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/en.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "de.yml",
      "project_locale": "de",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/de.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "public.en.yml",
      "project_locale": "en",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/public.en.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "public.de.yml",
      "project_locale": "de",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/public.de.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "simple_form.en.yml",
      "project_locale": "en",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/simple_form.en.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "simple_form.de.yml",
      "project_locale": "de",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/simple_form.de.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "timezones.en.yml",
      "project_locale": "en",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/timezones.en.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    },
    {
      "name": "timezones.de.yml",
      "project_locale": "de",
      "links": [
        {
          "rel": "self",
          "href": "https://api.lingohub.com/v1/acme/projects/kaboom/resources/timezones.de.yml?path=config/locales",
          "type": "text/yaml"
        }
      ]
    }
  ]
}
curl -X GET https://api.lingohub.com/v1/acme/projects/kaboom/resources.xml?auth_token=token
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<links>
  <link>
  <rel>self</rel>
  <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources</href>
  <type>text/xml</type>
  </link>
</links>
<members>
<member>
  <name>en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>formats.en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/formats.en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>formats.de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/formats.de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>languages.en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/languages.en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>languages.de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/languages.de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>public.en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/public.en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>public.de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/public.de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>simple_form.en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/simple_form.en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>simple_form.de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/simple_form.de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>timezones.en.yml</name>
  <project-locale>en</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/timezones.en.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
<member>
  <name>timezones.de.yml</name>
  <project-locale>de</project-locale>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/kaboom/resources/timezones.de.yml?path=config/locales</href>
    <type>text/yaml</type>
    </link>
  </links>
</member>
</members>
</resources>


Was this Helpful ?   yes     no Chat with us