-
Notifications
You must be signed in to change notification settings - Fork 0
/
notifications-service.yml
57 lines (56 loc) · 1.29 KB
/
notifications-service.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
openapi: 3.0.3
info:
description: |
Notifications Service REST API
version: "v1"
title: Notifications Service
paths:
/emails:
post:
summary: Send email
description: Send an email
operationId: send_email
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/EmailRequest"
responses:
"202":
description: Successful operation. Email sending triggered.
content:
application/json:
schema:
$ref: "#/components/schemas/EmailResponse"
examples:
success1:
summary: Email sent
value:
emailId: "email1"
success2:
summary: Email sent
value:
emailId: "email2"
"400":
description: Invalid request body
components:
schemas:
EmailRequest:
type: object
required:
- address
- title
- body
properties:
address:
type: string
format: email
title:
type: string
body:
type: string
EmailResponse:
type: object
properties:
emailId:
type: string