Merge pull request #4361 from Infisical/feat/doc-api

feat: added api document for project router get id from slug
This commit is contained in:
Akhil Mohan
2025-08-13 10:19:13 +05:30
committed by GitHub
3 changed files with 13 additions and 0 deletions
@@ -283,6 +283,14 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
rateLimit: readLimit
},
schema: {
hide: false,
tags: [ApiDocsTags.Projects],
description: "Get project details by slug",
security: [
{
bearerAuth: []
}
],
params: z.object({
slug: slugSchema({ max: 36 }).describe("The slug of the project to get.")
}),