값 0 은 매진된거고 값 1 은 있는 상태입니다.
endpoint: /admin_member
| index | method | uri | description | request body | response body | status |
|---|---|---|---|---|---|---|
| 1 | Post | /login | 리액트에서 | |||
| 로그인 요청 | { | |||||
| userid: “이용우”, | ||||||
| userpw: “1234” | ||||||
| } | 성공 시 | |||||
| { | ||||||
| “response”: 200 | ||||||
| } |
실패 시 { “response”: 402 } | 성공 시 200
실패 시 402 |
로그인: response body, status중에 편한거로 값 가져가셈 (나는 status쓰고 싶음)
endpoint: /admin/festival/api
| index | method | uri | description | request body | response body |
|---|---|---|---|---|---|
| 1 | Patch | /ticket_change/{count} | 티켓수 | ||
| 2 | Patch | /treasure_toggle/{idx} | 보물상자 토글 | ||
| 3 | Patch | /dress/{idx} | 드레스코드 토글 | ||
| 4 | Get | /get_ticket | 티켓수 넘겨주기 | { |
|
"ticket":1000 |
|||||
} |
|||||
| 5 | Get | /get_box | 보물상자 전부 넘기기 | `{ | |
| "box1":0, | |||||
| "box2":0, | |||||
| "box3":0, | |||||
| "box4":0 | |||||
| }` | |||||
| 6 | Get | /get_dress | 드레스코드 전부 넘기기 | `{ | |
| "dress1":1, | |||||
| "dress2":1 | |||||
| }` | |||||
| 7 | Get | /all | 모든 값 한번에 넘겨주기 | `{ | |
| "id":1, | |||||
| "ticket":1000, | |||||
| "box1":0, | |||||
| "box2":0, | |||||
| "box3":0, | |||||
| "box4":0, | |||||
| "dress1":1, | |||||
| "dress2":1 | |||||
| }` |
endpoint: /event
| index | method | uri | description | request body | response body |
|---|---|---|---|---|---|
| 1 | Get | /event_all | 모든 값 한번에 넘겨주기 | { | |
| "id": 1, | |||||
| "ticket": 7000, | |||||
| "box1": 0, | |||||
| "box2": 0, | |||||
| "box3": 0, | |||||
| "box4": 0, | |||||
| "dress1": 1, | |||||
| "dress2": 1 | |||||
| } | |||||
| 2 | Get | /ticket | 티켓수 넘겨주기 | { | |
| "ticket": 7000 | |||||
| } | |||||
| 3 | Get | /box | 보물상자 전부 넘기기 | { | |
| "box1": 0, | |||||
| "box2": 0, | |||||
| "box3": 0, | |||||
| "box4": 0 | |||||
| } | |||||
| 4 | Get | /dress | 드레스코드 전부 넘기기 | { | |
| "dress1": 1, | |||||
| "dress2": 1 | |||||
| } |