-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.json
44 lines (44 loc) · 1.94 KB
/
swagger.json
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
{
"openapi": "3.1.0",
"info": { "title": "API", "description": "API", "version": "1.0.0" },
"servers": [{ "url": "http://localhost:{port}", "description": "Local", "variables": { "port": { "default": "3000" } } }],
"paths": {
"/user/{{userId}}": {
"get": {
"operationId": "getUser",
"tags": ["auth"],
"parameters": [
{ "in": "query", "name": "status", "required": true, "schema": {} },
{ "in": "path", "name": "userId", "required": true, "schema": {} }
],
"responses": {
"default": {
"description": "Success Response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"user": {
"type": "object",
"additionalProperties": false,
"properties": {
"userId": { "type": "string" },
"status": { "type": "string", "enum": ["pending", "success"] },
"email": { "type": "string" }
},
"required": ["email", "status", "userId"]
}
},
"required": ["user"],
"additionalProperties": false
}
}
}
}
}
}
}
},
"tags": []
}