This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example swagger file showing different auth types
- Loading branch information
1 parent
a81dae0
commit 335b963
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"openapi": "3.0.0", | ||
"servers": [ | ||
{ | ||
"url": "http://httpbin.org" | ||
} | ||
], | ||
"info": { | ||
"version": "1.0.0", | ||
"title": "Different auth types" | ||
}, | ||
"paths": { | ||
"/anything/oauth2": { | ||
"post": { | ||
"summary": "Oauth2 security type", | ||
"description": "", | ||
"parameters": [], | ||
"responses": {}, | ||
"security": [ | ||
{ | ||
"oauth2": [] | ||
} | ||
] | ||
} | ||
}, | ||
"/anything/basic": { | ||
"post": { | ||
"summary": "Basic security type", | ||
"description": "", | ||
"parameters": [], | ||
"responses": {}, | ||
"security": [ | ||
{ | ||
"basic": [] | ||
} | ||
] | ||
} | ||
}, | ||
"/anything/apiKey": { | ||
"post": { | ||
"summary": "ApiKey security type", | ||
"description": "", | ||
"parameters": [], | ||
"responses": {}, | ||
"security": [ | ||
{ | ||
"apiKey": [] | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"components": { | ||
"securitySchemes": { | ||
"oauth2": { | ||
"type": "oauth2" | ||
}, | ||
"basic": { | ||
"type": "http", | ||
"scheme": "basic" | ||
}, | ||
"apiKey": { | ||
"type": "apiKey", | ||
"in": "query", | ||
"name": "apiKey" | ||
} | ||
} | ||
}, | ||
"x-explorer-enabled": true, | ||
"x-samples-enabled": true, | ||
"x-samples-languages": ["curl", "node", "ruby", "javascript", "python"] | ||
} |