-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenApi.yml
37 lines (36 loc) · 1 KB
/
openApi.yml
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
openapi: 3.0.0
info:
title: Utilities for Signalk
version: 1.0.0
servers:
- url: http://localhost:3000
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 address
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)