JWT Endpoints

JWT Create

使用此端点获取JWT.

预设网址: /jwt/create/

Method Request Response
POST
  • {{ User.USERNAME_FIELD }}
  • password

HTTP_200_OK

  • access
  • refresh

HTTP_400_BAD_REQUEST

  • non_field_errors

JWT Refresh

使用此端点刷新JWT.

预设网址: /jwt/refresh/

Method Request Response
POST
  • refresh

HTTP_200_OK

  • access

HTTP_400_BAD_REQUEST

  • non_field_errors

JWT Verify

使用此端点来验证JWT.

预设网址: /jwt/verify/

Method Request Response
POST
  • token

HTTP_200_OK

HTTP_400_BAD_REQUEST

  • non_field_errors