0

I saw some websites design the API by using POST to delete an item, some use DELETE with parameters to delete the item. which one is more appropriate?

POST

https://xxx/item_delete

request body

item: "ABC"
matured: "True"

or DELETE

https://xxx/item_delete/ABC
VLAZ
  • 26,331
  • 9
  • 49
  • 67
user2201789
  • 1,083
  • 2
  • 20
  • 45

0 Answers0