Skip to content

Commit

Permalink
change patch http response code from 201 to 200 to match jsonapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
gordoneliel committed Jul 31, 2023
1 parent c4e5498 commit 3f4ef7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash_json_api/controllers/patch.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule AshJsonApi.Controllers.Patch do
|> Helpers.update_record()
|> Helpers.fetch_includes()
|> Helpers.render_or_render_errors(conn, fn request ->
Response.render_one(conn, request, 201, request.assigns.result, request.assigns.includes)
Response.render_one(conn, request, 200, request.assigns.result, request.assigns.includes)
end)
end
end

0 comments on commit 3f4ef7b

Please sign in to comment.