mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: added api document for project router get id from slug
This commit is contained in:
@@ -283,6 +283,8 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
|
|||||||
rateLimit: readLimit
|
rateLimit: readLimit
|
||||||
},
|
},
|
||||||
schema: {
|
schema: {
|
||||||
|
hide: false,
|
||||||
|
tags: [ApiDocsTags.Projects],
|
||||||
params: z.object({
|
params: z.object({
|
||||||
slug: slugSchema({ max: 36 }).describe("The slug of the project to get.")
|
slug: slugSchema({ max: 36 }).describe("The slug of the project to get.")
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
title: "Get Project Details By Slug"
|
||||||
|
openapi: "GET /api/v2/workspace/{slug}"
|
||||||
|
---
|
||||||
@@ -995,6 +995,7 @@
|
|||||||
{
|
{
|
||||||
"group": "Projects",
|
"group": "Projects",
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"api-reference/endpoints/workspaces/get-workspace-by-slug",
|
||||||
"api-reference/endpoints/workspaces/create-workspace",
|
"api-reference/endpoints/workspaces/create-workspace",
|
||||||
"api-reference/endpoints/workspaces/delete-workspace",
|
"api-reference/endpoints/workspaces/delete-workspace",
|
||||||
"api-reference/endpoints/workspaces/get-workspace",
|
"api-reference/endpoints/workspaces/get-workspace",
|
||||||
|
|||||||
Reference in New Issue
Block a user