2018-11-05 20:24:39 +00:00
|
|
|
{
|
|
|
|
"openapi": "3.0.2",
|
|
|
|
"info": {
|
|
|
|
"title": "HashiCorp Vault API",
|
|
|
|
"description": "HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`.",
|
|
|
|
"version": "<vault_version>",
|
|
|
|
"license": {
|
|
|
|
"name": "Mozilla Public License 2.0",
|
|
|
|
"url": "https://www.mozilla.org/en-US/MPL/2.0"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"paths": {
|
|
|
|
"/foo/{id}": {
|
|
|
|
"description": "Synopsis",
|
2019-01-29 23:35:37 +00:00
|
|
|
"x-vault-createSupported": true,
|
2018-11-05 20:24:39 +00:00
|
|
|
"x-vault-sudo": true,
|
2019-06-21 15:08:08 +00:00
|
|
|
"x-vault-displayAttrs": {
|
|
|
|
"navigation": true
|
|
|
|
},
|
2018-11-05 20:24:39 +00:00
|
|
|
"parameters": [
|
2019-03-28 21:40:56 +00:00
|
|
|
{
|
|
|
|
"name": "format",
|
|
|
|
"description": "a query param",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2018-11-05 20:24:39 +00:00
|
|
|
{
|
|
|
|
"name": "id",
|
|
|
|
"description": "id path parameter",
|
|
|
|
"in": "path",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"required": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"get": {
|
2019-01-04 19:46:54 +00:00
|
|
|
"operationId": "getFooId",
|
2018-11-05 20:24:39 +00:00
|
|
|
"tags": ["secrets"],
|
|
|
|
"summary": "My Summary",
|
|
|
|
"description": "My Description",
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"name": "list",
|
|
|
|
"description": "Return a list if `true`",
|
|
|
|
"in": "query",
|
|
|
|
"schema": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"post": {
|
2019-01-04 19:46:54 +00:00
|
|
|
"operationId": "postFooId",
|
2018-11-05 20:24:39 +00:00
|
|
|
"tags": ["secrets"],
|
|
|
|
"summary": "Update Summary",
|
|
|
|
"description": "Update Description",
|
|
|
|
"requestBody": {
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"type": "object",
|
2019-03-28 21:40:56 +00:00
|
|
|
"required": ["age"],
|
2018-11-05 20:24:39 +00:00
|
|
|
"properties": {
|
|
|
|
"flavors": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "the flavors",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2019-01-09 00:50:24 +00:00
|
|
|
"age": {
|
2019-01-29 23:35:37 +00:00
|
|
|
"type": "integer",
|
2019-01-09 00:50:24 +00:00
|
|
|
"description": "the age",
|
2019-01-29 23:35:37 +00:00
|
|
|
"enum": [1, 2, 3],
|
2019-06-21 15:08:08 +00:00
|
|
|
"x-vault-displayAttrs": {
|
|
|
|
"name": "Age",
|
|
|
|
"sensitive": true,
|
|
|
|
"group": "Some Group",
|
|
|
|
"value": 7
|
|
|
|
}
|
2019-01-09 00:50:24 +00:00
|
|
|
},
|
2018-11-05 20:24:39 +00:00
|
|
|
"name": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "the name",
|
2019-02-12 23:36:13 +00:00
|
|
|
"default": "Larry",
|
2018-11-05 20:24:39 +00:00
|
|
|
"pattern": "\\w([\\w-.]*\\w)?"
|
2019-05-03 22:12:24 +00:00
|
|
|
},
|
|
|
|
"x-abc-token": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "a header value",
|
|
|
|
"enum": ["a", "b", "c"]
|
2018-11-05 20:24:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"200": {
|
|
|
|
"description": "OK"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|