DEV Community

Discussion on: Axios PUT Verb

Collapse
 
egeriis profile image
Ronni Egeriis Persson

It is a good example of why it's important for APIs to have the same argument, when it might be expected by the consumer.

While it's unlikely that you'll send a request body with a GET or a DELETE request and that makes it understandable that those are omitted, the question is if there might be an even better way to construct the Axios API so it doesn't lean into issues like these.

Same principles apply to application code.