-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Data API cleanup for consistency #2124
Comments
This was referenced Feb 4, 2014
Closed
Closed
sebgie
added a commit
to sebgie/Ghost
that referenced
this issue
Feb 27, 2014
first 10 % of TryGhost#2124 - added initial version of JSON API tests - renamed error.errorCode to error.code - renamed tags.all to tags.browse for consistency
ErisDS
pushed a commit
that referenced
this issue
Feb 28, 2014
first 10 % of #2124 - added initial version of JSON API tests - renamed error.errorCode to error.code - renamed tags.all to tags.browse for consistency
This was referenced Mar 6, 2014
Closed
Closed
Closed
Closed
ErisDS
pushed a commit
that referenced
this issue
Mar 14, 2014
first 10 % of #2124 - added initial version of JSON API tests - renamed error.errorCode to error.code - renamed tags.all to tags.browse for consistency
sebgie
added a commit
to sebgie/Ghost
that referenced
this issue
Mar 18, 2014
another 2 % of TryGhost#2124 - renamed `/ghost/api/v0.1/posts/getSlug/ to `/ghost/api/v0.1/posts/slug/` - renamed method getSlug to generateSlug
Merged
ErisDS
changed the title
[Draft] JSON Data API cleanup for consistency
JSON Data API cleanup for consistency
Apr 10, 2014
This was referenced Apr 15, 2014
This was referenced Apr 17, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The API needs:
Once this work is complete, we should rename the API routes from v0.1 to v1.0
Update by @ErisDS 10-04-14:
As a result of the discussion which occurred in #2362, we now have a clear plan of what we want to do with our API in order to make it clear, consistent and easy to make decisions about how things should work.
We want to move our API towards supporting JSON-API, but with one major difference - all included objects should get included inline, rather than using linked objects. Linked object support will be added in the future via some sort of switch.
The move towards the JSON API response format includes a number of distinct changes:
posts
,tags
,users
,settings
etc.meta
key, this will be used to return pagination data{ posts: [{ id: 1, uuid: ... } ] }
author
key, not anauthor_id
key.include
.http://my
blog.com/ghost/api/posts/12`meta
objectThere are quite a few changes, some of them bigger and harder than others, the following is a list of issues which should get us from where we are to where we want to be.
Post API: move to primary document format #2580, Tags~~ Tag API: move to primary document format #2605~~, UsersUser API: move to primary document format #2593, SettingsSettings API: move to primary document format #2606, DB DB API: request / response format #2647?, Mail Mail API: Move to primary doc format + status messages #2650?,Error message responses #2643, Add distinct error classes #2690The text was updated successfully, but these errors were encountered: