user_1357
user_1357

Reputation: 7940

How to implement delete api call

Currently I am implementing API calls using Servlet.

From reading the references, I got the idea to use POST whenever you change the database, and GET is simply for fetching the data.

I need to implement a call to delete an item from the database. Should I implement this with POST or GET?

Upvotes: 0

Views: 142

Answers (1)

Bozho
Bozho

Reputation: 597234

Yes, use doPost(..). If you are making a REST API you can consider doDelete(..)

Upvotes: 2

Related Questions