1{
2 "openapi": "3.0.0",
3 "info": {
4 "title": "CLI Warning API",
5 "version": "1.0.0"
6 },
7 "paths": {
8 "/users/{id}": {
9 "get": {
10 "operationId": "getUser",
11 "parameters": [
12 {
13 "name": "id",
14 "in": "path",
15 "required": true,
16 "schema": {
17 "type": "string"
18 }
19 },
20 {
21 "name": "session",
22 "in": "cookie",
23 "required": false,
24 "schema": {
25 "type": "string"
26 }
27 }
28 ],
29 "responses": {
30 "200": {
31 "description": "User response",
32 "content": {
33 "application/json": {
34 "schema": {
35 "type": "object",
36 "properties": {
37 "id": {
38 "type": "string"
39 }
40 },
41 "required": ["id"],
42 "additionalProperties": false
43 }
44 }
45 }
46 }
47 }
48 }
49 }
50 },
51 "components": {
52 "schemas": {},
53 "securitySchemes": {}
54 },
55 "security": [],
56 "tags": []
57}