Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyfiel/0ec5f45029e701f66d4c62521d41f24c to your computer and use it in GitHub Desktop.
Save jeremyfiel/0ec5f45029e701f66d4c62521d41f24c to your computer and use it in GitHub Desktop.
{
"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