#rest
9 articles tagged with #rest
How to handle long running requests, versioning, testing and documentation in a REST API? - Part 6
Design long running requests with 202 and a status resource, define breaking changes and version an API, and cover testing and documentation with OpenAPI.
How to improve REST API performance and handle concurrency? - Part 5
Improve REST API performance with Cache-Control, conditional GET, ETag and compression, and handle concurrency with optimistic locking.
How to handle errors and secure a REST API? - Part 4
Classify errors and faults, design the error body and apply the security techniques for a REST API: authentication, CORS and rate limiting.
How to use verbs, representations and status codes in a REST API? - Part 3
Design incoming and outgoing representations, choose the right status codes and use each HTTP verb correctly, with examples.
How to design resources and URIs for a REST API? - Part 2
Identify resources from domain nouns and functions, choose the right granularity with an example and follow the conventions to design URIs.
Why REST and what makes an API RESTful? - Part 1
Why REST replaced WS-* services, what makes an API RESTful and the six REST constraints, with resources, URIs, verbs, safety and idempotence.
Idempotency in REST APIs - why DELETE twice is still gone
REST API idempotency explained through safe DELETE retries, idempotency keys, action filters, atomic response storage and reliable client retry behaviour.
Fine-grained vs coarse-grained APIs - avoiding chatty APIs
Fine-grained and coarse-grained APIs compared through response shape, client composition, network calls, latency, business views and the cost of chatty requests.
What is RESTful API - resources, verbs and status codes?
RESTful API design explained through resources, HTTP verbs, safety, idempotence, Web API 2 controllers, and status codes using a news article example.