-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
123 lines (123 loc) · 2.89 KB
/
schema.yaml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
openapi: 3.0.3
info:
title: Personal Journal APP
version: 1.0.0
description: Backend service API for personal journaling
paths:
/account/account/logout/:
post:
operationId: account_account_logout_create
tags:
- account
security:
- cookieAuth: []
- basicAuth: []
responses:
'200':
description: No response body
/account/account/register/:
post:
operationId: account_account_register_create
tags:
- account
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Registration'
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/Registration'
multipart/form-data:
schema:
$ref: '#/components/schemas/Registration'
required: true
security:
- cookieAuth: []
- basicAuth: []
- {}
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/Registration'
description: ''
/account/login/:
post:
operationId: account_login_create
tags:
- account
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/AuthToken'
multipart/form-data:
schema:
$ref: '#/components/schemas/AuthToken'
application/json:
schema:
$ref: '#/components/schemas/AuthToken'
required: true
security:
- cookieAuth: []
- basicAuth: []
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AuthToken'
description: ''
components:
schemas:
AuthToken:
type: object
properties:
username:
type: string
writeOnly: true
password:
type: string
writeOnly: true
token:
type: string
readOnly: true
required:
- password
- token
- username
Registration:
type: object
properties:
username:
type: string
description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_
only.
pattern: ^[\w.@+-]+$
maxLength: 150
email:
type: string
format: email
title: Email address
maxLength: 254
password:
type: string
writeOnly: true
maxLength: 128
password2:
type: string
writeOnly: true
required:
- password
- password2
- username
securitySchemes:
basicAuth:
type: http
scheme: basic
cookieAuth:
type: apiKey
in: cookie
name: sessionid