-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenApi.json
58 lines (58 loc) · 1.55 KB
/
openApi.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
{
"openapi": "3.0.0",
"info": {
"title": "Utilities for Signalk",
"version": "1.0.0"
},
"servers": [
{
"url": "/"
}
],
"paths": {
"/sendmail": {
"post": {
"summary": "Send an email via Nodemailer",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Recipient email addresses"
},
"subject": {
"type": "string",
"description": "Email subject"
},
"text": {
"type": "string",
"description": "Plain text email body"
},
"html": {
"type": "string",
"description": "HTML email body (optional)"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Email sent successfully"
},
"400": {
"description": "Bad request (e.g., missing required fields)"
},
"500": {
"description": "Internal server error (e.g., Nodemailer configuration issue)"
}
}
}
}
}
}