Skip to content

Commit

Permalink
Merge pull request #2292 from Infisical/doc/add-dynamic-secrets-to-ap…
Browse files Browse the repository at this point in the history
…i-reference

doc: add dynamic secrets to api references
  • Loading branch information
sheensantoscapadngan authored Aug 15, 2024
2 parents 4570de0 + b176f13 commit fa31f87
Show file tree
Hide file tree
Showing 12 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/ee/routes/v1/dynamic-secret-lease-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const registerDynamicSecretLeaseRouter = async (server: FastifyZodProvide
.default("/")
.transform(removeTrailingSlash)
.describe(DYNAMIC_SECRET_LEASES.RENEW.path),
environmentSlug: z.string().min(1).describe(DYNAMIC_SECRET_LEASES.RENEW.ttl)
environmentSlug: z.string().min(1).describe(DYNAMIC_SECRET_LEASES.RENEW.environmentSlug)
}),
response: {
200: z.object({
Expand Down
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/create-lease.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Create Lease"
openapi: "POST /api/v1/dynamic-secrets/leases"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Create"
openapi: "POST /api/v1/dynamic-secrets"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/delete-lease.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Delete Lease"
openapi: "DELETE /api/v1/dynamic-secrets/leases/{leaseId}"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/delete.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Delete"
openapi: "DELETE /api/v1/dynamic-secrets/{name}"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/get-lease.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Get Lease"
openapi: "GET /api/v1/dynamic-secrets/leases/{leaseId}"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/get.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Get"
openapi: "GET /api/v1/dynamic-secrets/{name}"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/list-leases.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "List Leases"
openapi: "GET /api/v1/dynamic-secrets/{name}/leases"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "List"
openapi: "GET /api/v1/dynamic-secrets"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/renew-lease.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Renew Lease"
openapi: "POST /api/v1/dynamic-secrets/leases/{leaseId}/renew"
---
4 changes: 4 additions & 0 deletions docs/api-reference/endpoints/dynamic-secrets/update.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: "Update"
openapi: "PATCH /api/v1/dynamic-secrets/{name}"
---
15 changes: 15 additions & 0 deletions docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,21 @@
"api-reference/endpoints/secrets/detach-tags"
]
},
{
"group": "Dynamic Secrets",
"pages": [
"api-reference/endpoints/dynamic-secrets/create",
"api-reference/endpoints/dynamic-secrets/update",
"api-reference/endpoints/dynamic-secrets/delete",
"api-reference/endpoints/dynamic-secrets/get",
"api-reference/endpoints/dynamic-secrets/list",
"api-reference/endpoints/dynamic-secrets/list-leases",
"api-reference/endpoints/dynamic-secrets/create-lease",
"api-reference/endpoints/dynamic-secrets/delete-lease",
"api-reference/endpoints/dynamic-secrets/renew-lease",
"api-reference/endpoints/dynamic-secrets/get-lease"
]
},
{
"group": "Secret Imports",
"pages": [
Expand Down

0 comments on commit fa31f87

Please sign in to comment.