Go REST
S

How to DELETE my POST?

salted chicken about 4 years ago 4607 views 3 replies

I have successfully POST data but don't know the syntax for DELETE, any help?

3 replies
Z
zeevy about 4 years ago

curl -i -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization: Bearer ACCESS-TOKEN" -XDELETE "https://gorest.co.in/public/v2/posts/1234"

Is this not working for you? Your request method should be delete

S
salted chicken about 4 years ago

Owh sorry, I'm asking without read full documentation, yes it worked, sorry for troubling.

Z
zeevy about 4 years ago

No problem, you are welcome

Your reply

Markdown supported