유저 토큰 발급 API

유저의 ID를 기반으로 대기열에 등록하고, 대기열 상태 및 순위 을 포함한 토큰을 반환합니다.

토큰 발급

POST /tokens

<엔드포인트 설명>

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

userId

number

유저의 ID

Response

{
  "code": "S",
  "message": "토큰 발급 및 대기열 등록이 완료되었습니다.",
  "data": {
    "queueSort": 181,
    "expiredAt": 1659107513,
    "hasPassedQueue": true
  },
  "error": null
}

 //"token" : "string",       // 대기열 토큰, 이후 API 요청 시 사용
                             // Authorization 헤더의 Bearer <token>에 따로 저장

Last updated