DEV Community

Discussion on: HTTP Methods Explained

Collapse
 
chuchhin profile image
Jesús Sánchez

Hi, very good explanation.

Currenly I use APIs all the time, because we need connect the ERP with other services like invoices, reports, triggers. My question is what happend when you want to use GET but need to send a object (json) in the body. I think you can't send objects with GET then you need to use POST. is correct?

Can you use POST to read or remove or is a bad practices?

I used Signaturit to sign contracts or importants documents and their API is very easy to implement. Is very helpful in Europe because this company complies with European laws.

Regards.

Collapse
 
karaluton profile image
Kara Luton

Hi Jesús! If I'm understanding the question correctly, you'll need to do two separate requests. One with GET to retrieve the information you're requesting and then a POST to update that information.