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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:37:11+00:00 2026-06-02T19:37:11+00:00

In most tutorials, documentation, articles etc. about RESTful I come across a few of

  • 0

In most tutorials, documentation, articles etc. about RESTful I come across a few of the same points, but yet I rarely ever see these ‘What makes it RESTful’ points implemented.

For example, I’ve read this many times:

  • Content type

    Using HTTP headers

    Accept: application/json, text/plain 
    

    Extension in the URL

    Not RESTful, URLs are not the place for Content-Type
    

I have never come across an API where I have seen this implemented. Every API I have ever used has always required me to append XML or JSON to the end of the URL. Are they doing it wrong?

  • Versioning

    Version media types

    application/vnd.something.v1+json

    Custom header

    X-API-Version: 1

    Version in URL

    /v1/resouce
    Not RESTful, by putting the version in the URL you create separate resources

If you need to introduce non-backwards-compatible functionality surely creating a seperate resource is the correct thing to do?

Once again, in all versions of APIs I’ve used, they use v1, v2 in the URL (such as google, imgur etc.)

By not implementing these points, would my API not be considered RESTful?

To clarify these points would be much appreciated.

  • 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-02T19:37:14+00:00Added an answer on June 2, 2026 at 7:37 pm

    1) Using accept header or using format specific URLs are both valid in a RESTful system. The article you are citing is wrong.

    2) Saying v1/resource is not RESTful is also incorrect. You cannot look at a URI and make a conclusion about its RESTfulness. Adding a v1 at the root of your URL is probably not a great thing to do if you are trying to incremental evolve your system. In effect it declares a whole new URL space and obsoletes the old one. That’s pretty drastic. RESTFul systems try and enable incremental and evolutionary change to a system. So doing /resource/v2 is actually much more compatible with that goal.

    The unfortunate phenomena at work here is that many developers who are learning about REST discover that the vast majority of systems out there that claim to be doing REST are not actually conforming to the constraints of REST. So they quickly develop a zeal for telling everyone what is and is not RESTful. Many of these people have not yet fully understood the constraints and end up making up new ones that don’t exist. The “RESTFul URL” fallacy is a classic. “POST must create a resource” is another common one.

    My guidance to anyone learning REST is, if someone tells you that something is not RESTful, you ask them what constraint it is violating and what is the practical impact of ignoring that constraint. If they can’t answer that, then politely ignore them.

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

Sidebar

Related Questions

With lots of efforts and tutorials I got xdebug/wincachegrind up and running but most
Most of the tutorials and documentation that I've been reading seem to indicate that
been working with symfony for a while. most tutorials describe having multiple actions in
Most of the tutorials around explain how to create a java applet: create a
I have just started learning struts. Most of the tutorials I read, it mentions
Most dead-tree books and web tutorials address Rails 1.X. I'm wondering if they are
There are thousands of vi tutorials on the web, most of them generically listing
I have read the Django documentation (For reference, https://docs.djangoproject.com/en/1.3/intro/tutorial01/ ), but I'm still having
In most tutorials (Judith Bishops' book, or here ), I see example similar to
I have googled for it and most tutorials are cryptic. Can somebody teach me

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.