DEV Community

Discussion on: Axios PUT Verb

Collapse
Sloan, the sloth mascot
Comment deleted
Collapse
denvercoder profile image
Tim Myers Author • Edited

First of all I said the code is very similar. Meaning that my two code blocks are exactly the same except for

axios.put(

axios.delete(

But thank you SO very much for explaining to me that .put will send an HTTP PUT and .delete will perform an HTTP DELETE.

I really appreciate the fact that you explain basic principles to someone that has been writing software since 1986.

Collapse
Sloan, the sloth mascot
Comment deleted
denvercoder profile image
Tim Myers Author

It’s just really shitty when you break down basic concepts to someone that took the time to write a post.

I clearly say that I copy/pasted the two methods and that they are identical except for the line where the verb is. 🤷🏻‍♂️

And then you start in with:

.put() is for an HTTP PUT.

You would think that maybe you would give someone the benefit of the doubt and not just assume that everyone is a moron and so far beneath you that you have to explain basic concepts to them.

Maybe just assume that everyone knows everything that you know. 🤷🏻‍♂️

😏

Collapse
denvercoder profile image
Tim Myers Author

I know exactly that DELETE is supposed to delete a resource. I mentioned in the article that I was probably not using it correctly but we don't have a choice. I AM deleting a resource for the user but I'm just moving it from a status of 'submitted' to a status of 'rejected'.

I had to obfuscate a lot of the details of what I'm doing because I work for a healthcare company and I can just be dropping IP on dev.to.