|
6 | 6 | "path": "/pet",
|
7 | 7 | "description": "Operations about pets"
|
8 | 8 | },
|
9 |
| - { |
10 |
| - "path": "/store", |
11 |
| - "description": "Operations about store" |
12 |
| - }, |
13 | 9 | {
|
14 | 10 | "path": "/user",
|
15 | 11 | "description": "Operations about user"
|
| 12 | + }, |
| 13 | + { |
| 14 | + "path": "/store", |
| 15 | + "description": "Operations about store" |
16 | 16 | }
|
17 | 17 | ],
|
18 | 18 | "authorizations": {
|
19 | 19 | "oauth2": {
|
20 | 20 | "type": "oauth2",
|
21 | 21 | "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 | + } |
23 | 30 | ],
|
24 | 31 | "grantTypes": {
|
25 | 32 | "implicit": {
|
26 | 33 | "loginEndpoint": {
|
27 |
| - "url": "http://localhost:8002/oauth/dialog" |
| 34 | + "url": "http://petstore.swagger.wordnik.com/oauth/dialog" |
28 | 35 | },
|
29 |
| - "tokenName": "access_code" |
| 36 | + "tokenName": "access_token" |
30 | 37 | },
|
31 | 38 | "authorization_code": {
|
32 | 39 | "tokenRequestEndpoint": {
|
33 |
| - "url": "http://localhost:8002/oauth/requestToken", |
| 40 | + "url": "http://petstore.swagger.wordnik.com/oauth/requestToken", |
34 | 41 | "clientIdName": "client_id",
|
35 | 42 | "clientSecretName": "client_secret"
|
36 | 43 | },
|
37 | 44 | "tokenEndpoint": {
|
38 |
| - "url": "http://localhost:8002/oauth/token", |
| 45 | + "url": "http://petstore.swagger.wordnik.com/oauth/token", |
39 | 46 | "tokenName": "access_code"
|
40 | 47 | }
|
41 | 48 | }
|
42 | 49 | }
|
43 |
| - }, |
44 |
| - "apiKey": { |
45 |
| - "type": "apiKey", |
46 |
| - "passAs": "header" |
47 | 50 | }
|
48 | 51 | },
|
49 | 52 | "info": {
|
50 | 53 | "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", |
52 | 55 | "termsOfServiceUrl": "http://helloreverb.com/terms/",
|
53 | 56 |
|
54 | 57 | "license": "Apache 2.0",
|
|
0 commit comments