loopback-component-jsonapi
loopback-component-jsonapi copied to clipboard
JSONAPI support for loopback.
Currently its not possible to specify the accepts content type for json api in the loopback explorer. Its not currently possible to do this in a boot script or component...
## Description This is the big feature we still need to support. The current way to support these relationships is going to have to be to overwrite the remoting relationship...
Example of failing urls: GET http://localhost:3000/api/posts/9/author?include=posts ``` json { "errors": [ { "status": 500, "source": "", "title": "TypeError", "code": "", "detail": "Cannot read property 'keyFrom' of undefined" } ] }...
Some responses are coming back from the server with: ``` Content-Type: application/vnd.api+json; charset=utf-8 ``` Others just: ``` Content-Type: application/vnd.api+json ```
Spare fieldsets is where the data returned from the server can be slimmed down by fields eg. given the following data fetched using GET /api/projects/1 ``` json { "data": {...
Should be a very simple change. Just need to add a case to switch statement that falls through to json. See discussion here: https://github.com/strongloop/loopback/issues/445#issuecomment-150923129 **TODO:** - [ ] Make sure...
Now that I think supertest/superagent has added support for application/vnd.api+json, (see https://github.com/visionmedia/superagent/issues/753) we should be able to modify all our tests to use Content-Type: application/vnd.api+json instead of application/json This would...