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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:01:22+00:00 2026-05-27T16:01:22+00:00

While building a RESTful API of my web service I’m trying to give clients

  • 0

While building a RESTful API of my web service I’m trying to give clients link relations, for example (this is what a GET entry point returns):

<doc>
 <links>
  <link rel="self" href="/home"/>
  <link rel="post" href="/post-new-article"/>
 </links>
</doc>

I’m expecting the client to understand that in order to post a new article he has to submit a POST request to /post-new-article with "text" as query parameter.

But I didn’t say anything about "POST" in the document, and I didn’t tell him which HTTP query parameter I’m expecting. How and where should I provide this information? Is there any de-facto standard/convention about it?

  • 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-27T16:01:22+00:00Added an answer on May 27, 2026 at 4:01 pm

    The technically correct answer is that it is defined by the media type of the document. For example, assume the API serves HTML. And the client is a browser.

    By convention, when a user-agent (browser) visits a resource (identified by an anchor tag) it issues an HTTP GET to the server serving the API. Assuming everything goes as planned, the server returns another HTML representation of that resource.

    Likewise, when a user-agent submits a form it issues an HTTP GET by default unless the method attribute of the form tag indicates it should POST the data. (Details here.)

    Your API documentation should specify in detail the media type your REST service uses. If it is a custom type then the specification should include the rules for following links. If your API runs over HTTP, then the rules would specify GET, POST, DELETE, etc. as well as any other requirements/conventions.

    From Roy himself: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven

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

Sidebar

Related Questions

While building this web service and the app that calls it, we have noticed
While building a project, I get this cryptic error: ‘find_if’ is not a member
While building my CUDA project I get the following error: cutil_inline_runtime.h(328): error: identifier CURAND_STATUS_DOUBLE_PRECISION_REQUIRED
While building a JAR file (successfully) in Netbeans 7.1.1 , I encountered this warning:
Unlike this question: Linker Error while building application using Boost Asio in Visual Studio
While building my web project from Eclipse , everything is fine: no errors, no
We're using Installshield 8 in creating our installer. While building, we are getting this
Hi I am facing this problem while building a source using ant Problem: failed
Hi All When enabing proguard for android, while building the signed jar I get
This is something that has been bugging me for a while.. I'm building of

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.