{ "info": { "name": "Wucher", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Role", "item": [ { "name": "Create", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/create", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "create" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Testing.\",\n \"name\": \"role_test\"\n },\n \"type\": \"role\"\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Delete", "request": { "method": "DELETE", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/delete/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "delete", ":id" ], "query": [], "variable": [ { "key": "id", "value": "019c31eb-5750-7c71-b6b9-042282c61bab" } ] } } }, { "name": "Get All DT", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/get-all/dt?draw=1&length=5&start", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "get-all", "dt?draw=1&length=5&start" ], "query": [ { "key": "draw", "value": "1" }, { "key": "length", "value": "5" }, { "key": "start", "value": "" }, { "key": "search", "value": "sta" } ], "variable": [] } } }, { "name": "Get All", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/get-all", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "get-all" ], "query": [], "variable": [] } } }, { "name": "Get By ID", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/get/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "get", ":id" ], "query": [], "variable": [ { "key": "id", "value": "019c31eb-5750-7c71-b6b9-042282c61bab" } ] } } }, { "name": "Update", "request": { "method": "PATCH", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/update/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "update", ":id" ], "query": [], "variable": [ { "key": "id", "value": "019c31eb-5750-7c71-b6b9-042282c61bab" } ] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"description\": \"Testing update.\",\n \"name\": \"test_role\"\n },\n \"id\": \"019c31eb-5750-7c71-b6b9-042282c61bab\",\n \"type\": \"role\"\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Permission", "item": [ { "name": "Assign", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/:uuid/permissions/assign-bulk", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", ":uuid", "permissions", "assign-bulk" ], "query": [], "variable": [ { "key": "uuid", "value": "" } ] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"role_assign_permission_bulk\",\n \"attributes\": {\n \"permission_ids\": [\n \"019c79bd-c7a5-703d-8b7d-cd935e7e5316\",\n \"019c79bd-c7a5-720e-ad50-989d8848e37c\"\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Get All Permission", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/permissions/get-all", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", "permissions", "get-all" ], "query": [], "variable": [] } } }, { "name": "Permission of Role", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/:uuid/permissions", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", ":uuid", "permissions" ], "query": [], "variable": [ { "key": "uuid", "value": "019c30e6-1b8a-7714-898a-6e954e3dad33" } ] } } }, { "name": "Remove Permission", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/roles/:uuid/permissions/remove-bulk", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "roles", ":uuid", "permissions", "remove-bulk" ], "query": [], "variable": [ { "key": "uuid", "value": "019c30e6-1b8a-7714-898a-6e954e3dad33" } ] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"role_remove_permission_bulk\",\n \"attributes\": {\n \"permission_ids\": [\n \"019c79bd-c7a5-7974-ba89-69d52f0f3712\",\n \"019c79bd-c7a5-7339-add2-5a1c900cf1c3\"\n ]\n }\n }\n}", "options": { "raw": { "language": "json" } } } } } ] } ] }, { "name": "User", "item": [ { "name": "Create", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/create", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "create" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"user\",\n \"attributes\": {\n \"email\": \"marcomelandri808@gmail.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"mobile_phone\": \"+628123456789\",\n \"role_id\": \"019c30e6-1b8a-7714-898a-6e954e3dad33\"\n }\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Delete", "request": { "method": "DELETE", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/delete/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "delete", ":uuid" ], "query": [], "variable": [ { "key": "uuid", "value": "019c79da-8c32-785c-b547-beee3b321e9b" } ] } } }, { "name": "Get All DT", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/get-all/dt", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "get-all", "dt" ], "query": [], "variable": [] } } }, { "name": "Get All", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/get-all", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "get-all" ], "query": [], "variable": [] } } }, { "name": "Get By UUID", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/get/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "get", ":uuid" ], "query": [], "variable": [ { "key": "uuid", "value": "019c7940-c4c2-7fa4-ae0b-4eeb9e75295b" } ] } } }, { "name": "Update", "request": { "method": "PATCH", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/users/update/:uuid", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "users", "update", ":uuid" ], "query": [], "variable": [ { "key": "uuid", "value": "019c7940-c4c2-7fa4-ae0b-4eeb9e75295b" } ] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"user\",\n \"id\": \"019c7940-c4c2-7fa4-ae0b-4eeb9e75295b\",\n \"attributes\": {\n \"first_name\": \"Johnny\",\n \"last_name\": \"Doe\",\n \"mobile_phone\": \"+628123456700\",\n \"role_id\": \"019c30e6-1b8a-7714-898a-6e954e3dad33\"\n }\n }\n}\n", "options": { "raw": { "language": "json" } } } } } ] }, { "name": "Auth", "item": [ { "name": "Auth Me", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/me", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "me" ], "query": [], "variable": [] } } }, { "name": "Invite", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/invite", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "invite" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"auth_invite\",\n \"attributes\": {\n \"email\": \"marcomelandri808@gmail.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"mobile_phone\": \"+628123456789\",\n \"role_id\": \"019c30e6-1b8a-7714-898a-6e954e3dad33\"\n }\n }\n}\n", "options": { "raw": { "language": "json" } } } } }, { "name": "Login", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/login", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "login" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"auth_login\",\n \"attributes\": {\n \"email\": \"marcomelandri808@gmail.com\",\n \"password\": \"StrongP@ssw0rd!\"\n }\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Logout", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/logout", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "logout" ], "query": [], "variable": [] } } }, { "name": "Refresh Token", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/refresh", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "refresh" ], "query": [], "variable": [] } } }, { "name": "Register", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/register", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "register" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"auth_register\",\n \"attributes\": {\n \"email\": \"innovatexsh@gmail.com\",\n \"password\": \"securePass123\",\n \"first_name\": \"John\",\n \"last_name\": \"Doe\",\n \"mobile_phone\": \"087782553442\"\n }\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "Set New Password", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/set-password", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "set-password" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"type\": \"auth_set_password\",\n \"attributes\": {\n \"token\": \"--TpCbfl1JEpEJq1jr2l1XeFggiAN7Z2k23pwMVrxac\",\n \"password\": \"StrongP@ssw0rd!\"\n }\n }\n}\n", "options": { "raw": { "language": "json" } } } } }, { "name": "SSO", "item": [ { "name": "MS Login", "request": { "method": "GET", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/microsoft/login", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "microsoft", "login" ], "query": [], "variable": [] } } } ] }, { "name": "TOTP", "item": [ { "name": "TOTP Disable", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/totp/disable", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "totp", "disable" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"user_id\": \"019c2e21-d880-7b9a-89ac-3d3d8593502f\"\n },\n \"type\": \"auth_totp_disable\"\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "TOTP Setup", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/totp/setup", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "totp", "setup" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"email\": \"innovatexsh@gmail.com\",\n \"user_id\": \"019c2e21-d880-7b9a-89ac-3d3d8593502f\"\n },\n \"type\": \"auth_totp_setup\"\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "TOTP Verify Login", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/totp/verify", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "totp", "verify" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"challenge_token\": \"Z_2A0lm5IekOiIBPbpiJzpuevFYW6oxEIgdMZjPkcpw\",\n \"code\": \"568754\"\n },\n \"type\": \"auth_totp_verify\"\n }\n}", "options": { "raw": { "language": "json" } } } } }, { "name": "TOTP Verify", "request": { "method": "POST", "header": [], "auth": { "type": "noauth" }, "description": "", "url": { "raw": "{{baseUrl}}/api/v1/auth/totp/confirm", "protocol": "", "host": [ "{{baseUrl}}" ], "path": [ "api", "v1", "auth", "totp", "confirm" ], "query": [], "variable": [] }, "body": { "mode": "raw", "raw": "{\n \"data\": {\n \"attributes\": {\n \"code\": \"898427\",\n \"user_id\": \"019c2e21-d880-7b9a-89ac-3d3d8593502f\"\n },\n \"type\": \"auth_totp_confirm\"\n }\n}", "options": { "raw": { "language": "json" } } } } } ] } ] } ], "variable": [ { "key": "baseUrl", "value": "", "type": "default" } ] }