What makes an API RESTful? Representational State Transfer (REST)...

@NikkiSiapno
Nikki Siapno@NikkiSiapno
61 views Dec 18, 2023 ~1 min read
Advertisement
1
What makes an API RESTful?

Representational State Transfer (REST) is an architectural style that is commonly used for web-based APIs alongside HTTP as the transport protocol.

Key concepts:

🔸Stateless: The server shouldn’t need to store any information about a user between requests. Everything that the server needs to execute a task should be sent in the request.

🔸 Separation of concerns: The client and server should function independently of each other.

🔸Cacheable: Responses can be cached on the client to boost performance.

🔸Consistent interface: By using HTTP methods like GET, POST, and DELETE, API interfaces stay consistent.

🔸 Resource-based: RESTful APIs have an emphasis on resources rather than methods or functions. A resource can be an object, entity, or data within a system. Resources are uniquely identified using a Uniform Resource Identifier (URI).

🔸 Standard media types: Responses are usually sent as JSON, XML, or plain text. Clients can request a preferred media type.

By providing guidelines like statelessness, separation of concerns, and standardized interfaces, REST has made it easier to develop scalable, stable, high-performing applications.
2
If you’re building or working with REST APIs, Postman’s REST client makes the process much easier.

It’s free to use as well.

You can read more about it here: drp.li/postman-rest-z…
3
Want more engineering insights like this?

Subscribe to our free newsletter for a weekly deep dive and content roundup: drp.li/luc-newsletter…
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement