Supported Formats

json

Examples

curl  -H 'Authorization: CHANGEME' http://localhost:10000/api/v1/resources/1 | jsonlint
{
  "data": {
    "id": "1",
    "type": "resource",
    "attributes": {
      "id": 1,
      "title": "T.Y.F.F.S.H., 2011",
      "resource_type": "still_image",
      "canonical_id": "c4ca4238a0b923820dcc509a6f75849b",
      "source_uri": "https://coyote.pics/wp-content/uploads/2016/02/Screen-Shot-2016-02-29-at-10.05.14-AM-1024x683.png",
      "created_at": "2017-11-06T16:17:49.630Z",
      "updated_at": "2017-11-06T16:55:10.207Z",
      "resource_group": "collection"
    },
    "relationships": {
      "organization": {
        "data": {
          "type": "organization",
          "id": "1"
        }
      },
      "representations": {
        "data": [
          {
            "type": "representation",
            "id": "1"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "1",
      "type": "organization",
      "attributes": {
        "title": "Acme Museum"
      }
    },
    {
      "id": "1",
      "type": "representation",
      "attributes": {
        "status": "approved",
        "content_uri": null,
        "content_type": "text/plain",
        "language": "en",
        "text": "A red, white, and blue fabric canopy presses against walls of room; portable fans blow air into the room through a doorway.",
        "created_at": "2017-11-06T16:17:49.811Z",
        "updated_at": "2017-11-06T16:19:23.998Z",
        "metum": "Short",
        "author": "effie.boyle@carroll.org",
        "license": "Et quo dignissimos ex. Non optio minima eum qui. Placeat adipisci id omnis amet rem pariatur."
      },
      "relationships": {
        "resource": {
          "meta": {
            "included": false
          }
        }
      },
      "links": {
        "self": null
      }
    }
  ],
  "jsonapi": {
    "version": "1.0"
  }
}