Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Add example swagger file showing different auth types
Browse files Browse the repository at this point in the history
  • Loading branch information
domharrington committed Jan 24, 2019
1 parent a81dae0 commit 335b963
Showing 1 changed file with 72 additions and 0 deletions.
72 changes: 72 additions & 0 deletions example/swagger-files/auth-types.json
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"]
}

0 comments on commit 335b963

Please sign in to comment.