GET /v1/:account/projects/:project

Displays the project specified including links to all further linked resources (e.g. resource files) and links to more actions that can be called.

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.json?auth_token=token
{
  "links": [
    {
      "rel": "self",
      "href": "https://api.lingohub.com/v1/acme/projects/new-project",
      "type": "application/json"
    },
    {
      "rel": "weburl",
      "href": "https://lingohub.com/acme/projects/new-project/editor",
      "type": "text/html"
    },
    {
      "rel": "translations",
      "href": "https://api.lingohub.com/v1/acme/projects/new-project/translations",
      "type": "application/json"
    },
    {
      "rel": "resources",
      "href": "https://api.lingohub.com/v1/acme/projects/new-project/resources",
      "type": "application/json"
    },
    {
      "rel": "search",
      "href": "https://api.lingohub.com/v1/acme/projects/new-project/resources/search",
      "type": "application/json"
    }
  ],
  "title": "New Project",
  "owner_email": "[email protected]",
  "description": "Description of this project",
  "project_locales": [
    "en"
  ],
  "created_at": "2012-07-10T20:40:49+02:00",
  "updated_at": "2012-07-10T20:40:49+02:00"
}
curl -X GET https://api.lingohub.com/v1/acme/projects/kaboom.xml?auth_token=token
<?xml version="1.0" encoding="UTF-8"?>
<project>
  <links>
    <link>
    <rel>self</rel>
    <href>https://api.lingohub.com/v1/acme/projects/new-project</href>
    <type>text/xml</type>
    </link>
    <link>
    <rel>weburl</rel>
    <href>https://lingohub.com/acme/projects/new-project/editor</href>
    <type>text/html</type>
    </link>
    <link>
    <rel>translations</rel>
    <href>https://api.lingohub.com/v1/acme/projects/new-project/translations</href>
    <type>text/xml</type>
    </link>
    <link>
    <rel>resources</rel>
    <href>https://api.lingohub.com/v1/acme/projects/new-project/resources</href>
    <type>text/xml</type>
    </link>
    <link>
    <rel>search</rel>
    <href>https://api.lingohub.com/v1/acme/projects/new-project/resources/search</href>
    <type>text/xml</type>
    </link>
  </links>
  <title>New Project</title>
  <owner-email>[email protected]</owner-email>
  <description>description of the project</description>
  <project-locales>
    <project-locale>en</project-locale>
  </project-locales>
  <deactivated-at nil="true"></deactivated-at>
  <created-at>2012-07-10T20:40:49+02:00</created-at>
  <updated-at>2012-07-10T20:40:49+02:00</updated-at>
</project>


Was this Helpful ?   yes     no Chat with us