rcos / rcos-data

RCOS database definition and internal API.
MIT License
3 stars 1 forks source link

Upsert routes should return 201 when creating new resource #2

Closed Apexal closed 3 years ago

Apexal commented 3 years ago

Currently upsert routes like /users/{username will return 200 OK for either updating or creating the user. It would be useful if the response status code reflected whether a resource was created (201) or founded and updated (200).