에러처리
200
404
500 이상
⭐️Log In
Request
Endpoint
POST /api/login
Body
| Property |
Type |
Description |
id |
string |
User Github ID |
language는 브라우저단에 저장
따라서 수정도 필요없음. 브라우저에서 수정하면됨.
Response
| Property |
Type |
Description |
success |
boolean |
Whether signed in or not |
⭐️Log Out
Request
Endpoint
POST /api/logout
Response
| Property |
Type |
Description |
success |
boolean |
Whether signed in or not |
⭐️Get Jjim List
Request
Endpoint
GET /api/jjims
Response
| Property |
Type |
Description |
jjimList |
Jjim[] |
Get Jjim list |
⭐️Get a History Data
Request
Endpoint
GET /api/history
Response
| Property |
Type |
Description |
historyList |
History[] |
Get History list |
⭐️Get a Point
Request
Endpoint
GET /api/point
Response
| Property |
Type |
Description |
point |
int |
Get point information |
⭐️Modify a Point
Request
Endpoint
PUT /api/point
Body
| Property |
Type |
Description |
point |
int |
amount of point |
Response
| Property |
Type |
Description |
success |
boolean |
Whether modified or not |
에러처리
200
404
500 이상
⭐️Log In
Request
Endpoint
POST/api/loginBody
idstringlanguage는 브라우저단에 저장
따라서 수정도 필요없음. 브라우저에서 수정하면됨.
Response
successboolean⭐️Log Out
Request
Endpoint
POST/api/logoutResponse
successboolean⭐️Get Jjim List
Request
Endpoint
GET/api/jjimsResponse
jjimListJjim[]⭐️Get a History Data
Request
Endpoint
GET/api/historyResponse
historyListHistory[]⭐️Get a Point
Request
Endpoint
GET/api/pointResponse
pointint⭐️Modify a Point
Request
Endpoint
PUT/api/pointBody
pointintResponse
successboolean