post api/calendar
request
{
"date":"2020-04-23",
"subject":"국어"
}
response
{
"calendarId": 1,
"userId": 1,
"subject": "국어",
"date": "2020-04-23"
}
get api/calendar
response
[
{
"calendarId": 1,
"userId": 1,
"subject": "국어",
"date": "2020-04-23"
},
{
"calendarId": 2,
"userId": 1,
"subject": "수학",
"date": "2020-04-23"
},
{
"calendarId": 3,
"userId": 1,
"subject": "수학",
"date": "2020-05-23"
}
]
get api/calendar/:date
예시 url : http://localhost:8080/api/calendar/2020-04-23
response
[
{
"calendarId": 1,
"userId": 1,
"subject": "국어",
"date": "2020-04-23"
},
{
"calendarId": 2,
"userId": 1,
"subject": "수학",
"date": "2020-04-23"
}
]
delete api/calendar/:calendarId
캘린더 삭제 - 200 OK