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 : "인증 μ‹€νŒ¨" }
⚠️ **GitHub.com Fallback** ⚠️