-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswagger.json
105 lines (103 loc) · 2.45 KB
/
swagger.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"swagger": "2.0",
"info": {
"description": "Tech X mail Note you can't send a text and html. pick one",
"version": "1.0.0",
"title": "Tech x Mail",
"contact": {
"email": "paulambrose5002@gmail.com"
},
"license": {
"name": "Apache 2.0",
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"schemes": ["http"],
"host": "https://techxmail.onrender.com/api-docs/",
"basePath": "/",
"paths": {
"/sendmail": {
"post": {
"summary": "Send mail ",
"description": "Send mail . containing any details",
"produces": ["application/json"],
"consumes": ["application/json"],
"parameters": [
{
"in": "body",
"name": "body",
"description": "params.",
"required": true,
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"value": "kkk"
},
"mail": {
"type": "string",
"value": "kkk"
},
"subject": {
"type": "string",
"value": "kkk"
},
"text": {
"type": "string",
"value": "kkk"
},
"html": {
"type": "string",
"value": "kkk"
}
}
}
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
"$ref": "#/definitions/success"
}
},
"400": {
"description": "Invalid status value",
"schema": {
"$ref": "#/definitions/InvalidResponse"
}
}
}
}
}
},
"definitions": {
"success": {
"type": "object",
"properties": {
"message": {
"type": "string",
"value": "Email sent successfully"
},
"status": {
"type": "number",
"value": 200
}
}
},
"InvalidResponse": {
"type": "object",
"properties": {
"statusCode": {
"type": "number",
"value": "400"
},
"message": {
"type": "string",
"value": "incomplete data"
}
}
}
}
}