-
Notifications
You must be signed in to change notification settings - Fork 10
Admin API
Heesun Kim edited this page Dec 10, 2019
·
2 revisions
κ° μμ²μ λν μ±κ³΅μ λ€μνμ§λ§, μμ²μ λν μ€ν¨λ μλμ νμμΌλ‘ λͺ¨λ μμ²μ λμΌνλ€.
- RES: { result: false, message }
- REQ: GET (/api)/admin/user/list
- RES: { result, userList: [ { github_id, is_admin }, ... ] }
- REQ: GET (/api)/admin/user/:githubId
- RES: { result, user: { github_id, is_admin } }
- REQ: PUT (/api)/admin/user
- body: { githubId, action }
- μ΄ λ, actionμ
authorize
||deauthorize
- RES: { result }
- REQ: DELETE (/api)/admin/user
- body: { githubId }
- RES: { result }
- REQ: GET (/api)/admin/nickname/noun/list
- RES: { result, nounList }
- REQ: POST (/api)/admin/nickname/noun
- body: { noun }
- RES: { result }
- REQ: GET (/api)/admin/nickname/noun
- body: { id, noun }
- RES: { result }
- REQ: GET (/api)/admin/nickname/noun
- body: { id }
- RES: { result }
- REQ: GET (/api)/admin/nickname/adj/list
- RES: { result, adjList }
- REQ: POST (/api)/admin/nickname/adj
- body: { adj }
- RES: { result }
- REQ: GET (/api)/admin/nickname/adj
- body: { id, adj }
- RES: { result }
- REQ: GET (/api)/admin/nickname/adj
- body: { id }
- RES: { result }
- REQ: GET (/api)/admin/quiz/list
- RES: { result, quizList }
- REQ: POST (/api)/admin/quiz
- body: { category, level, question, comment, answer }
- RES: { result }
- REQ: GET (/api)/admin/quiz
- body: { id, action, value }
- μ¬κΈ°μ action:
category
||level
||question
||comment
||answer
- μ¬κΈ°μ value: κ° actionμ ν΄λΉνλ μλ‘μ΄ κ°
- RES: { result }
- REQ: GET (/api)/admin/quiz
- body: { id }
- RES: { result }
- REQ: GET (/api)/admin/image/list
- RES: { result, imageList }
- REQ: POST (/api)/admin/image
- body: { category, name, url }
- RES: { result }
- REQ: GET (/api)/admin/image
- body: { id, action, value }
- μ¬κΈ°μ action:
category
||name
||url
- μ¬κΈ°μ value: κ° actionμ ν΄λΉνλ μλ‘μ΄ κ°
- RES: { result }
- REQ: GET (/api)/admin/image
- body: { id }
- RES: { result }