What is a "Resource" in REST?

Last updated 29 June 2026

A resource is any named piece of information the API exposes: the key abstraction in REST, identified by a URI, that the server represents to the client.

  • It is a concept, not a file: A user, an order, a search result, or even a relationship; anything worth referencing.

  • Identified by a URI: Each resource has a stable identifier (e.g. /users/7) clients use to address it.

  • Accessed via representations:

    • Clients never touch the resource directly; they exchange representations of its state (JSON, XML, etc.).

    • The same resource can have multiple representations negotiated via Accept.

  • Manipulated with uniform methods: HTTP verbs (GET, PUT, DELETE) act on the resource the URI names.

  • https://javagyansite.com/2023/07/13/rest-api-interview-questions/
  • https://www.examples.com/education/rest-api.html
  • https://www.restguide.info/rest-api-interview-questions
  • https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-design
  • https://blog.postman.com/rest-api-interview-questions/
  • https://www.scrapingbee.com/blog/six-characteristics-of-rest-api/
  • https://www.hirist.tech/blog/top-20-rest-api-interview-questions-and-answers/
  • https://www.infoq.com/news/2017/03/google-api-design-guide/
All REST API interview questions