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 8243523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:33:05+00:00 2026-06-07T21:33:05+00:00

This is a follow up question to : Transactions in REST? How does one

  • 0

This is a follow up question to :
Transactions in REST?

How does one implement a REST API that offers full transaction capabilities to it’s clients?

For example, if a client wants to create a transaction that will do the following operations:

  • create one or more objects.
  • update one or more objects.
  • delete one or more objects.

While it’s a valid requirement for a transaction, it seems to break the REST requirements to use PUT to create, POST to update and DELETE to delete.

My current solution involves handling the entire system as one hierarchical object structure and using the POST operation. For example:

POST /system
{
    "Users" : [
        {
            "ID":"123",
            "name":"bob"   
            // update the user with ID matching 123, 
            // set his name to "bob"
        },
        {
            "ID":"456",
            "delete":"true"
            // trigger a delete on user with ID 456
        }
    ],
    "Products" : [
        {
            "name":"foo"   
            // create a product named "foo" since no ID is provided
        },
    ]
}

So far, this satisfies most REST requirements except for the “delete” flag which isn’t really a piece of data.

I’m curious to know if anyone found a better solution.

  • 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-06-07T21:33:07+00:00Added an answer on June 7, 2026 at 9:33 pm

    Agree With Jan that you need to handle at the serverside.but down side is badly maintainble code.Yes my experience with Restful applications suggest that adhering to PUT & DELETE verbs in RESTFul Architecture is pretty tough as various browser version support is far limited for them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow-on question from the one I asked here . Can constraints
This is a follow-up question to this one . Consider this example: #include <iostream>
This is like a follow-up question to this one . Basically what I'm doing
this is a follow up question from this one , I don't want to
this is a follow up question from my previous one. you can find it
This is a follow-up question to Javascript Serialization of Typed Objects . That solution
This is a follow up question from Calling constructor in return statement . This
This is a follow up question to a previous question I asked about calculating
This is a follow-up question to ASP.NET How to pass container value as javascript
This is a follow-up question to this question I asked earlier. Btw thanks Neil

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.