You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the API´s I have been using lately all deliver a json object at the top level
Readning here: http://jsonapi.org/format/#fetching
we can see the following statement:
A JSON object MUST be at the root of every JSON API request and response containing data. This object defines a document’s “top level”.
But when using restangular it states that it should be an array.. why is that?
I´m not saying that this is wrong.. just want to understand why.
Note: I already use RestangularProvider.addResponseInterceptor to handle this for me so I have no real issue.
The text was updated successfully, but these errors were encountered:
@logvinoleg89 do you know the reasoning behind it? Why it was decided to do it this way?
Perhaps we should revise it and see if it should be changed to match jsonapi?
Most of the API´s I have been using lately all deliver a json object at the top level
Readning here: http://jsonapi.org/format/#fetching
we can see the following statement:
But when using restangular it states that it should be an array.. why is that?
I´m not saying that this is wrong.. just want to understand why.
Note: I already use RestangularProvider.addResponseInterceptor to handle this for me so I have no real issue.
The text was updated successfully, but these errors were encountered: