ToDo API
優先度、期限、完了状態を持つ ToDo。GraphQL の ToDo ミューテーションと共有しています。メモリ上の固定データで、書き込みはアプリの再起動まで残ります。
無料:これらのエンドポイントはアカウント不要です。
- GET
https://api.testingapis.com/api/TodosList todos with filtering, sorting, search and pagination. - POST
https://api.testingapis.com/api/TodosCreate a todo. - GET
https://api.testingapis.com/api/Todos/{id}Get a todo by ID. - PUT
https://api.testingapis.com/api/Todos/{id}Update a todo. - DELETE
https://api.testingapis.com/api/Todos/{id}Delete a todo.
リクエストの例
List todos with filtering, sorting, search and pagination. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/Todos?limit=2"レスポンス · 200 OK
[
{
"id": 1,
"userId": 101,
"title": "Review pull request #42",
"completed": false,
"priority": "high",
"dueDate": "2025-07-20"
},
{
"id": 2,
"userId": 101,
… (3 more lines)絞り込み、並べ替え、ページネーション
一覧エンドポイントは limit、page、offset、sort、order、q を受け付け、任意のフィールド名を完全一致の絞り込みに使えます。件数は X-Total-Count ヘッダーで返ります。書き込みはサーバーを再起動するまでメモリに残るので、テストで自由にレコードを作成・変更・削除できます。 クエリパラメータのリファレンス.