Glossary · Architecture

REST

Representational State Transfer

Also known as: rest api, restful, http api

An architectural style for web APIs where resources have URLs and clients act on them with standard HTTP methods such as GET, POST, PUT, and DELETE.

Methods at a glance

Method Use Idempotent
GET /orders/42 Read Yes
POST /orders Create No
PUT /orders/42 Replace Yes
PATCH /orders/42 Partial update Not guaranteed
DELETE /orders/42 Delete Yes

Try it

curl -s https://api.example.com/orders/42
curl -s -X POST https://api.example.com/orders \
  -H 'Content-Type: application/json' -d '{"item":"book","qty":1}'

Habits that help

  • Plural nouns for collections (/orders), no verbs in paths.
  • Return proper status codes: 201 on create, 404 when missing, 422 for validation errors.
  • Version the API (/v1/... or a header) before the first breaking change.

Related technologies

Used in these posts

Architecture • 6 min read Reader level: Intermediate

What you'll learn

  • How to design REST APIs around resources with predictable URLs
  • How to use HTTP methods, status codes, and idempotency correctly
  • How to keep errors, versions, and formats consistent for clients
  • How to configure global ISO-8601 dates and camelCase JSON in Spring
REST API Best Practices

Learn clean REST API design patterns for versioning, idempotency, pagination, and error handling so clients can build on stable contracts.

#rest-api#api-design#backend#http