Created
April 22, 2022 19:44
-
-
Save jeremyfiel/0ec5f45029e701f66d4c62521d41f24c to your computer and use it in GitHub Desktop.
This file contains hidden or 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.3", | |
"servers": [ | |
{ | |
"url": "https://__host__/" | |
} | |
], | |
"info": { | |
"description": "Test api", | |
"version": "1.0.0", | |
"title": "empty title" | |
}, | |
"paths": { | |
"/some-path/{aoid}": { | |
"get": { | |
"description": "some description", | |
"tags": [ | |
"a tag" | |
], | |
"summary": "what it does", | |
"parameters": [ | |
{ | |
"$ref": "#/components/parameters/path_aoid" | |
}, | |
{ | |
"$ref": "#/components/parameters/query_filter" | |
}, | |
{ | |
"$ref": "#/components/parameters/header_If-Match" | |
} | |
], | |
"responses": { | |
"200": { | |
"description": "Ok", | |
"headers": { | |
"ETag": { | |
"$ref": "#/components/headers/ETag" | |
}, | |
"Last-Modified": { | |
"$ref": "#/components/headers/Last-Modified" | |
} | |
}, | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"parameters": { | |
"path_aoid": { | |
"name": "aoid", | |
"in": "path", | |
"description": "a param", | |
"required": true, | |
"schema": { | |
"$ref": "../../../common/associateOIDType_v01.json" | |
} | |
}, | |
"header_If-Match": { | |
"name": "If-Match", | |
"in": "header", | |
"description": "If-Match caching policy", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
}, | |
"headers": { | |
"ETag": { | |
"description": "Defines the entity tag for use with the If-Match and If-None-Match request headers", | |
"schema": { | |
"type": "string" | |
} | |
}, | |
"Last-Modified": { | |
"description": "Specifies the date and time the representational state of the resource was last modified", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment