Skip to content

Commit ffca1e2

Browse files
committed
updated listings
1 parent 1aa65bc commit ffca1e2

File tree

4 files changed

+312
-131
lines changed

4 files changed

+312
-131
lines changed

src/test/resources/petstore-1.2/api-docs

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,52 @@
66
"path": "/pet",
77
"description": "Operations about pets"
88
},
9-
{
10-
"path": "/store",
11-
"description": "Operations about store"
12-
},
139
{
1410
"path": "/user",
1511
"description": "Operations about user"
12+
},
13+
{
14+
"path": "/store",
15+
"description": "Operations about store"
1616
}
1717
],
1818
"authorizations": {
1919
"oauth2": {
2020
"type": "oauth2",
2121
"scopes": [
22-
"PUBLIC"
22+
{
23+
"scope": "email",
24+
"description": "Access to your email address"
25+
},
26+
{
27+
"scope": "pets",
28+
"description": "Access to your pets"
29+
}
2330
],
2431
"grantTypes": {
2532
"implicit": {
2633
"loginEndpoint": {
27-
"url": "http://localhost:8002/oauth/dialog"
34+
"url": "http://petstore.swagger.wordnik.com/oauth/dialog"
2835
},
29-
"tokenName": "access_code"
36+
"tokenName": "access_token"
3037
},
3138
"authorization_code": {
3239
"tokenRequestEndpoint": {
33-
"url": "http://localhost:8002/oauth/requestToken",
40+
"url": "http://petstore.swagger.wordnik.com/oauth/requestToken",
3441
"clientIdName": "client_id",
3542
"clientSecretName": "client_secret"
3643
},
3744
"tokenEndpoint": {
38-
"url": "http://localhost:8002/oauth/token",
45+
"url": "http://petstore.swagger.wordnik.com/oauth/token",
3946
"tokenName": "access_code"
4047
}
4148
}
4249
}
43-
},
44-
"apiKey": {
45-
"type": "apiKey",
46-
"passAs": "header"
4750
}
4851
},
4952
"info": {
5053
"title": "Swagger Sample App",
51-
"description": "This is a sample server Petstore server. You can find out more about Swagger \n at <a href=\"http://swagger.wordnik.com\">http://swagger.wordnik.com</a> or on irc.freenode.net, #swagger.",
54+
"description": "This is a sample server Petstore server. You can find out more about Swagger \n at <a href=\"http://swagger.wordnik.com\">http://swagger.wordnik.com</a> or on irc.freenode.net, #swagger. For this sample,\n you can use the api key \"special-key\" to test the authorization filters",
5255
"termsOfServiceUrl": "http://helloreverb.com/terms/",
5356
"contact": "[email protected]",
5457
"license": "Apache 2.0",

0 commit comments

Comments
 (0)