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
But my API able to supports post/patch request data with query params e.g: [POST] https://api.my-app.com/v1/users?include=roles. This feature request can increase efficiency when create/update resource with included resource on result only with single http request, instead of double http request (post then get request with included).
Can you support this feature request?
The text was updated successfully, but these errors were encountered:
@yosuadc3 This client attempts to follow the JSON:API specification. Do you know if there is official or widespread use of this technique in JSON:API-compliant APIs? Is this functionality coming from an open-source JSON:API server library, or is it custom-coded?
I'm looking through the JSON:API specification https://jsonapi.org/format/ and I can't find a mention about using an include query string parameter in a POST request. The "Inclusion of Related Resources" section, which is where the include query string parameter, is listed under the "Fetching Data" section with only GET request examples. The include query string parameter isn't mentioned in the "Creating, Updating and Deleting" section. Using a query string with POST requests is valid HTTP, but it's rare to do.
I understand the value this would add to reduce requests, but as this library sticks with the JSON:API specification I want to follow its specified functionality rather than adding extensions.
Hello @CodingItWrong , currently
restate-client
supports create/update resource only data.reststate-client/src/Resource.js
Lines 77 to 92 in 08f8f2d
But my API able to supports post/patch request data with query params e.g:
[POST] https://api.my-app.com/v1/users?include=roles
. This feature request can increase efficiency when create/update resource with included resource on result only with single http request, instead of double http request (post then get request with included).Can you support this feature request?
The text was updated successfully, but these errors were encountered: