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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:07:25+00:00 2026-06-04T03:07:25+00:00

I would like my API to have a validation-only request. For example, if I

  • 0

I would like my API to have a validation-only request. For example, if I have a URL such as:

http://api.somesite.com/users/12345

and the user is filling out a form of information on a client that I will eventually PATCH/PUT/POST to that resource. As the user is filling out the form, I might want to send over their partially-complete updated representation over to the server periodically so I can display realtime validation of their input (e.g., “That username is already taken”, “That password is too short”).

There isn’t a standard HTTP METHOD or HEADER that seems to allow for this behavior on that same resource. It seems my options are:

  1. Create a new subordinate resource for validation
  2. Use a custom header (x-somesite-validation-only) and PUT indicating that I want to validate but not save
  • 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-04T03:07:27+00:00Added an answer on June 4, 2026 at 3:07 am

    Some options

    1) Use custom header
    2) Put something in the query string indicating to validate only
    3) Use Action URl e.g. \IndividualClient\123\actions\Validate\Invoke {section 19 here http://restfulobjects.files.wordpress.com/2011/11/restful-objects-spec-052.pdf}
    4) Hierarchical URL e.g. \IndividualClient\123\Validation

    From this post I find this advice

    Do use POST whenever you have to do something that feels RPC-like Do
    use GET for things like calculations, unless your input is large, in
    which case use POST

    With regard to your specific question, POST should be used for #4 and #5. These operations fall >under the “RPC-like” guideline above. For #5, remember that POST does not necessarily have to >use Content-Type: application/x-www-form-urlencoded. This could just as easily be a JSON or CSV >payload.

    Here is what I’m considering:

    This is the add of a resource :
    user/validation
    POST
    Request:UserResource
    Response:ValidationResult
    Response Codes 200, 400. 404. 500

    This is the update of a resource
    user/204/validation
    POST
    Request:UserResource,
    Response:ValidationResult
    Response Codes 200, 400. 404. 500

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

Sidebar

Related Questions

I'm new to the twitter API https://dev.twitter.com/docs/api and I would like to incentivize users
I have an API in the form of a JAR that I would like
I would like to build my own RESTful API Server and I have no
I would like to get the temperature value from Yahoo's weather API. I have
I would like to find the values of some of windows API constants, such
I would like to use Gwt-Validation with Gwt 2.4.0. I have in my gwt.xml
I would like to separate the API I'm working on into two sections: 'bare-bones'
I would like to use the wikipedia API to return the extract from multiple
I am designing RESTful Api's and would like some advice on designing an API
I am designing a RESTful API and I would like to know what the

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.