Tokens - Gachon-P-project/Back GitHub Wiki
μ¬μ©μμ λλ°μ΄μ€ ν ν°μ λ±λ‘νλ λ‘μ§
-
URL
/tokens
-
Method
POST
-
Data Params
μ΄λ¦ | μ€λͺ | νμ | νμ |
---|---|---|---|
token | κ²μκΈ μ λͺ© | VARCHAR(200) | O |
user_no | μ¬μ©μ νλ² | INT(11) | O |
user_major | μ¬μ©μ νκ³Ό | VARCHAR(30) | O |
- Sample Call
http://localhost:17394/tokens
- Data Input Exaple:
{
"token": "token_test",
"user_no": "201739412",
"user_major": "μ»΄ν¨ν°κ³΅νκ³Ό"
}
-
Success Response
Content: { }
-
Error Response
Code: 400 BAD REQUEST
Content: { error : "null κ°μ΄ μ‘΄μ¬ν©λλ€." }
Code: 401 UNAUTHORIZED
Content: { error : "μΈμ¦ μ€ν¨" }