[예제]일정 수정
수정할 일정의 id, 시간, 내용을 전달받아 일정을 수정하고 수정된 일정을 반환한다.
PUT
http://3.135.231.171/{id}
URI ParameterPermalink
Name | In | Required | Type | Description |
---|---|---|---|---|
id | path | true | int | 수정할 일정의 id |
Request BodyPermalink
time이나 content 중 한가지만 수정하려면 수정하지 않을 항목의 값은 ““로 보내면 된다.
Name | Type | Description |
---|---|---|
time | string | 시간 |
content | string | 내용 |
ResponsePermalink
Status code | Type | Description |
---|---|---|
200 OK | TodoList | 수정한 일정 |
예제Permalink
Sample RequestPermalink
PUT
http://3.135.231.171/34
Request Body
{
"time":"6:30PM",
"content" : ""
}
Sample ResponsePermalink
Status code: 200
{
"id": 34,
"time": "6:30PM",
"content": "dinner"
}