You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

swagger.yaml 1.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright © 2023 OpenIMSDK open source community. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. definitions:
  15. param.SendToParams:
  16. properties:
  17. email:
  18. type: string
  19. required:
  20. - email
  21. type: object
  22. response.Response:
  23. properties:
  24. code:
  25. type: integer
  26. data: {}
  27. msg:
  28. type: string
  29. type: object
  30. info:
  31. contact: {}
  32. paths:
  33. /api/v1/email/code:
  34. post:
  35. description: Use email to send verification code
  36. parameters:
  37. - description: Email address
  38. in: body
  39. name: data
  40. required: true
  41. schema:
  42. $ref: '#/definitions/param.SendToParams'
  43. produces:
  44. - application/json
  45. responses:
  46. "200":
  47. description: Send success
  48. schema:
  49. allOf:
  50. - $ref: '#/definitions/response.Response'
  51. - properties:
  52. msg:
  53. type: string
  54. type: object
  55. summary: SendCode
  56. tags:
  57. - mail
  58. swagger: "2.0"