-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
openapi.yml
75 lines (70 loc) · 1.46 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
openapi: 3.1.0
info:
title: Note Mark - API
description: ""
version: 0.6.0
components:
securitySchemes:
OAuth2:
type: oauth2
description: ""
flows:
password:
tokenUrl: /api/auth/token
scopes: {}
schemas:
Base:
type: object
required:
- id
- createdAt
- updatedAt
properties:
id:
format: uuid
type: string
createdAt:
format: date-time
type: string
updatedAt:
format: date-time
type: string
User:
allOf:
- $ref: "#/components/schemas/Base"
- type: object
properties:
username:
type: string
CreateUser:
type: object
required:
- username
- password
properties:
username:
type: string
password:
type: string
requestBodies:
CreateUser:
content:
application/json:
schema:
allOf: [{ $ref: "#/components/schemas/CreateUser" }]
security:
- OAuth2: []
paths:
/api/users/:
post:
tags:
- Users
security: []
summary: "Create a new user"
requestBody: { $ref: "#/components/requestBodies/CreateUser" }
responses:
201:
description: ""
content:
application/json:
schema: { $ref: "#/components/schemas/User" }