forked from springdoc/springdoc-openapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp24.json
More file actions
82 lines (82 loc) · 1.86 KB
/
app24.json
File metadata and controls
82 lines (82 loc) · 1.86 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
{
"openapi": "3.0.1",
"info": {
"title": "Petstore API",
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"termsOfService": "http://swagger.io/terms/",
"license": {
"name": "Apache 2.0",
"url": "http://springdoc.org"
},
"version": "v0"
},
"servers": [
{
"url": "http://localhost",
"description": "Generated server url"
}
],
"paths": {
"/persons": {
"get": {
"tags": [
"hello-controller"
],
"summary": "Add a new person to the store",
"operationId": "persons",
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"schema": {
"minLength": 1,
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
}
},
"security": [
{
"Authorization": []
}
]
}
}
},
"components": {
"parameters": {
"myHeader1": {
"name": "myHeader1",
"in": "header",
"schema": {
"type": "string"
}
}
},
"headers": {
"myHeader2": {
"description": "myHeader2 header",
"schema": {
"type": "string"
}
}
},
"securitySchemes": {
"basicScheme": {
"type": "http",
"scheme": "basic"
},
"Authorization": {
"type": "apiKey",
"description": "A core-auth Bearer token",
"name": "Authorization",
"in": "header"
}
}
}
}