-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocs.yml
47 lines (47 loc) · 1.2 KB
/
docs.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
---
path:
/:
get:
summary: Default route
description: Anyone can access to it
consumes: application/json
produces: application/json
responses:
200:
description: Success response
content:
application/json:
schema:
type: object
properties:
status:
type: string
example: success
parameters:
- in: headers
description: Тип контента
name: content-type
schema:
type: string
required: true
default: application/json
enum:
- application/json
post:
summary: Default POST route
description: Anyone can access to it
consumes: application/json
produces: application/json
requestBody:
description: E-Mail Body
content:
application/json:
schema:
type: object
required:
- email
properties:
email:
type: string
format: email
example: [email protected]