-
Notifications
You must be signed in to change notification settings - Fork 3
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
List endpoints should return JSON-LD #7
Comments
Just checking on this, we'd previously had consensus that using JSON API The idea with the above was to include |
Yep, we agreed to use this style of paging, e.g. an array of responses and specific link relations to handle paging (next, previous, etc). But the goal is for all the API responses to be valid JSON-LD and for there to be a single context declared. This is first time I've seen really looked at what we're using in terms of syntax, rather than commenting on general approach. As another reference, Hydra defines a response as a collection, with members and a view with similar links.: http://www.hydra-cg.com/spec/latest/core/#collections Have previously suggested this for RPDE too: openactive/realtime-paged-data-exchange/issues/54 |
Makes sense. Hydra is similar and quite nice too. Though they have a Also suggest we define So example below:
|
The list endpoints currently return a JSON structure like this:
They should return a doc which:
@context
propertyWe might want to use an ItemList http://schema.org/ItemList
The text was updated successfully, but these errors were encountered: