Skip to main content
The generated REST controller exposes two read endpoints: one for a collection and one for a single record. It can also expose create, update, delete, and CSV export endpoints. These examples assume basePath: 'todo-items'.

Find by ID

Successful requests return 200 OK and the serialized DTO:
The route parameter type comes from the property decorated with @IDField.

Query a collection

Offset paging returns a connection object:
totalCount is present only when enableTotalCount is enabled. With PagingStrategies.NONE, the same endpoint returns a JSON array instead.
Read more about filter query parameters and paging strategies.