What are media types in REST, and how can custom media types support hypermedia and versioning?

Last updated 29 June 2026

  • A media type identifies a representation's format (e.g. application/json) in Content-Type and Accept, driving content negotiation.

  • Hypermedia types like application/hal+json define how links are expressed, and vendor types like application/vnd.myapp.v2+json embed a version while keeping the URI stable.

  • Media-type versioning is more RESTful than URI versioning but harder to test in a browser and less obvious to clients.

  • https://www.geeksforgeeks.org/interview-experiences/web-api-interview-questions-and-answers/
  • https://www.acte.in/rest-assured-interview-questions-and-answers
  • https://proleed.academy/interview-preparation/rest-api-interview-questions-and-answers.php
All REST API interview questions