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.
128 lines
3 KiB
JSON
128 lines
3 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/{id}": {
|
|
"description": "Synopsis",
|
|
"x-vault-createSupported": true,
|
|
"x-vault-sudo": true,
|
|
"x-vault-displayAttrs": {
|
|
"navigation": true
|
|
},
|
|
"parameters": [
|
|
{
|
|
"name": "format",
|
|
"description": "a query param",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
{
|
|
"name": "id",
|
|
"description": "id path parameter",
|
|
"in": "path",
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"required": true
|
|
}
|
|
],
|
|
"get": {
|
|
"operationId": "getFooId",
|
|
"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": {
|
|
"operationId": "postFooId",
|
|
"tags": ["secrets"],
|
|
"summary": "Update Summary",
|
|
"description": "Update Description",
|
|
"requestBody": {
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/KvFooRequest"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"KvFooRequest": {
|
|
"type": "object",
|
|
"required": ["age"],
|
|
"properties": {
|
|
"flavors": {
|
|
"type": "array",
|
|
"description": "the flavors",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"age": {
|
|
"type": "integer",
|
|
"description": "the age",
|
|
"enum": [1, 2, 3],
|
|
"x-vault-displayAttrs": {
|
|
"name": "Age",
|
|
"sensitive": true,
|
|
"group": "Some Group",
|
|
"value": 7
|
|
}
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "the name",
|
|
"default": "Larry",
|
|
"pattern": "\\w([\\w-.]*\\w)?"
|
|
},
|
|
"x-abc-token": {
|
|
"type": "string",
|
|
"description": "a header value",
|
|
"enum": ["a", "b", "c"]
|
|
},
|
|
"maximum" : {
|
|
"type": "integer",
|
|
"description": "a maximum value",
|
|
"format": "int64"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|