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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:56:09+00:00 2026-05-23T10:56:09+00:00

I want to create a restful service that acknowledges a previous request and gets

  • 0

I want to create a restful service that acknowledges a previous request and gets the next message in a single call. This saves on unnecessary calls to the server. Is it acceptable to perform two operations in a single rest call? If so what rest verb would you use as it seems like a combination of get and put?

Excuse my ignorance as this is new to me.

  • 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-23T10:56:09+00:00Added an answer on May 23, 2026 at 10:56 am

    Here is one way to transfer state to a server, and in the response acknowledge the receipt of the content, whilst returning an additional response. There does not exist any mechanism in the protocol to do this generically, but you can create resources that perform these combined operations.

    GET /Step1
    =>
    200 OK
    Content-Type: application/vnd.hal+xml
    <resource rel="self" href="http://example.org/step1">
       <title>Hello User</title>
       <link rel="next" href="http://example.org/step2" />
    <resource>
    
    
    POST http://example.org/step2
    <!-- Insert Content here -->
    =>
    200 OK
    Content-Type: application/vnd.hal+xml
    <resource rel="self" href="http://example.org/step2">
       <title>Thank you for your content</title>
       <response>This is your answer</response>
       <link rel="next" href="http://example.org/step3" />
    <resource>
    

    I’m using hal as media type just as an example because it has a well defined way of including links. Also, I am abusing the standard “next” link relation as you normally use a GET with next. You would probably need a custom link relation to really do what I am suggesting.

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

Sidebar

Related Questions

With a RESTful service you can create, read, update, and delete resources. This all
I am new to Guice. I want to create a server application with RESTful
I want to create a function that performs a function passed by parameter on
I want to create a simple http proxy server that does some very basic
I'm attempting to create a RESTful service in CakePHP but I've hit a bit
I have a simple RESTful web service that print Hello World ! I'm using
I am attempting to add BASIC authentication to a RESTful web service that I
I have a RESTful service that I am developing in WCF . I am
I'm building a web service with a RESTful interface (lets call it MY_API ).
I'm building a web service with a RESTful interface (lets call it MY_API ).

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.