Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: added api document for project router get id from slug

=97b2c534a737
diff --git a/backend/src/server/routes/v2/project-router.ts b/backend/src/server/routes/v2/project-router.ts
index b71a744fd0..37d1efee67 100644
--- a/backend/src/server/routes/v2/project-router.ts
+++ b/backend/src/server/routes/v2/project-router.ts
@@ -283,6 +283,8 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
rateLimit: readLimit
},
schema: {
+ hide: false,
+ tags: [ApiDocsTags.Projects],
params: z.object({
slug: slugSchema({ max: 36 }).describe("The slug of the project to get.")
}),
diff --git a/docs/api-reference/endpoints/workspaces/get-workspace-by-slug.mdx b/docs/api-reference/endpoints/workspaces/get-workspace-by-slug.mdx
new file mode 100644
index 0000000000..944f614027
--- /dev/null
+++ b/docs/api-reference/endpoints/workspaces/get-workspace-by-slug.mdx
@@ -0,0 +1,4 @@
+---
+title: "Get Project Details By Slug"
+openapi: "GET /api/v2/workspace/{slug}"
+---
diff --git a/docs/docs.json b/docs/docs.json
index 02cfd236a8..922e80d325 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -995,6 +995,7 @@
{
"group": "Projects",
"pages": [
+ "api-reference/endpoints/workspaces/get-workspace-by-slug",
"api-reference/endpoints/workspaces/create-workspace",
"api-reference/endpoints/workspaces/delete-workspace",
"api-reference/endpoints/workspaces/get-workspace",