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
Post API: Returning additional objects #2620
Comments
We could take a cue from JSONAPI and include it under the top level
|
More questions:
|
Trying desperately to thing of a better name than Plural would probably be a good idea though - I imagine one day having posts requested for a particular tag by a particular author. Then there is text search... |
I think that what is implemented right now is a filter that exactly matches one tag object and then returns all posts that are related with the tag. Maybe I don't think that this issue is related to search since a search term is never represented by an object available in our database? |
|
closes TryGhost#2620 - moved aspect -> filters - updated tests - fixed inconsistency in pagination object
This issue is a result of the API format discussion in #2362, and is part of a larger project to move our API towards the JSON-API format which is documented in the Epic: #2124. This is one step in the journey towards achieving the Post JSON object format laid out in #2347, and is related to #2604.
The posts API is currently the most functional API. It is the only API which handles proper browse requests with pagination and other options. This is logical and will continue to be built upon.
One of the extra features in the post browse request, is the ability to return all the posts which have a particular tag. This will soon be expanded to also allow you to request all the posts which have a particular user. When making these requests, the object queried for (tag or user) is also included in the response.
Currently this object is returned as a top level property called
aspect
:We want to move this
aspect
object into themeta
object:We also want to consider whether
aspect
is the right name for this object, or if there is a better name for it... any suggestions?The text was updated successfully, but these errors were encountered: