Merge pull request #2481 from Infisical/doc/add-groups-endpoints-to-api-reference

doc: add groups endpoints to api reference documentation
This commit is contained in:
Maidul Islam
2024-09-25 09:50:40 -04:00
committed by GitHub
16 changed files with 79 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export const registerGroupRouter = async (server: FastifyZodProvider) => {
onRequest: verifyAuth([AuthMode.JWT, AuthMode.IDENTITY_ACCESS_TOKEN]),
schema: {
params: z.object({
id: z.string()
id: z.string().trim().describe(GROUPS.GET_BY_ID.id)
}),
response: {
200: GroupsSchema
+3
View File
@@ -24,6 +24,9 @@ export const GROUPS = {
id: "The id of the group to add the user to.",
username: "The username of the user to add to the group."
},
GET_BY_ID: {
id: "The id of the group to fetch"
},
DELETE_USER: {
id: "The id of the group to remove the user from.",
username: "The username of the user to remove from the group."