-
Notifications
You must be signed in to change notification settings - Fork 0
API docs
Yuer Lee edited this page Apr 30, 2016
·
3 revisions
- Base_url:https://richegg.top/
Route One | HTTP Verb | Description |
---|---|---|
/lists | POST |
驗證清單(cookie) |
/tasks | GET |
取得所有的 Tasks |
/tasks | POST |
新增一個 Task |
/tasks/:id | PATCH |
更新一個 Task |
/tasks/:id | DELETE |
刪除一個 Task |
驗證清單(cookie)
{
listName: (String)
}
- 201
{
tasks: [
{
id: (Number),
text: (String),
isDone: (Boolean)
},
{ ... }
]
}
取得所有的 Tasks
{
}
- 200
{
tasks: [
{
id: (Number),
text: (String),
isDone: (Boolean)
},
{ ... }
]
}
- 401
{
message: (String)
}
- 404
{
message: (String)
}
新增一個 task
{
text: (String)
}
- 201
{
id: (Number),
text: (String),
isDone: (Boolean)
}
更新一個 task
{
isDone: (Boolean)
}
- 200
{
id: (Number),
text: (String),
isDone: (Boolean)
}
- 404
{
message: (String)
}
刪除一個 task
{
}
- 200
{
}
- 404
{
message: (String)
}