Implement workaround for swagger-autogen edgecase and expose folders, secret imports API

This commit is contained in:
Tuan Dang
2023-09-13 09:28:29 +01:00
parent d221bf8ae9
commit 4f69257595
28 changed files with 4294 additions and 2353 deletions

View File

@@ -0,0 +1,4 @@
---
title: "Create"
openapi: "POST /api/v1/folders/"
---

View File

@@ -0,0 +1,4 @@
---
title: "Delete"
openapi: "DELETE /api/v1/folders/{folderId}"
---

View File

@@ -0,0 +1,4 @@
---
title: "List"
openapi: "GET /api/v1/folders/"
---

View File

@@ -0,0 +1,4 @@
---
title: "Update"
openapi: "PATCH /api/v1/folders/{folderId}"
---

View File

@@ -0,0 +1,4 @@
---
title: "Create"
openapi: "POST /api/v1/secret-imports/"
---

View File

@@ -0,0 +1,4 @@
---
title: "Delete"
openapi: "DELETE /api/v1/secret-imports/{id}"
---

View File

@@ -0,0 +1,4 @@
---
title: "List"
openapi: "GET /api/v1/secret-imports/"
---

View File

@@ -0,0 +1,4 @@
---
title: "Update"
openapi: "PUT /api/v1/secret-imports/{id}"
---

View File

@@ -5,7 +5,6 @@ openapi: "POST /api/v3/secrets/{secretName}"
<Tip>
Using this route requires understanding Infisical's system and cryptography.
It may be helpful to read through the
[introduction](/api-reference/overview/introduction) and [guide for creating
secrets](/api-reference/overview/examples/create-secret).
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>

View File

@@ -1,4 +1,4 @@
---
title: "Delete"
openapi: "DELETE /api/v3/secrets/{secretName}"
---
---

View File

@@ -5,7 +5,7 @@ openapi: "GET /api/v3/secrets/"
<Tip>
Using this route requires understanding Infisical's system and cryptography.
It may be helpful to read through the
[introduction](/api-reference/overview/introduction) and [guide for retrieving
secrets](/api-reference/overview/examples/retrieve-secret).
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>

View File

@@ -5,7 +5,6 @@ openapi: "GET /api/v3/secrets/{secretName}"
<Tip>
Using this route requires understanding Infisical's system and cryptography.
It may be helpful to read through the
[introduction](/api-reference/overview/introduction) and [guide for retrieving
secrets](/api-reference/overview/examples/retrieve-secret).
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>

View File

@@ -5,7 +5,7 @@ openapi: "PATCH /api/v3/secrets/{secretName}"
<Tip>
Using this route requires understanding Infisical's system and cryptography.
It may be helpful to read through the
[introduction](/api-reference/overview/introduction) and [guide for updating
secrets](/api-reference/overview/examples/update-secret).
You should consult the [examples](https://infisical.com/docs/api-reference/overview/examples/note) for how to use
this endpoint.
</Tip>

View File

@@ -331,6 +331,15 @@
"api-reference/endpoints/environments/delete"
]
},
{
"group": "Folders",
"pages": [
"api-reference/endpoints/folders/list",
"api-reference/endpoints/folders/create",
"api-reference/endpoints/folders/update",
"api-reference/endpoints/folders/delete"
]
},
{
"group": "Secrets",
"pages": [
@@ -343,6 +352,15 @@
"api-reference/endpoints/secrets/rollback-version"
]
},
{
"group": "Secret imports",
"pages": [
"api-reference/endpoints/secret-imports/list",
"api-reference/endpoints/secret-imports/create",
"api-reference/endpoints/secret-imports/update",
"api-reference/endpoints/secret-imports/delete"
]
},
{
"group": "Service Tokens",
"pages": ["api-reference/endpoints/service-tokens/get"]

File diff suppressed because it is too large Load Diff