VATUSA / api

VATUSA's RESTful API for facilities
https://api.vatusa.net
MIT License
3 stars 10 forks source link

Adding visitor that already exists should return status 409 #64

Closed dhawton closed 3 years ago

dhawton commented 3 years ago

Under RESTful, when a resource exists that is trying to be created/added, the more appropriate response is 409 https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409

https://github.com/VATUSA/api/blob/master/app/Http/Controllers/API/v2/FacilityController.php#L730

dhawton commented 3 years ago

Thinking about it, this might be a breaking change.. will keep this in mind for v3.