Created
October 26, 2021 08:58
-
-
Save jdevillard/9e6e9ec4865ca3f656fc44dfe0f51d40 to your computer and use it in GitHub Desktop.
httpbin.org v2-rev2 service contract definition
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
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "HttpBinOrg", | |
"description": "", | |
"version": "1.0" | |
}, | |
"servers": [ | |
{ | |
"url": "https://address-of/http-bin.org/" | |
} | |
], | |
"paths": { | |
"/get": { | |
"get": { | |
"summary": "Returns GET data.", | |
"operationId": "get", | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/post": { | |
"post": { | |
"summary": "POST", | |
"operationId": "post", | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
}, | |
"/delete": { | |
"delete": { | |
"summary": "DELETE", | |
"operationId": "delete", | |
"description": "A demonstration of a DELETE call which traditionally deletes the resource.", | |
"responses": { | |
"200": { | |
"description": "" | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"securitySchemes": { | |
"apiKeyHeader": { | |
"type": "apiKey", | |
"name": "Ocp-Apim-Subscription-Key", | |
"in": "header" | |
}, | |
"apiKeyQuery": { | |
"type": "apiKey", | |
"name": "subscription-key", | |
"in": "query" | |
} | |
} | |
}, | |
"security": [ | |
{ | |
"apiKeyHeader": [] | |
}, | |
{ | |
"apiKeyQuery": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment