Skip to content

Commit

Permalink
Merge pull request #8 from pulsate-dev/issue-7
Browse files Browse the repository at this point in the history
feat: add `PATCH /lists/{list_id}` specification
  • Loading branch information
Allianaab2m authored Jul 31, 2024
2 parents c14bd81 + d15e57e commit 2a0ac24
Showing 1 changed file with 66 additions and 2 deletions.
68 changes: 66 additions & 2 deletions src/endpoint/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,70 @@

- `TITLE_TOO_LONG`: タイトルが長すぎます

## `PATCH /lists/{list_id}`

リスト情報を編集します

### 入力

- パスパラメータ
- `list_id`: `string`
- 編集したいリストのID

- body: `application/json`

| 項目名 || 説明 | 制約 |
| ------ | --------- | -------------------- | ------------- |
| title | `string` | リストのタイトル | 1≤N≤100[文字] |
| public | `boolean` | 公開・非公開のフラグ | |

### 入力例

```json
{
"title": "Edited Title",
"public": true
}
```

### 出力

**`200 OK`**

```json
{
"id": "18342938400393",
"title": "Edited Title",
"public": true,
"assignees": [
{
"id": "1838933554",
"name": "@john@example.com"
}
]
}
```

**`404 Not Found`**

```json
{
"error": "TEST_ERROR_CODE"
}
```

- `LIST_NOTFOUND`: リストが見つかりません

**`400 Bad Request`**

```json
{
"error": "TEST_ERROR_CODE"
}
```

- `TITLE_TOO_LONG`: タイトルが長すぎます

## `GET /lists/{list_id}`

リスト情報を取得します
Expand All @@ -63,7 +127,7 @@
"id": "18342938400393",
"title": "Pulsate Developers",
"public": false,
"assigners": [
"assignees": [
{
"id": "1838933554",
"name": "@john@example.com"
Expand Down Expand Up @@ -102,7 +166,7 @@
"id": "18342938400393",
"title": "Pulsate Developers",
"public": false,
"assigners": [
"assignees": [
{
"id": "1838933554",
"name": "@john@example.com"
Expand Down

0 comments on commit 2a0ac24

Please sign in to comment.