Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6588111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:00:21+00:00 2026-05-25T17:00:21+00:00

I send a delete request to server as like: @RequestMapping(value = /user/{userId}, method =

  • 0

I send a delete request to server as like:

@RequestMapping(value = "/user/{userId}", method = RequestMethod.DELETE)

for a single user delete. However what to do when multiple users wants to be deleted? I want to obey REST architecture but I want to see the another ways from sending multiple delete requests?

PS: Is this a suitable way:

@RequestMapping(value = "/user", method = RequestMethod.DELETE, headers = "Accept=application/json")
    public void deleteUser(HttpServletResponse response, @RequestBody String users) throws IOException {
        ...
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:00:22+00:00Added an answer on May 25, 2026 at 5:00 pm

    since rest is resource oriented arch.

    try design a higher level domain object which represents ‘multiple users’ resource ,

    do delete on that object.

    maybe

    @RequestMapping(value = "/users/expired", method = RequestMethod.Delete)
    

    the great book ‘restful web services cookbook‘ by Subbu Allamaraju , oreilly , talk about this topic:

    • chapter 11.10, how to batch process similar resources;
    • chapter 11.11, how to trigger batch operation;
    • chapter 11.12, when to use post to merge multiple request ;
    • chapter 11.13, how to support batch request
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When a user clicks a link, I would like to send an AJAX request
I need my program to send a request to a server. The problem is,
Is it possible to send a HTTP DELETE request from the shell and if
How can I send a DELETE request with delphi 7 and the ICS component
I need to send PUT and DELETE along with POST, GET to a REST
I send an email from my smtp server, for example, setting From to anyemail@anydomain.com
I Send Iqueryable to a function that is below void Method<T>(ref IQueryable<T> qu) {
In PHP, I'm using curl to send a delete to the fb graph api
I want to make a POST request to my Controller with jquery. function Send()
im currently setting up asp.net to accept DELETE http verb in the application. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.