blob: 06a0b72d1a566785c775f4790a56098439f99257 (
plain) (
blame)
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
124
125
126
127
128
129
130
131
132
133
134
135
136
|
openapi: 3.0.3
info:
title: Fosscord
version: '9'
license:
name: GNU AGPLv3
url: https://www.gnu.org/licenses/agpl.txt
x-last-modified: 1625409195984
x-logo:
url: ''
servers:
- url: https://api.fosscord.com
description: ''
x-last-modified: 1625407844365
paths:
/users/:id:
summary: get user
description: test
get:
tags: []
responses:
'200':
$ref: '#/components/responses/User'
x-last-modified: 1625409722629
parameters:
- name: id
in: path
required: true
deprecated: false
x-last-modified: 1625409813480
x-last-modified: 1625409704895
components:
schemas:
User:
type: object
properties:
avatar:
type: string
example:
- d83f330fc30367f859bc6ee358b14319
bot:
type: boolean
example:
- false
desktop:
type: boolean
example:
- false
discriminator:
type: string
example:
- '0001'
email:
type: string
example:
- example@example.org
flags:
type: string
example:
- '0'
id:
type: string
example:
- '732645009894277321'
mfa_enabled:
type: boolean
example:
- false
mobile:
type: boolean
example:
- false
nsfw_allowed:
type: boolean
example:
- true
premium:
type: boolean
example:
- false
premium_type:
type: number
example:
- 0
public_flags:
type: string
example:
- '0'
username:
type: string
example:
- Example
verified:
type: boolean
example:
- true
example:
avatar: d83f330fc30367f859bc6ee358b14319
bot: false
desktop: false
discriminator: '0001'
email: example@example.org
flags: '0'
id: '732645009894277321'
mfa_enabled: false
mobile: false
nsfw_allowed: true
premium: false
premium_type: 0
public_flags: '0'
username: Example
verified: true
x-last-modified: 1625409630283
required: []
description: test
securitySchemes:
JWTAuth:
scheme: bearer
bearerFormat: JWT
type: http
description: |-
Example:
> Authorization: Bot <token>
x-last-modified: 1625407825787
headers: {}
responses:
User:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
x-last-modified: 1625409578903
parameters: {}
security:
- JWTAuth: []
tags: []
|