-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yml
59 lines (58 loc) · 1.47 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
openapi: 3.0.2
info:
title: API User
version: "1.0"
description: This is the service that manages the celery tasks in the app GoOutSafe
servers:
- url: "https://api.prova/"
variables: {}
description: The first server used for the definition of APIs
paths:
/mails:
post:
x-openapi-router-controller: microservice.api.tasks
summary: "Send a mail"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/Mail"
responses:
"204":
description: "Sent"
tags:
- "Mail"
components:
schemas:
Mail:
required:
- subject
- recipients
- text_body
type: object
properties:
subject:
type: string
description: "The subject of the mail"
maxLength: 128
example: "Covid info"
recipients:
type: array
items:
type: string
description: "The mail recipients"
example: [email protected]
text_body:
type: string
description: "The text body of the mail"
maxLength: 128
example: "You are infected! Prepare to die"
html_body:
type: string
description: "The html body of the mail"
example: "<h1>Nice</h1>"
sender:
type: string
description: "The sender of the mail"
example: "Pippo Puppo"