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

This commit is contained in:
=
2025-08-13 02:27:12 +05:30
parent dbbd58ffb7
commit 97b2c534a7
3 changed files with 7 additions and 0 deletions

View File

@@ -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.")
}),

View File

@@ -0,0 +1,4 @@
---
title: "Get Project Details By Slug"
openapi: "GET /api/v2/workspace/{slug}"
---

View File

@@ -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",