c7f40361eb
* Revert "Add mount path into the default generated openapi.json spec (UI) (#17926)" This reverts commit db8efac708e5385ec871be9558507eeaf54ac972. * Revert "Remove `generic_mount_paths` field (#18558)" This reverts commit 79c8f626c59ca11bb8e7f460d40b09f5e0cec76d.
65 lines
1.5 KiB
JSON
65 lines
1.5 KiB
JSON
{
|
|
"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": {
|
|
"operationId": "deleteFoo",
|
|
"tags": ["secrets"],
|
|
"summary": "Delete stuff",
|
|
"responses": {
|
|
"204": {
|
|
"description": "empty body"
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"operationId": "getFoo",
|
|
"tags": ["secrets"],
|
|
"summary": "My Summary",
|
|
"description": "My Description",
|
|
"responses": {
|
|
"202": {
|
|
"description": "Amazing",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/KvFooResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"KvFooResponse": {
|
|
"type": "object",
|
|
"properties": {
|
|
"field_a": {
|
|
"type": "string",
|
|
"description": "field_a description"
|
|
},
|
|
"field_b": {
|
|
"type": "boolean",
|
|
"description": "field_b description"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|