{"info":{"_postman_id":"7aa98eb6-b9e0-4629-9834-1a36b975f6f1","name":"RoleMate","description":"<html><head></head><body><p>Welcome to our Role-Based Access Control (RBAC) system built with Node.js, TypeScript, and Prisma! This project provides a robust and flexible solution for managing access control within your applications. With a focus on modular components and ease of customization, our RBAC system empowers developers to implement fine-grained access control tailored to their specific requirements.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"17353488","collectionId":"7aa98eb6-b9e0-4629-9834-1a36b975f6f1","publishedId":"2s9YsDkv2J","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-01-01T09:16:48.000Z"},"item":[{"name":"User CRUD","item":[{"name":"Create User","id":"aa2684ba-b64b-4d36-adb6-e6acc115d9fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Aditya Shrotiya\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/user","urlObject":{"port":"3030","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"aa2684ba-b64b-4d36-adb6-e6acc115d9fb"},{"name":"Get User By Id","id":"f58639b5-c762-4b52-a629-156e07337f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3030/user/03bc46a6-ce26-4890-87d3-b2df342920ae","urlObject":{"protocol":"http","port":"3030","path":["user","03bc46a6-ce26-4890-87d3-b2df342920ae"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f58639b5-c762-4b52-a629-156e07337f5b"},{"name":"Get All Users","id":"d006c085-0e0d-4de3-bee5-87905ac0979b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/user","urlObject":{"port":"3030","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d006c085-0e0d-4de3-bee5-87905ac0979b"},{"name":"Update User","id":"84b8e14d-b197-4466-9139-d6aeb7ebf501","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Abhishek\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/user/407dbae4-76e0-4b3a-ac55-4fb44b40e13f","urlObject":{"port":"3030","path":["user","407dbae4-76e0-4b3a-ac55-4fb44b40e13f"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"84b8e14d-b197-4466-9139-d6aeb7ebf501"},{"name":"Delete User","id":"c3e10a90-90b2-414e-9f96-994990df4d8c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:3030/user/1bdeac3f-0813-4b00-9968-8a1ff91364b9","urlObject":{"port":"3030","path":["user","1bdeac3f-0813-4b00-9968-8a1ff91364b9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3e10a90-90b2-414e-9f96-994990df4d8c"}],"id":"46c50814-4d3e-4afd-9638-92fcc066d3d6","description":"<p>The User CRUD module is responsible for managing user entities within the system. It provides functionality for Creating, Reading, Updating, and Deleting user records. Users are fundamental entities in the system and are associated with roles to define their permissions. This module ensures that user information is securely stored, and actions like creating, updating, or deleting users are handled efficiently.</p>\n","_postman_id":"46c50814-4d3e-4afd-9638-92fcc066d3d6"},{"name":"Role CRUD","item":[{"name":"Create Role","id":"291e945f-b238-4f66-bd23-cbc147cf06ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"ADMIN\",\r\n    \"name\": \"Admin\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/role","urlObject":{"port":"3030","path":["role"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"291e945f-b238-4f66-bd23-cbc147cf06ba"},{"name":"Get Role By Id","id":"9d5217ae-030c-4e05-95bf-4316ecdd10b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/role/DEVELOPER","urlObject":{"port":"3030","path":["role","DEVELOPER"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d5217ae-030c-4e05-95bf-4316ecdd10b5"},{"name":"Get Roles","id":"58ba073b-ed23-497e-b9e4-20549da80ac5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/role","urlObject":{"port":"3030","path":["role"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"58ba073b-ed23-497e-b9e4-20549da80ac5"},{"name":"Update Role","id":"b48d8161-fd4c-41bf-9d12-319c768f4b90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Write, fixs and debugs software applications.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/role/DEVELOPER","urlObject":{"port":"3030","path":["role","DEVELOPER"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b48d8161-fd4c-41bf-9d12-319c768f4b90"},{"name":"Delete Role","id":"f6976964-6b19-41b0-af0f-36006eb55cfd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:3030/role/HR","urlObject":{"port":"3030","path":["role","HR"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6976964-6b19-41b0-af0f-36006eb55cfd"}],"id":"c3c26bb6-a896-4dc0-bd2e-0fd320238590","description":"<p>The Role CRUD module is designed for the management of user roles. It includes operations for Creating, Reading, Updating, and Deleting roles. Roles define a set of permissions that are granted to users, facilitating role-based access control.</p>\n<p>Roles play a pivotal role in access control by grouping users based on their responsibilities. This module enables the creation and maintenance of roles, ensuring a structured and controlled authorization process.</p>\n","_postman_id":"c3c26bb6-a896-4dc0-bd2e-0fd320238590"},{"name":"Resource CRUD","item":[{"name":"Create Resource","id":"7eff1374-bee4-4408-93d0-13bc3b603b90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"CUSTOMER_DB\",\r\n    \"name\": \"Customer DB\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/resource","urlObject":{"port":"3030","path":["resource"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"7eff1374-bee4-4408-93d0-13bc3b603b90"},{"name":"Get Resource By Id","id":"567d4a12-5622-4216-821d-9fbfe3c77917","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/resource/CRM","urlObject":{"port":"3030","path":["resource","CRM"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"567d4a12-5622-4216-821d-9fbfe3c77917"},{"name":"Get Resources","id":"ca04c3fc-4789-4f9b-8242-99200cb7ed58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/resource","urlObject":{"port":"3030","path":["resource"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca04c3fc-4789-4f9b-8242-99200cb7ed58"},{"name":"Update Resource","id":"b369406f-409e-468a-baf3-ed8340f8b800","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Customer Relationship Management.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/resource/CRM","urlObject":{"port":"3030","path":["resource","CRM"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b369406f-409e-468a-baf3-ed8340f8b800"},{"name":"Delete Resource","id":"a95fc211-f9a4-406b-abc0-87cece428a0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:3030/resource/CUSTOMER_DB","urlObject":{"port":"3030","path":["resource","CUSTOMER_DB"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a95fc211-f9a4-406b-abc0-87cece428a0d"}],"id":"895d5871-f692-4d6d-b0f8-7fca6b71061f","description":"<p>The Resource CRUD module focuses on the management of resources in the system. Resources represent entities or functionalities that users may access, and this module provides operations for Creating, Reading, Updating, and Deleting resources.</p>\n<p>Effective access control requires a clear definition of resources. This module allows administrators to manage resources dynamically, adapting the system to evolving requirements while maintaining the integrity of access permissions.</p>\n","_postman_id":"895d5871-f692-4d6d-b0f8-7fca6b71061f"},{"name":"AccessMode CRUD","item":[{"name":"Create AccessMode","id":"0c59c9a5-7027-4d99-a7a8-7dad9d3a6935","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"MODIFY\",\r\n    \"name\": \"Modify\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/accessMode","urlObject":{"port":"3030","path":["accessMode"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c59c9a5-7027-4d99-a7a8-7dad9d3a6935"},{"name":"Get AccessMode By Id","id":"36442452-c97f-4c4f-aa3f-7807131d6cbe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/accessMode/WRITE","urlObject":{"port":"3030","path":["accessMode","WRITE"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"36442452-c97f-4c4f-aa3f-7807131d6cbe"},{"name":"Get Access Modes","id":"4cc14d5e-fa6b-4f70-9309-11fb9a941aa0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/accessMode","urlObject":{"port":"3030","path":["accessMode"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4cc14d5e-fa6b-4f70-9309-11fb9a941aa0"},{"name":"Update Access Mode","id":"9471311d-6a0f-4fc9-a195-e938642dbcf8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"Abilite to change/update (Write) to a resource.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/accessMode/WRITE","urlObject":{"port":"3030","path":["accessMode","WRITE"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9471311d-6a0f-4fc9-a195-e938642dbcf8"},{"name":"Delete AccessMode","id":"3efeb6e9-ba3b-49be-abc4-d606cad86242","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:3030/accessMode/READ","urlObject":{"port":"3030","path":["accessMode","READ"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"3efeb6e9-ba3b-49be-abc4-d606cad86242"}],"id":"c1c3443f-98ac-4af8-9de2-2394a7eb4f5f","description":"<p>The AccessMode CRUD module handles the creation, retrieval, update, and deletion of access modes. Access modes define the types of actions users can perform on resources (e.g., read, write, delete). This module ensures granular control over user permissions.</p>\n<p>Fine-grained access control is essential for security. This module enables the customization of access modes, allowing administrators to tailor permissions according to specific user roles and resource types.</p>\n","_postman_id":"c1c3443f-98ac-4af8-9de2-2394a7eb4f5f"},{"name":"Role to User CRUD","item":[{"name":"Assign Role to User","id":"9f54af85-26cd-4c09-b72d-725108b89a76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"03bc46a6-ce26-4890-87d3-b2df342920ae\",\r\n    \"roleId\": \"ADMIN\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/roleUser","urlObject":{"port":"3030","path":["roleUser"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"9f54af85-26cd-4c09-b72d-725108b89a76"},{"name":"Remove Role from User","id":"c29e8908-ce22-4f28-8965-6399e28f30c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"9a736684-5ef5-4adf-be9f-cdbeabba19c2\",\r\n    \"roleId\": \"CUSTOMER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/roleUser","urlObject":{"port":"3030","path":["roleUser"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c29e8908-ce22-4f28-8965-6399e28f30c6"}],"id":"e4a57769-fb77-4250-a708-a769cb97b9eb","description":"<p>The Role to User CRUD module establishes and manages the relationships between roles and users. It provides operations for associating roles with users, facilitating the assignment of permissions to individuals.</p>\n<p>This module enables the dynamic assignment of roles to users, allowing administrators to control access based on user responsibilities. It plays a crucial role in implementing role-based access control throughout the system.</p>\n","_postman_id":"e4a57769-fb77-4250-a708-a769cb97b9eb"},{"name":"Resource to User CRUD","item":[{"name":"Assign Resource to User","id":"9ddf73f3-35f4-4c63-86b8-29c84cdcb7c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"03bc46a6-ce26-4890-87d3-b2df342920ae\",\r\n    \"resourceId\": \"CRM\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/userResource","urlObject":{"port":"3030","path":["userResource"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"9ddf73f3-35f4-4c63-86b8-29c84cdcb7c7"},{"name":"Remove Resource from User","id":"f2da28e5-1b0b-44e7-9d46-67087c3d3aed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"407dbae4-76e0-4b3a-ac55-4fb44b40e13f\",\r\n    \"resourceId\": \"CRM\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/userResource","urlObject":{"port":"3030","path":["userResource"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f2da28e5-1b0b-44e7-9d46-67087c3d3aed"}],"id":"24656edb-cbed-44f2-91f9-b300d3bc1dfe","description":"<p>The Resource to User CRUD module manages the associations between resources and users. It allows for linking specific resources to individual users, defining their access rights to those resources.</p>\n<p>This module ensures that access to resources is controlled at the user level. It provides the flexibility to grant or restrict access to specific resources based on user roles and responsibilities.</p>\n","_postman_id":"24656edb-cbed-44f2-91f9-b300d3bc1dfe"},{"name":"AccessMode to User Resource CRUD","item":[{"name":"Assign AccessMode to User Resource","id":"4d4675b4-8e79-4886-93c7-15b0d4c4d6b8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"03bc46a6-ce26-4890-87d3-b2df342920ae\",\r\n    \"resourceId\": \"CRM\",\r\n    \"accessModeId\": \"WRITE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/userResourceAccessMode","urlObject":{"port":"3030","path":["userResourceAccessMode"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"4d4675b4-8e79-4886-93c7-15b0d4c4d6b8"},{"name":"Remove AccessMode to User Resource","id":"ba39bf1a-6e45-45fe-b3d5-1ac81316db35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"407dbae4-76e0-4b3a-ac55-4fb44b40e13f\",\r\n    \"resourceId\": \"EMAIL\",\r\n    \"accessModeId\": \"WRITE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:3030/userResourceAccessMode","urlObject":{"port":"3030","path":["userResourceAccessMode"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba39bf1a-6e45-45fe-b3d5-1ac81316db35"}],"id":"abf1c1b5-f8a6-4265-81dd-928d7f15b66e","description":"<p>The AccessMode to User Resource CRUD module handles the relationships between access modes, users, and resources. It allows administrators to define the specific actions a user can perform on a given resource.</p>\n<p>This module ensures the precise definition of permissions by associating access modes with users and resources. It is crucial for maintaining a secure and well-defined access control system.</p>\n","_postman_id":"abf1c1b5-f8a6-4265-81dd-928d7f15b66e"},{"name":"Landing Page","id":"26137e29-73a0-4388-96ab-074668d7094b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030","urlObject":{"port":"3030","host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"26137e29-73a0-4388-96ab-074668d7094b"},{"name":"Role Base Access Control List","id":"d43bd126-6a55-4d54-bf10-d2f3f36eecd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:3030/rbac","urlObject":{"port":"3030","path":["rbac"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d43bd126-6a55-4d54-bf10-d2f3f36eecd6"}]}