0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

chore: update api path parameter format in swagger json

This commit is contained in:
Gao Sun 2023-11-12 20:46:32 +08:00
parent be1a164f98
commit eee8912e7f
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
3 changed files with 10 additions and 10 deletions

View file

@ -47,7 +47,7 @@
} }
} }
}, },
"/api/organizations/:id": { "/api/organizations/{id}": {
"get": { "get": {
"summary": "Get organization by ID", "summary": "Get organization by ID",
"description": "Get organization details by ID.", "description": "Get organization details by ID.",
@ -92,7 +92,7 @@
} }
} }
}, },
"/api/organizations/:id/users": { "/api/organizations/{id}/users": {
"post": { "post": {
"summary": "Add user members to organization", "summary": "Add user members to organization",
"description": "Add users as members to the specified organization with the given user IDs.", "description": "Add users as members to the specified organization with the given user IDs.",
@ -160,7 +160,7 @@
} }
} }
}, },
"/api/organizations/:id/users/:userId": { "/api/organizations/{id}/users/{userId}": {
"delete": { "delete": {
"summary": "Remove user member from organization", "summary": "Remove user member from organization",
"description": "Remove a user's membership from the specified organization.", "description": "Remove a user's membership from the specified organization.",
@ -174,7 +174,7 @@
} }
} }
}, },
"/api/organizations/:id/users/roles": { "/api/organizations/{id}/users/roles": {
"post": { "post": {
"summary": "Assign roles to organization user members", "summary": "Assign roles to organization user members",
"description": "Assign roles to user members of the specified organization with the given data.", "description": "Assign roles to user members of the specified organization with the given data.",
@ -204,7 +204,7 @@
} }
} }
}, },
"/api/organizations/:id/users/:userId/roles": { "/api/organizations/{id}/users/{userId}/roles": {
"get": { "get": {
"summary": "Get roles for a user in an organization", "summary": "Get roles for a user in an organization",
"description": "Get roles assigned to a user in the specified organization with pagination.", "description": "Get roles assigned to a user in the specified organization with pagination.",
@ -268,7 +268,7 @@
} }
} }
}, },
"/api/organizations/:id/users/:userId/roles/:roleId": { "/api/organizations/{id}/users/{userId}/roles/{roleId}": {
"delete": { "delete": {
"summary": "Remove a role from a user in an organization", "summary": "Remove a role from a user in an organization",
"description": "Remove a role assignment from a user in the specified organization.", "description": "Remove a role assignment from a user in the specified organization.",

View file

@ -43,7 +43,7 @@
} }
} }
}, },
"/api/organization-roles/:id": { "/api/organization-roles/{id}": {
"get": { "get": {
"summary": "Get organization role by ID", "summary": "Get organization role by ID",
"description": "Get organization role details by ID.", "description": "Get organization role details by ID.",
@ -91,7 +91,7 @@
} }
} }
}, },
"/api/organization-roles/:id/scopes": { "/api/organization-roles/{id}/scopes": {
"get": { "get": {
"summary": "Get organization role scopes", "summary": "Get organization role scopes",
"description": "Get all organization scopes that are assigned to the specified organization role.", "description": "Get all organization scopes that are assigned to the specified organization role.",
@ -152,7 +152,7 @@
} }
} }
}, },
"/api/organization-roles/:id/scopes/:organizationScopeId": { "/api/organization-roles/{id}/scopes/{organizationScopeId}": {
"delete": { "delete": {
"summary": "Remove organization scope", "summary": "Remove organization scope",
"description": "Remove a organization scope assignment from the specified organization role.", "description": "Remove a organization scope assignment from the specified organization role.",

View file

@ -43,7 +43,7 @@
} }
} }
}, },
"/api/organization-scopes/:id": { "/api/organization-scopes/{id}": {
"get": { "get": {
"summary": "Get organization scope by ID", "summary": "Get organization scope by ID",
"description": "Get organization scope details by ID.", "description": "Get organization scope details by ID.",