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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:38:45+00:00 2026-05-20T11:38:45+00:00

I am designing a restful web service and have a problem that I foresee

  • 0

I am designing a restful web service and have a problem that I foresee will be a common one.
Lets say you have a resource url:

/users

and the GET operation for that url returns a list of users with basic details.

Now I want to create a POST operation for users, but in order to create a user I need to pass more information than is returned by /users and any specific user url (users/1 etc). Is this ok? What is the usual approach to this kind of situations?

  • 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-20T11:38:46+00:00Added an answer on May 20, 2026 at 11:38 am

    I believe that the ideal is that the representation that you POST to create a resource is the same as the representation that is returned when you GET that same resource. However, as with everything, this is not a hard and fast rule. For example if you have a property of a user such as their “reputation”, then clearly that would be returned on GET, but not required on creation for POST. Can’t think of any properties off hand that you would need to provide on creation that you wouldn’t then report on GET. You may find that you need different representations depending on who is requesting. Maybe there’s private information that is only returned on GET when requested by the owner, and that is information that you have to supply on POST when creating, but when another user requests the resource they don’t get that information. I don’t think that would incur you the wrath of Fielding.

    EDIT: To deal with passwords (hadn’t thought of those, thanks) then I don’t think it would be a crime to accept that on creation and not return that on GET. If might be restful to return some kind of placeholder for the password in the GET representation so that the client can change the password by filling it in and posting back the same representation.

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

Sidebar

Related Questions

We're in the early stages of designing a RESTful/resource-oriented web service API for a
I'm designing a RESTful web service utilizing ROA(Resource oriented architecture). I'm trying to work
We are in the process of designing/creating restful web services that will be consumed
I'm designing a RESTful Web app that will provide an authentication system for several
The scenario is: I'm implementing a RESTful web-service that will act as a cache
WE are designing an iPhone app that will call back to a RESTful service
I'm designing (and developing) web software that will allow the general public to sign
I am designing a distributed application that will consist of RESTful services and a
I'm designing restful service and one of the entities to maintain - user accounts.
I am designing a Restful web service for an internal corporate application, and am

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.