REST endpoint
Combines an HTTP method and resource path into one documented API operation.
- Also known as
- API route, Resource endpoint, HTTP operation
- AI prompt
Apply the REST endpoint pattern to a production REST API. Define one clear purpose, validate all inputs, use correct HTTP semantics, return a documented representation, and keep transport handling separate from domain logic. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
List resources operation
Retrieves a bounded page from a collection resource.
- Also known as
- List endpoint, Collection GET, Index operation
- AI prompt
Apply the List resources operation pattern to a production REST API. Support stable ordering, filtering and pagination from the first release, apply per-item authorization, and return an empty collection rather than an ambiguous null. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Get resource operation
Retrieves the current representation of one identified resource.
- Also known as
- Read endpoint, Resource GET, Fetch operation
- AI prompt
Apply the Get resource operation pattern to a production REST API. Distinguish invalid, missing and forbidden targets safely; avoid side effects; support conditional retrieval where useful; and return a stable response model. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Create resource operation
Creates a new resource within a collection or at a client-selected identifier.
- Also known as
- Create endpoint, Collection POST, Resource creation
- AI prompt
Apply the Create resource operation pattern to a production REST API. Validate before mutation, make the transaction atomic, define server-generated fields, return 201 with Location, and support idempotency when clients may retry. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Replace resource operation
Replaces the complete mutable state of a resource at a known URI.
- Also known as
- Full update, Resource PUT, Replacement endpoint
- AI prompt
Apply the Replace resource operation pattern to a production REST API. Require a complete representation, define create-on-missing behavior, protect concurrent writes, and never silently treat omitted fields as an implicit partial update. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Partial update operation
Changes selected fields without requiring a complete resource replacement.
- Also known as
- PATCH endpoint, Partial modification, Resource patch
- AI prompt
Apply the Partial update operation pattern to a production REST API. Choose and document a patch format, reject immutable or unknown fields, validate the resulting resource, apply atomically, and use concurrency protection. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Delete resource operation
Removes, deactivates, or schedules removal of an identified resource.
- Also known as
- Delete endpoint, Resource DELETE, Removal operation
- AI prompt
Apply the Delete resource operation pattern to a production REST API. Define hard versus soft deletion, dependent-resource behavior, authorization, audit requirements, idempotent repetition, and whether recovery is possible. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Custom action endpoint
Models a domain command that does not fit standard create, read, update, or delete semantics.
- Also known as
- Action operation, Command endpoint, Custom method
- AI prompt
Apply the Custom action endpoint pattern to a production REST API. Use custom actions sparingly, attach the action to its resource or collection, use a verb name, validate state transitions, and make retry behavior explicit. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Batch request
Carries several independent API operations in one network request.
- Also known as
- API batch, Multi-request envelope, Request bundle
- AI prompt
Apply the Batch request pattern to a production REST API. Define maximum operations and payload size, per-operation authorization and status, dependency rules, atomicity boundaries, ordering, and partial-failure behavior. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Bulk operation
Applies one operation to many resources using a single bounded command.
- Also known as
- Bulk endpoint, Mass operation, Collection command
- AI prompt
Apply the Bulk operation pattern to a production REST API. Limit target count, authorize every item, define all-or-nothing versus per-item outcomes, use asynchronous processing when needed, and expose a result resource. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Upsert operation
Creates a resource when absent or updates it when the client-controlled key already exists.
- Also known as
- Create or update, Put-if-absent, Upsert endpoint
- AI prompt
Apply the Upsert operation pattern to a production REST API. Use only when the client controls the canonical identifier, keep the operation idempotent, distinguish created from updated, validate complete state, and protect concurrent writes. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Soft delete
Marks a resource as deleted while retaining it for recovery, audit, or retention.
- Also known as
- Logical deletion, Tombstone, Archived deletion
- AI prompt
Apply the Soft delete pattern to a production REST API. Define visibility after deletion, uniqueness behavior, retention, cascading rules, authorization, audit data, and permanent purge separately. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Restore resource operation
Returns a soft-deleted or archived resource to an active state.
- Also known as
- Undelete endpoint, Recovery action, Restore action
- AI prompt
Apply the Restore resource operation pattern to a production REST API. Require a valid tombstone state, recheck permissions and uniqueness constraints, define expired-retention behavior, and record an audit event. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Asynchronous request-reply
Accepts work immediately and provides a separate way to observe eventual completion.
- Also known as
- 202 pattern, Async API operation, Deferred response
- AI prompt
Apply the Asynchronous request-reply pattern to a production REST API. Validate synchronously, return 202 with a status location and retry guidance, make submission retry-safe, and persist observable operation state. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Long-running operation
Represents work that continues beyond a normal request timeout.
- Also known as
- LRO, Extended operation, Background API operation
- AI prompt
Apply the Long-running operation pattern to a production REST API. Expose durable progress, terminal success and failure details, result links, cancellation policy, expiry, retry-safe creation, and bounded polling guidance. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Operation status resource
Provides the current state and result links for asynchronous API work.
- Also known as
- Job status endpoint, Operation resource, Progress resource
- AI prompt
Apply the Operation status resource pattern to a production REST API. Use a stable operation identifier, explicit pending/running/succeeded/failed/cancelled states, progress only when meaningful, Retry-After, result links, and expiry metadata. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Operation cancellation
Requests cancellation of a running asynchronous operation.
- Also known as
- Cancel job endpoint, Abort operation, LRO cancellation
- AI prompt
Apply the Operation cancellation pattern to a production REST API. Define cancellable states, idempotent repeated cancellation, race behavior with completion, cleanup guarantees, permission checks, and the final cancelled result. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.
Change feed
Returns resources or events changed since a client-held continuation point.
- Also known as
- Delta query, Incremental sync, Changes endpoint
- AI prompt
Apply the Change feed pattern to a production REST API. Use opaque expiring cursors, deterministic ordering, tombstones for deletions, tenant scoping, bounded pages, replay-safe semantics, and a documented full-resync path. Define the resource and route semantics, request contract, successful response, documented error cases, authorization boundary, validation, retry or concurrency behavior where relevant, and matching OpenAPI examples.