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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 aDELETE
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.