Skip to content

Instantly share code, notes, and snippets.

@jdevillard
Created October 26, 2021 08:45
Show Gist options
  • Save jdevillard/c3989391f3f1fa65a69a3da2a01c9a6e to your computer and use it in GitHub Desktop.
Save jdevillard/c3989391f3f1fa65a69a3da2a01c9a6e to your computer and use it in GitHub Desktop.
httpbin.org v2 service contract definition
{
"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": ""
}
}
}
},
"/put": {
"put": {
"summary": "PUT",
"operationId": "put",
"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