-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.yaml
More file actions
167 lines (166 loc) · 3.94 KB
/
api.yaml
File metadata and controls
167 lines (166 loc) · 3.94 KB
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2025-Present Datadog, Inc.
openapi: 3.0.4
info:
title: User Management API
version: v1
paths:
/api/users/v1/connect/authorize:
get:
tags:
- Authorization
responses:
'200':
description: OK
post:
tags:
- Authorization
responses:
'200':
description: OK
/api/users/v1/connect/logout:
get:
tags:
- Authorization
responses:
'200':
description: OK
post:
tags:
- Authorization
responses:
'200':
description: OK
/api/users/v1/connect/token:
post:
tags:
- Authorization
responses:
'200':
description: OK
'/api/users/v{version}/details':
get:
tags:
- api
description: Get the current authenticated users details
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/UserAccountDtoApiResponse'
'401':
description: Unauthorized
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
put:
tags:
- api
description: Update the user details
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateUserDetailsRequest'
required: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StringApiResponse'
'401':
description: Unauthorized
content:
application/problem+json:
schema:
$ref: '#/components/schemas/ProblemDetails'
components:
schemas:
ProblemDetails:
type: object
properties:
type:
type: string
nullable: true
title:
type: string
nullable: true
status:
type: integer
format: int32
nullable: true
detail:
type: string
nullable: true
instance:
type: string
nullable: true
additionalProperties: { }
StringApiResponse:
type: object
properties:
success:
type: boolean
message:
type: string
nullable: true
data:
type: string
nullable: true
additionalProperties: false
UpdateUserDetailsRequest:
type: object
properties:
firstName:
type: string
nullable: true
lastName:
type: string
nullable: true
additionalProperties: false
UserAccountDto:
type: object
properties:
accountId:
type: string
nullable: true
emailAddress:
type: string
nullable: true
firstName:
type: string
nullable: true
lastName:
type: string
nullable: true
claimedStickerCount:
type: integer
format: int32
additionalProperties: false
UserAccountDtoApiResponse:
type: object
properties:
success:
type: boolean
message:
type: string
nullable: true
data:
$ref: '#/components/schemas/UserAccountDto'
additionalProperties: false
securitySchemes:
oauth2:
type: oauth2
description: OAuth 2.0
flows:
authorizationCode:
authorizationUrl: file:///api/users/v1/connect/authorize
tokenUrl: file:///api/users/v1/connect/token
scopes:
User: Read