{ "opencollection": "1.0.0", "info": { "name": "Certify API Layer Role API", "version": "1.0.0" }, "items": [ { "info": { "name": "Role", "type": "folder" }, "items": [ { "info": { "name": "Get All Roles", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:9000/roles", "headers": [ { "name": "tenant-id", "value": "" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns all roles for the current tenant" }, { "info": { "name": "Create Role", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:9000/roles", "headers": [ { "name": "tenant-id", "value": "" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Creates a new role" }, { "info": { "name": "Get Role by ID", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:9000/roles/:roleId", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path", "description": "ID of Role to fetch" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Retrieves a specific role by its ID" }, { "info": { "name": "Update Role", "type": "http" }, "http": { "method": "PATCH", "url": "http://localhost:9000/roles/:roleId", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Updates an existing role" }, { "info": { "name": "Delete Role", "type": "http" }, "http": { "method": "DELETE", "url": "http://localhost:9000/roles/:roleId", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Deletes a role by its ID" }, { "info": { "name": "Get Role Permissions", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:9000/roles/:roleId/permissions", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path" } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Returns all permissions assigned to a role with permission details" }, { "info": { "name": "Add Permissions to Role", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:9000/roles/:roleId/permissions", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Adds permissions to a role without removing existing ones" }, { "info": { "name": "Bulk Update Role Permissions", "type": "http" }, "http": { "method": "PATCH", "url": "http://localhost:9000/roles/:roleId/permissions/bulk", "headers": [ { "name": "tenant-id", "value": "" } ], "params": [ { "name": "roleId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Adds and/or removes permissions from a role in a single operation. Returns all permissions with details." } ] } ], "bundled": true }