AshJsonAPI Responses
When updating a resource backed by jsonapi, responses return a 201 instead of 200, is this a bug or am I doing something wrong?
6 Replies
sounds like a bug to me
So you're sending a
PATCH
to an update endpoint and getting 201?That is correct, happens on both a regular update, and a manual one
Looks like it’s here:
https://github.com/ash-project/ash_json_api/blob/main/lib/ash_json_api/controllers/patch.ex
GitHub
ash_json_api/lib/ash_json_api/controllers/patch.ex at main · ash-pr...
A JSON:API extension for the Ash Framework. Contribute to ash-project/ash_json_api development by creating an account on GitHub.
I can send a pr in for update to 200 instead?
Yes please 🙂
Surprised no one has already
https://jsonapi.org/format/#crud-updating-responses-200
Cool, watch out for a PR