Closed tfogo closed 6 years ago
Shouldn't PUT /collection return a 201 if it creates resources? Currently it returns a 200.
PUT /collection
technically, PUT /collection is replacing the collection, hence the 200. PUT /collection/:id, on the other hand, will return 201 if it results in a new document.
PUT /collection/:id
Ah I see - 201 is for single resources
Shouldn't
PUT /collection
return a 201 if it creates resources? Currently it returns a 200.