collection resource
A resource that holds a set of similar items, addressed with a plural noun such as /tasks.
In more detail
The collection takes POST to create and GET to list; each member is addressed by adding its identifier, as in /tasks/1. A collection response must always be bounded by pagination.
Related terms
- item resource — One member of a collection, addressed by the collection path plus an identifier, such as /tasks/1.
- pagination — Splitting a large collection into bounded pages, each with a way to ask for the next one.
- resource — Anything an API gives a name to and lets clients work with, such as one task, a collection of tasks or a job.
Taught in
- HTTP Methods And Status Codes — Modern API Architecture: REST, GraphQL & gRPC
- Naming Resources And Collections — Modern API Architecture: REST, GraphQL & gRPC
- Pagination Strategies — Modern API Architecture: REST, GraphQL & gRPC