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
ZachDaniel
ZachDaniel2y ago
sounds like a bug to me So you're sending a PATCH to an update endpoint and getting 201?
gordoneliel
gordonelielOP2y ago
That is correct, happens on both a regular update, and a manual one
gordoneliel
gordonelielOP2y ago
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.
gordoneliel
gordonelielOP2y ago
I can send a pr in for update to 200 instead?
ZachDaniel
ZachDaniel2y ago
Yes please 🙂 Surprised no one has already https://jsonapi.org/format/#crud-updating-responses-200
gordoneliel
gordonelielOP2y ago
Cool, watch out for a PR

Did you find this page helpful?