-
-
Save manuelmitasch/2e667f35b2ee06b1db8a to your computer and use it in GitHub Desktop.
Ghost API vs. JSON API payload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"posts": [ | |
{ | |
"id": 20, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 19, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 18, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 17, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 16, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 15, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 14, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 13, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 12, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 11, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 10, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 9, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 8, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 7, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 6, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 5, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 4, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 3, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 2, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
{ | |
"id": 1, | |
"title": "asdf", | |
"author": { | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
}, | |
}, | |
], | |
"page": 1, | |
"limit": 15, | |
"pages": 1, | |
"total": 15 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"links": { | |
"posts.author": { | |
"href": "https://someblog.ghost.io/ghost/api/v0.1/author/{posts.author}", | |
"type:" "people" | |
} | |
}, | |
"posts": [ | |
{ | |
"id": 20, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 19, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 18, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 17, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 16, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 15, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 14, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 13, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 12, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 11, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 10, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 9, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 8, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 7, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 6, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 5, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 4, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 3, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 2, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
{ | |
"id": 1, | |
"title": "asdf", | |
"links": { | |
"author": "1" | |
}, | |
}, | |
], | |
"linked": { | |
"people": [ | |
{ | |
"id": 1, | |
"uuid": "ba9c67e4-8046-4b8c-9349-0eed3cca7529", | |
"name": "manuel_mitasch", | |
"slug": "manuel_mitasch", | |
"email": "manuel@cms.mine.nu", | |
"image": null, | |
"cover": null, | |
"bio": "", | |
"website": "", | |
"location": "", | |
"accessibility": null, | |
"status": "active", | |
"language": "en_US", | |
"meta_title": null, | |
"meta_description": null, | |
"created_at": "2014-02-15T20:02:25.000Z", | |
"updated_at": "2014-03-10T13:38:46.000Z" | |
} | |
] | |
}, | |
"page": 1, | |
"limit": 15, | |
"pages": 1, | |
"total": 15 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment