vault/website/content/api-docs
Anton Averchenkov 02064eccb4
Add mount path into the default generated openapi.json spec (#17839)
The current behaviour is to only add mount paths into the generated `opeanpi.json` spec if a `generic_mount_paths` flag is added to the request. This means that we would have to maintain two different `openapi.json` files, which is not ideal. The new solution in this PR is to add `{mount_path}` into every path with a default value specified:

```diff
--    "/auth/token/accessors/": {
++    "/auth/{mount_path}/accessors/": {
      "parameters": [
        {
          "name": "mount_path",
          "description": "....",
          "in": "path",
          "schema": {
            "type": "string",
++          "default": "token"
          }
        }
      ],
```

Additionally, fixed the logic to generate the `operationId` (used to generate method names in the code generated from OpenAPI spec). It had a bug where the ID had `mountPath` in it. The new ID will look like this:

```diff
-- "operationId": "listAuthMountpathAccessors",
++ "operationId": "listTokenAccessors",
```
2022-11-10 15:44:43 -05:00
..
auth VAULT-8518 Increase HMAC limit to 4096, and limit approle names to the same limit (#17768) 2022-11-02 10:42:09 -04:00
secret Add automatic tidy of expired issuers (#17823) 2022-11-10 10:53:26 -05:00
system Add mount path into the default generated openapi.json spec (#17839) 2022-11-10 15:44:43 -05:00
index.mdx Docs: API overview text clarity & kv2 mention... #16746 (#16748) 2022-10-27 08:35:17 -07:00
libraries.mdx Remove Async-HVAC from recommended libraries list (#17480) 2022-10-10 17:15:32 -04:00
relatedtools.mdx website: content updates for developer (#17035) 2022-09-22 08:11:04 -07:00