-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathswagger.example.txt
More file actions
113 lines (113 loc) · 2.6 KB
/
Copy pathswagger.example.txt
File metadata and controls
113 lines (113 loc) · 2.6 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
/**
* @swagger
* /v1/users/{id}:
* get:
* summary: Get a user by ID
* description: Returns a single user with optional related data.
* operationId: getUserById
* tags:
* - Users
*
* security:
* - bearerAuth: []
*
* parameters:
* - name: id
* in: path
* required: true
* description: The ID of the user
* schema:
* type: string
*
* - name: includeTokens
* in: query
* required: false
* description: Whether to include refresh tokens
* schema:
* type: boolean
*
* - name: x-request-id
* in: header
* required: false
* description: Optional request tracking ID
* schema:
* type: string
*
* requestBody:
* required: false
* content:
* application/json:
* schema:
* type: object
* properties:
* debug:
* type: boolean
* example: false
*
* responses:
* 200:
* description: User retrieved successfully
* headers:
* x-request-id:
* description: Request ID
* schema:
* type: string
* content:
* application/json:
* schema:
* type: object
* properties:
* id:
* type: string
* example: "user_123"
* email:
* type: string
* example: "max@test.com"
* refreshTokens:
* type: array
* items:
* $ref: '#/components/schemas/RefreshToken'
*
* 400:
* description: Bad request
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Error'
*
* 401:
* description: Unauthorized
*
* 404:
* description: User not found
*
* 500:
* description: Internal server error
*
* components:
* securitySchemes:
* bearerAuth:
* type: http
* scheme: bearer
* bearerFormat: JWT
*
* schemas:
* RefreshToken:
* type: object
* properties:
* id:
* type: string
* token:
* type: string
* expiresAt:
* type: string
* format: date-time
*
* Error:
* type: object
* properties:
* message:
* type: string
* code:
* type: string
*/