basePath: 'todo-items'.
Find by ID
200 OK and the serialized DTO:
@IDField.
Query a collection
totalCount is present only when enableTotalCount is enabled. With PagingStrategies.NONE, the same endpoint returns a JSON array instead.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
basePath: 'todo-items'.
GET /todo-items/1
200 OK and the serialized DTO:
{
"id": 1,
"title": "Write REST documentation",
"completed": false
}
@IDField.
GET /todo-items?completed=false&limit=2&offset=0
{
"pageInfo": {
"hasNextPage": true,
"hasPreviousPage": false
},
"nodes": [
{
"id": 1,
"title": "Write REST documentation",
"completed": false
},
{
"id": 2,
"title": "Review examples",
"completed": false
}
],
"totalCount": 7
}
totalCount is present only when enableTotalCount is enabled. With PagingStrategies.NONE, the same endpoint returns a JSON array instead.
curl 'http://localhost:3000/todo-items?completed=false&limit=2&offset=0'