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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:26+00:00 2026-06-17T07:03:26+00:00

I like the REST HATEOAS concept of making your API discoverable through hyperlinks. People

  • 0

I like the REST HATEOAS concept of making your API discoverable through hyperlinks. People like XML with ATOM format for links and you might not even need to version your API. But, I’m only doing JSON and I want to version my API and still do HATEOAS.

It seems that a best practice would be to use a vendor media type as in application/vnd.me.v1+json but then there is all this talk about no format for hyperlinks in JSON and things like HAL, JSON+Collecton, and Siren which have their own media type.

So, here’s my confusion. First, why specify a format through media type? Why can’t the inclusion of links in JSON just be a convention that clients follow? Isn’t that how hm-json browser discovers links?

And, if it must be defined as a media type, does something like this work?

application/vnd.me.v1.hal+json

Anyone?

  • 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-17T07:03:27+00:00Added an answer on June 17, 2026 at 7:03 am

    First, why specify a format through media type?

    Yes, you could have a convention for the format of the links, however, any convention could only be discovered after unpacking the body of the HTTP message. Since media types are headers, the body of the message can be accepted or rejected as an entire unit. This makes processing requests more efficient for consumers that do not support the media types offered.

    application/vnd.me.v1.hal+json

    As far as I understand, media types can be scoped to a level that fits the API you are describing. So, you could choose to have a media type for a single representation, a group of representations that all adhere to the same service, or a single media type for the entire organization.

    This is a good SO post considering media types:

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

Sidebar

Related Questions

I have developed a 'REST-like' XML API that I wish to expose for consumption
Solr is a standalone enterprise search server with a REST-like API. You put documents
I'm working on a REST API and I really like the idea of using
I've been looking at examples of REST API's like Netflix http://developer.netflix.com/docs/REST_API_Reference#0_59705 and Twitter and
I was looking for a javadoc-like REST API documentation tool . I already documented
I'm consuming REST-like API which returns JSON objects. I can deserialize those objects to
I am designing a REST like API for paginated data retrieval of a YUI-based
I'm building a data exchange server using a REST-like API. It's not strictly RESTful
I am developing a REST like API in which an initial log in call
I have a REST-like PHP service and i don't understand how invoke function 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.