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.json 2.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "contact": {}
  5. },
  6. "paths": {
  7. "/api/v1/email/code": {
  8. "post": {
  9. "description": "Use email to send verification code",
  10. "produces": [
  11. "application/json"
  12. ],
  13. "tags": [
  14. "mail"
  15. ],
  16. "summary": "SendCode",
  17. "parameters": [
  18. {
  19. "description": "Email address",
  20. "name": "data",
  21. "in": "body",
  22. "required": true,
  23. "schema": {
  24. "$ref": "#/definitions/param.SendToParams"
  25. }
  26. }
  27. ],
  28. "responses": {
  29. "200": {
  30. "description": "Send success",
  31. "schema": {
  32. "allOf": [
  33. {
  34. "$ref": "#/definitions/response.Response"
  35. },
  36. {
  37. "type": "object",
  38. "properties": {
  39. "msg": {
  40. "type": "string"
  41. }
  42. }
  43. }
  44. ]
  45. }
  46. }
  47. }
  48. }
  49. }
  50. },
  51. "definitions": {
  52. "param.SendToParams": {
  53. "type": "object",
  54. "required": [
  55. "email"
  56. ],
  57. "properties": {
  58. "email": {
  59. "type": "string"
  60. }
  61. }
  62. },
  63. "response.Response": {
  64. "type": "object",
  65. "properties": {
  66. "code": {
  67. "type": "integer"
  68. },
  69. "data": {},
  70. "msg": {
  71. "type": "string"
  72. }
  73. }
  74. }
  75. }
  76. }