|
- {
- "swagger": "2.0",
- "info": {
- "contact": {}
- },
- "paths": {
- "/api/v1/email/code": {
- "post": {
- "description": "Use email to send verification code",
- "produces": [
- "application/json"
- ],
- "tags": [
- "mail"
- ],
- "summary": "SendCode",
- "parameters": [
- {
- "description": "Email address",
- "name": "data",
- "in": "body",
- "required": true,
- "schema": {
- "$ref": "#/definitions/param.SendToParams"
- }
- }
- ],
- "responses": {
- "200": {
- "description": "Send success",
- "schema": {
- "allOf": [
- {
- "$ref": "#/definitions/response.Response"
- },
- {
- "type": "object",
- "properties": {
- "msg": {
- "type": "string"
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- },
- "definitions": {
- "param.SendToParams": {
- "type": "object",
- "required": [
- "email"
- ],
- "properties": {
- "email": {
- "type": "string"
- }
- }
- },
- "response.Response": {
- "type": "object",
- "properties": {
- "code": {
- "type": "integer"
- },
- "data": {},
- "msg": {
- "type": "string"
- }
- }
- }
- }
- }
|