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
Hi @aaronweatherall,
you're right! I have fixed this issue.
To support POST requests with client generated id's I have added a new optional parameter "forceCreate".
The new tag is 1.2.0
Hey Team, I'm attempting to implement this library and am having trouble with the fact that it doesn't seem to support
PATCH
for updating records.As per the JsonAPI documentation, updates should be done via a
PATCH
request and not aPOST
.See http://jsonapi.org/format/#crud-updating
Here's what I mean.
vendor/enm/json-api-client/src/JsonApiClient.php
When using Guzzle, this generates a
POST
request for update or create - which fails on our API.I'n not sure if this is an issue with the code or a documentation issue?
Here's the implementation code (Note this also fails without setting the Content Type manually).
Obviously this can be fixed with something like the following, but this would probably be a breaking change without refactoring save entirely.
Thoughts?
The text was updated successfully, but these errors were encountered: