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": {
|
|
|
|
"description": "Synopsis",
|
|
|
|
"x-vault-unauthenticated": true,
|
|
|
|
"delete": {
|
2023-04-04 17:14:40 +00:00
|
|
|
"operationId": "kv-delete-foo",
|
|
|
|
"tags": [
|
|
|
|
"secrets"
|
|
|
|
],
|
2018-11-05 20:24:39 +00:00
|
|
|
"summary": "Delete stuff",
|
|
|
|
"responses": {
|
|
|
|
"204": {
|
|
|
|
"description": "empty body"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"get": {
|
2023-04-04 17:14:40 +00:00
|
|
|
"operationId": "kv-read-foo",
|
|
|
|
"tags": [
|
|
|
|
"secrets"
|
|
|
|
],
|
2018-11-05 20:24:39 +00:00
|
|
|
"summary": "My Summary",
|
|
|
|
"description": "My Description",
|
|
|
|
"responses": {
|
|
|
|
"202": {
|
|
|
|
"description": "Amazing",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
2023-04-04 22:27:20 +00:00
|
|
|
"$ref": "#/components/schemas/KvReadFooResponse"
|
2018-11-05 20:24:39 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-12 00:00:26 +00:00
|
|
|
},
|
|
|
|
"components": {
|
|
|
|
"schemas": {
|
2023-04-04 22:27:20 +00:00
|
|
|
"KvReadFooResponse": {
|
2022-12-05 16:11:06 +00:00
|
|
|
"type": "object",
|
|
|
|
"properties": {
|
|
|
|
"field_a": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "field_a description"
|
|
|
|
},
|
|
|
|
"field_b": {
|
|
|
|
"type": "boolean",
|
|
|
|
"description": "field_b description"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-12 00:00:26 +00:00
|
|
|
}
|
2018-11-05 20:24:39 +00:00
|
|
|
}
|
|
|
|
}
|