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

  • Home
  • SEARCH
  • 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 3631274
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:22:35+00:00 2026-05-19T00:22:35+00:00

I have a back-end service that creates unique identifiers for resources. The general idea

  • 0

I have a back-end service that creates unique identifiers for resources.

The general idea is that resources are saved and versioned, so you can perform:
GET http://service/sales/targets/7818181919/latest
or
GET http://service/sales/targets/7818181919/4 for version 4, and so on.

My question is about the most correct way to upload these resources in the first place.

How about:
PUT http://service/sales/targets/ returning 303 See other /service/sales/targets/

It seems a little wrong as you should PUT and GET from exactly the same place using a resource-oriented interface, but I can’t think of a better option. Any ideas?

  • 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-19T00:22:35+00:00Added an answer on May 19, 2026 at 12:22 am

    You should set the Location header when you POST or PUT the resource. The target for the POST should be the appropriate ‘container’ resource (http://service/sales/targets/ in your case)

    See here for more details on the HTTP Headers. I’ve quoted the relevant section below. Hope that helps …

    14.30 Location

    The Location response-header field is
    used to redirect the recipient to a
    location other than the Request-URI
    for completion of the request or
    identification of a new resource.

    For
    201 (Created) responses, the Location
    is that of the new resource which was
    created by the request. For 3xx
    responses, the location SHOULD
    indicate the server’s preferred URI
    for automatic redirection to the
    resource.


    The field value consists of
    a single absolute URI.

       Location       = "Location" ":" absoluteURI
    

    An example is:

       Location: http://www.w3.org/pub/WWW/People.html
    

    Chris

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

Sidebar

Related Questions

I have a java back-end that needs to expose services to clients running in
Is it alright to expect that the user using the back end will have
I have a java web app that makes back-end use of a third-party web
I am going to develop a WCF service that connects back-end system with two
I have client application that uses WCF service to insert some data to backend
I have a wysiwyg editor in my back end, and it is tripping up
I have worked on single threaded business logic/back-end programming for most of my career.
I have a few ASP.Net database front-end websites where MS Access is the back-end.
I have a little game written in C#. It uses a database as back-end.
I have written a persistent windows service in java that runs on boot. I

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.