v2-sign-in.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # 由 openapi/scripts/generate.php 生成,请勿手改;补充写到 overrides/v2-sign-in.yaml
  2. post:
  3. summary: 'signIn sign-in'
  4. tags:
  5. - sign-in
  6. operationId: post_api_v2_sign_in
  7. description: |
  8. 已被 `POST /v3/sessions` 取代。保留仅为 dashboard-v4 兼容,待 v4 下线后删除。
  9. requestBody:
  10. required: false
  11. content:
  12. application/json:
  13. schema:
  14. type: object
  15. properties:
  16. username:
  17. type: string
  18. password:
  19. type: string
  20. responses:
  21. 200:
  22. description: '成功。业务失败时 HTTP 仍可能为 200,以 ok 字段为准。'
  23. content:
  24. application/json:
  25. schema:
  26. type: object
  27. properties:
  28. ok:
  29. type: boolean
  30. message:
  31. type: string
  32. data:
  33. type: string
  34. description: '登录成功后返回的 JWT token'
  35. 401:
  36. $ref: '../../main.yaml#/components/responses/Unauthorized'
  37. 422:
  38. $ref: '../../main.yaml#/components/responses/ValidationError'
  39. deprecated: true