All skills

Backend & APIs

REST APIs

Overview

REST is a software architectural style that was created to describe the design and guide the development of the architecture for the World Wide Web. REST defines a set of constraints for how the architecture of a distributed, Internet-scale hypermedia system, such as the Web, should behave. The REST architectural style emphasizes uniform interfaces, independent deployment of components, the scalability of interactions between them, and creating a layered architecture to promote caching to reduce user-perceived latency, enforce security, and encapsulate legacy systems.

Read more

How it works

http
GET /api/apps/42 HTTP/1.1
Host: example.com
Accept: application/json

The flow

Step by step, from source to running.

  1. 1Client requests a resource URL
  2. 2HTTP verb states the action
  3. 3Server returns JSON + status code
  4. 4Stateless, each call is independent

Links

More in Backend & APIs