# :hammer: API 설계
> Issue Tracker API 설계
milestone 생성(C)
메소드 : POST
URL : /api/milestone
요청 :
header { token }
{
"title": "",
"description": "",
"state": "open",
"due_date": "date"
}
응답 : {}
설명 : 마일스톤 생성
milestone 읽기(R)
메소드 : GET
URL : /api/milestone?issue=true,false
요청 :
header { token }
응답 : {
milestones: [
{
"id": 0,
"title": "",
"state": "",
"description": "",
"due_date": "",
"openIssueCount": 0,
"closedIssueCount": 0
}
],
openMilestoneCount: 0,
closeMilestoneCount: 0 👍
}
설명 : 마일스톤 전부 읽기
마일스톤 수정(U)
메소드 : PUT
URL : /api/milestone/{milestoneId}
요청 :
header { token }
{
"title": "다른제목",
"state": "",
"description": ""
}
응답 : {}
설명 : 마일스톤 수정
milestone 삭제(D)
메소드 : DELETE
URL : /api/milestone/{milestoneId}
요청 :
header { token }
응답 : {}
설명 : 마일스톤 삭제
<table style="width:100%">
<thead style="width:100%">
<th style="width:30%">이름</th>
<th style="width:30%">캠퍼ID</th>
<th style="width:30%">각오</th>
</thead>
<tbody>
<td>aa</td>
<td>aa</td>
<td>aa</td>
</tbody>
</table>