Skip to content

Instantly share code, notes, and snippets.

@trepidity
Created June 23, 2016 16:27
Show Gist options
  • Select an option

  • Save trepidity/e21051dffd26fc33c73f2ee3cfef690a to your computer and use it in GitHub Desktop.

Select an option

Save trepidity/e21051dffd26fc33c73f2ee3cfef690a to your computer and use it in GitHub Desktop.
https://frank-api-dev-pr-11.herokuapp.com/entries
JSON DATA
{ "data":
{ "type": "entries",
"relationships": {
"profile":
{ "data":
{ "type": "profiles", "id": "1" }
}
},
"attributes": {
"received": false,
"private": false,
"note": "Example note",
"rating": 1,
"linked-profile-id": 6
}
}
}
JSON RESPONSE
{
"data": {
"id": "1",
"type": "entries",
"links": {
"self": "https://frank-api-dev-pr-11.herokuapp.com/entries/1"
},
"attributes": {
"received": false,
"note": "Example note",
"rating": 1,
"private": false,
"linked-profile-id": 6,
"occurred-on": "2016-06-23T16:26:34.123Z"
},
"relationships": {
"profile": {
"links": {
"self": "https://frank-api-dev-pr-11.herokuapp.com/entries/1/relationships/profile",
"related": "https://frank-api-dev-pr-11.herokuapp.com/entries/1/profile"
}
},
"comments": {
"links": {
"self": "https://frank-api-dev-pr-11.herokuapp.com/entries/1/relationships/comments",
"related": "https://frank-api-dev-pr-11.herokuapp.com/entries/1/comments"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment