-
Notifications
You must be signed in to change notification settings - Fork 5
Extending JSON-API compatibility #5
base: master
Are you sure you want to change the base?
Conversation
By all means please feel free to continue. Thanks for your interest. |
@stephenmuss I finished up work on extending argo to handle included resources. I have on place that may need a review. Thanks again. |
Thank you very much. When I get some spare time over the course of the week I will review it. |
I'm getting an exception when running the example app and requesting /v1/achievments/1
|
@stephenmuss Fixed the bug which also makes the feature more tolerant of different data structures being passed as I also added |
Thanks. I'll check it out. |
I think when we have included resources we will also need to include the e.g. "relationships": {
"hero": {
"links": {
"related": "/v1/achievements/1/hero"
},
"data": {
"type": "heroes",
"id": "1"
}
}
} http://jsonapi.org/format/#document-resource-object-relationships |
Looks like you're right about that: I'll work on that this week. |
I'm experimenting with added support for compound documents and resource identifier objects based on work started by @joshuamiller.
?includes=<resource>
req param. returns400
error if client attempts to fetch included resources via?included
param per json-api spec.Example map returned from request handler: