GET retrieves data (safe and idempotent); POST creates or triggers an action (not idempotent); PUT replaces a resource (idempotent); PATCH partially updates it (usually idempotent but not guaranteed); DELETE removes it (idempotent).
Idempotent means repeating the same request has the same effect as sending it once, which matters for safe retries.
Follow REST conventions: nouns for resources (/users/42), proper status codes, pagination for lists, and versioned paths.
Loading…