Skip to content

Commit 6a9b898

Browse files
committed
added the lastet changes
1 parent 646850f commit 6a9b898

File tree

5 files changed

+4277
-0
lines changed

5 files changed

+4277
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"swagger":"2.0",
3+
"info":{
4+
"title":"sample",
5+
"version":"1.0"
6+
7+
},
8+
"host":"localhost:51552",
9+
"basePath":"/",
10+
"tags":[
11+
{
12+
"name":"foo-controller",
13+
"description":"Foo Controller"
14+
}
15+
],
16+
"paths":{
17+
"/foobar":{
18+
"get":{
19+
"tags":[
20+
"foo-controller"
21+
],
22+
"summary":"foo",
23+
"operationId":"fooUsingGET",
24+
"produces":[
25+
"*/*"
26+
],
27+
"parameters":[
28+
{
29+
"name":"bar",
30+
"in":"query",
31+
"required":false,
32+
"type":"integer",
33+
"maximum":4.0,
34+
"exclusiveMaximum":false,
35+
"minimum":3.0,
36+
"exclusiveMinimum":false,
37+
"format":"int32"
38+
},
39+
40+
{
41+
"name":"bars",
42+
"in":"query",
43+
"required":true,
44+
"type":"array",
45+
"items":{
46+
"type":"integer",
47+
"format":"int32"
48+
},
49+
"collectionFormat":"multi",
50+
"maximum":2,
51+
"minimum":1
52+
},
53+
54+
{
55+
"name":"foo",
56+
"in":"query",
57+
"required":false,
58+
"type":"string",
59+
"pattern":"foo"
60+
}
61+
],
62+
"responses":{
63+
"200":{
64+
"description":"OK"
65+
},
66+
"401":{
67+
"description":"Unauthorized"
68+
},
69+
"403":{
70+
"description":"Forbidden"
71+
},
72+
"404":{
73+
"description":"Not Found"
74+
}
75+
},
76+
"deprecated":false
77+
}
78+
}
79+
}
80+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"openapi":"3.0.0",
3+
"info":{
4+
"title":"data",
5+
"version":"1"
6+
},
7+
8+
"tags":[
9+
{
10+
"name":"foo-controller",
11+
"description":"Foo Controller"
12+
}
13+
],
14+
15+
16+
"paths":{
17+
"/foobar":{
18+
"get":{
19+
"tags":[
20+
"foo-controller"
21+
],
22+
"summary":"foo",
23+
"operationId":"fooUsingGET",
24+
25+
"parameters":[
26+
{
27+
"name":"bars",
28+
"in":"path",
29+
"required":true,
30+
"schema": {
31+
"type": "string",
32+
"format": "byte"
33+
}
34+
}
35+
],
36+
"responses":{
37+
"200":{
38+
"description":"OK"
39+
}
40+
},
41+
"deprecated":false
42+
}
43+
}
44+
},
45+
"components": {
46+
"securitySchemes": {
47+
"sample":{
48+
"type": "oauth2",
49+
"flows": {
50+
"implicit": {
51+
"authorizationUrl": "https://example.com/api/oauth/dialog",
52+
"scopes": {
53+
"write:pets": "modify pets in your account",
54+
"read:pets": "read your pets"
55+
}
56+
},
57+
"authorizationCode": {
58+
"authorizationUrl": "https://example.com/api/oauth/dialog",
59+
"tokenUrl": "https://example.com/api/oauth/token"
60+
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}

0 commit comments

Comments
 (0)