-
Notifications
You must be signed in to change notification settings - Fork 4
Label API
Zin0_0 edited this page Nov 30, 2020
·
5 revisions
Method | URL | Description |
---|---|---|
GET | api/label | label ์ ์ฒด ์กฐํ |
POST | api/label | label ์์ฑ |
PUT | api/label/:labelId | label ์์ |
DELETE | api/label/:labelId | label ์ญ์ |
URL
GET /api/label
Response Description
Name | Type | Description |
---|---|---|
labels | ARRAY | ๋ผ๋ฒจ ๋ฐฐ์ด |
title | STRING | ๋ผ๋ฒจ ์ ๋ชฉ |
color | STRING | ๋ผ๋ฒจ ์์ |
Response
{
labels:
[
{
id: 1,
title: '๋ผ๋ฒจ 1',
color: '#FFFFFF'
}
]
}
URL
POST /api/label
Request Description
Name | Required | Type | Description |
---|---|---|---|
title | REQUIRED | STRING | ์์ฑํ ๋ผ๋ฒจ์ ์ ๋ชฉ |
color | REQUIRED | STRING | ์์ฑํ ๋ผ๋ฒจ์ ์์ |
Request
{
title : '๋ผ๋ฒจ 1',
color : '#FFFFFF',
}
Response Description
Name | Type | Description |
---|---|---|
message | STRING | ์์ฑ์ ์ฑ๊ณตํ๋ค๋ ์๋ฏธ์ 'ok ' |
Response
{
message : 'ok'
}
URL
PUT /api/label/labelId
Request Description
Name | Required | Type | Description |
---|---|---|---|
labelId | REQUIRED | QUERY_STRING | ์์ ํ ๋ผ๋ฒจ์ UUID |
title | REQUIRED | STRING | ์์ ํ ๋ผ๋ฒจ์ ์ ๋ชฉ |
color | REQUIRED | STRING | ์์ ํ ๋ผ๋ฒจ์ ์์ |
Request
{
title : '๋ผ๋ฒจ 1',
color : '#FFFFFF',
}
Response Description
Name | Type | Description |
---|---|---|
message | STRING | ์์ ์ ์ฑ๊ณตํ๋ค๋ ์๋ฏธ์ 'ok ' |
Response
{
message : 'ok'
}
URL
DELETE /api/label/:labelId
Request Description
Name | Required | Type | Description |
---|---|---|---|
labelId | REQUIRED | QUERY_STRING | ์ญ์ ํ ๋ผ๋ฒจ์ UUID |
Response Description
Name | Type | Description |
---|---|---|
message | STRING | ์ญ์ ์ ์ฑ๊ณตํ๋ค๋ ์๋ฏธ์ 'ok ' |
Response
{
message:' ok'
}