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.
73 lines
1.5 KiB
JSON
73 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": {
|
|
"/lookup/{id}": {
|
|
"description": "Synopsis",
|
|
"parameters": [
|
|
{
|
|
"name": "id",
|
|
"description": "My id parameter",
|
|
"in": "path",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"get": {
|
|
"operationId": "getLookupId",
|
|
"summary": "Synopsis",
|
|
"tags": ["secrets"],
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"operationId": "postLookupId",
|
|
"summary": "Synopsis",
|
|
"tags": ["secrets"],
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/KvLookupRequest"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"KvLookupRequest": {
|
|
"type": "object",
|
|
"properties": {
|
|
"token": {
|
|
"type": "string",
|
|
"description": "My token"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|