shared-housing
shared-housing copied to clipboard
Conform REST calls to w3 HTTP spec
Overview
Conform REST calls to w3 HTTP spec.
Action Items
Also, should think about which HTTP spec version to adhere to. This will be reviewed as a separate ticket.
Minimally, PUT /candidates/<candidateId> should be updating the record, if not, creating a new record. Currently, the route does not update the existing candidate resource that belongs to the candidateId passed in.
@candidate_routes.route('/candidates/<candidateId>', methods=['PUT'])
Research needed. Specifically, with finding out if other routes are not conforming.
Resources/Instructions
Below is the HTTP 1.1 spec for methods. https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9