{ "info": { "_postman_id": "68a8c37f-a79f-421b-84a7-81f974868aec", "name": "CezenPBX_API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "46024117", "_collection_link": "https://johnlogan-6539403.postman.co/workspace/john-logan's-Workspace~cde4aa19-228c-45b3-88cb-692cf4289226/collection/46024117-68a8c37f-a79f-421b-84a7-81f974868aec?action=share&source=collection_link&creator=46024117" }, "item": [ { "name": "create a new endpoint", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n// \"transport\": \"transport-udp\",\n// \"context\": \"default\",\n// \"disallow\": \"all\",\n// \"allow\": \"ulaw,alaw\",\n// \"directMedia\": \"no\",\n \"connectedLineMethod\": null,\n \"callerid\": null,\n \"dtmfMode\": null,\n// \"mohsuggest\": \"default\",\n \"mailboxes\": null\n}\n\n// {\n// \"id\": \"1004\",\n// \"transport\": \"transport-udp\",\n// \"aors\": \"1004\",\n// \"auth\": \"1004\",\n// \"context\": \"default\",\n// \"disallow\": \"all\",\n// \"allow\": \"ulaw,alaw\",\n// \"directMedia\": \"no\",\n// \"connectedLineMethod\": null,\n// \"callerid\": \"User <1004>\",\n// \"dtmfMode\": null,\n// \"mohsuggest\": \"default\",\n// \"mailboxes\": \"1004@default\"\n// }", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_user", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_user" ] } }, "response": [] }, { "name": "create a new extension", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": \"default\",\n \"extension\": \"1005\",\n \"priority\": 1,\n \"app\": \"Dial\",\n \"appdata\": \"PJSIP/1005,20,m(default)\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_extension", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_extension" ] } }, "response": [ { "name": "1005", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": \"default\",\n \"extension\": \"1005\",\n \"priority\": 1,\n \"app\": \"Dial\",\n \"appdata\": \"PJSIP/1005,20,m(default)\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_extension", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_extension" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:20:09 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": false,\n \"message\": \"Data likely already exists or DB issue\",\n \"exceptionMessage\": \"could not execute statement [(conn=482) Duplicate entry '1005-PJSIP/1005,20,m(default)-1' for key 'extension_table_unique_val'] [insert into extensions_table (app,appdata,context,exten,priority) values (?,?,?,?,?)]; SQL [insert into extensions_table (app,appdata,context,exten,priority) values (?,?,?,?,?)]; constraint [extension_table_unique_val]\"\n}" }, { "name": "test1", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": \"default\",\n \"extension\": \"test1\",\n \"priority\": 1,\n \"app\": \"Dial\",\n \"appdata\": \"test123rf\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_extension", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_extension" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:21:06 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": true,\n \"message\": \"test1 Persisted \",\n \"exceptionMessage\": \"\"\n}" } ] }, { "name": "set_password", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n \"authType\": \"userpass\",\n \"userName\": \"1005\",\n \"password\": \"12345\",\n \"md5Cred\": null,\n \"realm\": null\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/set_password", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "set_password" ] } }, "response": [ { "name": "set_password", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n \"authType\": \"userpass\",\n \"userName\": \"1005\",\n \"password\": \"12345\",\n \"md5Cred\": null,\n \"realm\": null\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/set_password", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "set_password" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:21:54 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": false,\n \"message\": \"Endpoint and password already set \",\n \"exceptionMessage\": \"could not execute statement [(conn=482) Duplicate entry '1005' for key 'PRIMARY'] [insert into ps_auths (auth_type,md5_cred,password,realm,username,id) values (?,?,?,?,?,?)]; SQL [insert into ps_auths (auth_type,md5_cred,password,realm,username,id) values (?,?,?,?,?,?)]; constraint [PRIMARY]\"\n}" } ] }, { "name": "SetAORS", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n \"maxContacts\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/set_aors", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "set_aors" ] } }, "response": [ { "name": "SetAORS", "originalRequest": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n \"maxContacts\": 1\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/set_aors", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "set_aors" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:22:12 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": true,\n \"message\": \"1005 Persisted \",\n \"exceptionMessage\": \"\"\n}" } ] }, { "name": "DeleteExtension", "request": { "method": "DELETE", "header": [], "url": { "raw": "http://localhost:8081/cezen/delete_extension?sipNumber=testEndPoint", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "delete_extension" ], "query": [ { "key": "sipNumber", "value": "testEndPoint" } ] } }, "response": [ { "name": "DeleteExtension", "originalRequest": { "method": "DELETE", "header": [], "url": { "raw": "http://localhost:8081/cezen/delete_extension?sipNumber=1005", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "delete_extension" ], "query": [ { "key": "sipNumber", "value": "1005" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:22:35 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "true" } ] }, { "name": "Add_a_global_extension_feature", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": \"default\",\n \"extension\": \"w\",\n \"priority\": 5,\n \"app\": \"Dial\",\n \"appdata\": \"W conf\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_feature", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_feature" ] } }, "response": [ { "name": "Add_a_global_extension_feature", "originalRequest": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"context\": \"default\",\n \"extension\": \"w\",\n \"priority\": 5,\n \"app\": \"Dial\",\n \"appdata\": \"W conf\"\n}\n", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/cezen/add_feature", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "cezen", "add_feature" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 10:53:48 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": false,\n \"message\": \"w configured as default Already exists\",\n \"exceptionMessage\": \"jakarta.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call\"\n}" } ] }, { "name": "signup", "request": { "auth": { "type": "noauth" }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"userName\": \"Mathew Francis\",\n \"email\":\"asda@gmail.com\",\n \"password\": \"1234567890\",\n \"confirmPassword\": \"1234567890\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "http://localhost:8081/open/signup", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "open", "signup" ] } }, "response": [] }, { "name": "login", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "basic", "basic": [ { "key": "username", "value": "1234567890", "type": "string" }, { "key": "password", "value": "12345", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "" }, "url": { "raw": "http://localhost:8083/open/login", "protocol": "http", "host": [ "localhost" ], "port": "8083", "path": [ "open", "login" ] } }, "response": [ { "name": "login", "originalRequest": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8081/open/login", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "open", "login" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Vary", "value": "Origin" }, { "key": "Vary", "value": "Access-Control-Request-Method" }, { "key": "Vary", "value": "Access-Control-Request-Headers" }, { "key": "Set-Cookie", "value": "Authorization=eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJNYXRoZXcgRnJhbmNpcyIsInN1YiI6IkpXVF9Ub2tlbiIsInVzZXJuYW1lIjoiY29tLmV4YW1wbGUuY2V6ZW5QQlguZW50aXR5LnVzZXIuVXNlckVudGl0eUAzMGI5ZjFlOCIsImF1dGhvcml0aWVzIjoiUk9MRV9hZG1pbiIsImlhdCI6MTc0NzI5MDAyMCwiZXhwIjoxNzQ3MzIwMDIwfQ.kjyArki3Cbc90Jjf68pl5iPeg61GWaxb6yT6ivTNXes; Path=/; Secure; HttpOnly" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "X-XSS-Protection", "value": "0" }, { "key": "Cache-Control", "value": "no-cache, no-store, max-age=0, must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "0" }, { "key": "X-Frame-Options", "value": "DENY" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Transfer-Encoding", "value": "chunked" }, { "key": "Date", "value": "Thu, 15 May 2025 06:20:20 GMT" }, { "key": "Keep-Alive", "value": "timeout=60" }, { "key": "Connection", "value": "keep-alive" } ], "cookie": [], "body": "{\n \"status\": false,\n \"message\": \"Login not yet implemented\",\n \"exceptionMessage\": \"Login not yet implemented\"\n}" } ] }, { "name": "logout", "request": { "method": "POST", "header": [], "url": { "raw": "http://localhost:8081/logout", "protocol": "http", "host": [ "localhost" ], "port": "8081", "path": [ "logout" ] } }, "response": [] }, { "name": "XSRF", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "{\n \"id\": \"1005\",\n// \"transport\": \"transport-udp\",\n// \"context\": \"default\",\n// \"disallow\": \"all\",\n// \"allow\": \"ulaw,alaw\",\n// \"directMedia\": \"no\",\n \"connectedLineMethod\": null,\n \"callerid\": null,\n \"dtmfMode\": null,\n// \"mohsuggest\": \"default\",\n \"mailboxes\": null\n}\n\n// {\n// \"id\": \"1004\",\n// \"transport\": \"transport-udp\",\n// \"aors\": \"1004\",\n// \"auth\": \"1004\",\n// \"context\": \"default\",\n// \"disallow\": \"all\",\n// \"allow\": \"ulaw,alaw\",\n// \"directMedia\": \"no\",\n// \"connectedLineMethod\": null,\n// \"callerid\": \"User <1004>\",\n// \"dtmfMode\": null,\n// \"mohsuggest\": \"default\",\n// \"mailboxes\": \"1004@default\"\n// }" }, "url": { "raw": "http://localhost:8083/user/getXSRfToken", "protocol": "http", "host": [ "localhost" ], "port": "8083", "path": [ "user", "getXSRfToken" ] } }, "response": [] } ] }