フィールド名 | fieldName | type | 備考 |
---|---|---|---|
傷害ID | injuryID | string | /^[0-9a-z]{8}$/ |
傷害種別 | injuryClass | string | |
詳細 | injuryDescription | string | |
等級 | injuryRank | string |
GET /api/v1/contacts
アクセストークンに紐付けれた傷害のID一覧を傷害IDの降順で取得します。
1 2 |
GET /api/v1/injyries HTTP/1.1 Host: api.manbo.link |
1 2 3 4 5 6 7 8 |
HTTP/1.1 200 Content-Type: application/json [ { "injuryID": "15151" } ] |
Get /api/v1/injuries/:injuryID
傷害情報を取得します。
1 2 |
GET /api/v1/injuries/:injuryID HTTP/1.1 Host: api.manbo.link |
1 2 3 4 5 6 7 8 9 |
HTTP/1.1 200 Content-Type: application/json { "injuryID": "15151", "injuryClass": "", "injuryDescription": "", "injuryRank": "" } |
PATCH /api/v1/injuries/:injuryID
傷害情報を更新します。
1 2 3 4 5 6 7 8 9 10 11 |
PATCH /api/v1/injuries/:injuryID HTTP/1.1 Content-Type: application/json Host: api.manbo.link { "injuryID": "15151", "payload": { "injuryDescription": "傷害説明更新済み", "injuryRank": "A" } } |
1 2 3 4 5 |
HTTP/1.1 200 Content-Type: application/json { } |
DELETE /api/v1/injuries/:injuryID
傷害情報を削除します。
1 2 3 4 5 6 7 |
DELETE /api/v1/injuries/:injuryID HTTP/1.1 Content-Type: application/json Host: api.manbo.link { "injuryID": "12ax4112" } |
1 2 3 4 5 |
HTTP/1.1 200 Content-Type: application/json { } |