{"info":{"_postman_id":"5cb52c6f-d76a-4308-a8a0-7187f539234f","name":"NUS Fintech","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14840666","collectionId":"5cb52c6f-d76a-4308-a8a0-7187f539234f","publishedId":"2s8ZDU5Pya","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-01-16T11:40:26.000Z"},"item":[{"name":"Create user - Customer","event":[{"listen":"test","script":{"id":"472ded6e-05fa-4a5b-8ed9-900131932c95","exec":[""],"type":"text/javascript"}}],"id":"7fab0a19-59cd-42fe-9c50-dca4a13054a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Anna\",\n    \"email\": \"anna@gmail.com\",\n    \"walletAddress\": \"0x8eC69229fE781Fa9fBAe3Bb07BF0daEC7F9712eA\",\n    \"password\": \"password\",\n    \"isVerified\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/user/signup","urlObject":{"path":["user","signup"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"7fab0a19-59cd-42fe-9c50-dca4a13054a5"},{"name":"Create user - Validator","id":"dfbf8e69-41a9-4105-b53b-5457ae6c650f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Dr. John\",\n    \"email\": \"johndoe@sgh.com\",\n    \"walletAddress\": \"0xC1aedA4cCe00aF3B8a6b1B502C9C26cfF5E031fE\",\n    \"password\": \"password\",\n    \"isVerified\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/user/signup","urlObject":{"path":["user","signup"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfbf8e69-41a9-4105-b53b-5457ae6c650f"},{"name":"Create institution","id":"ed3bb869-0adb-44dc-ae0c-4c619537ff68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Panda Bank\",\n    \"address\": \"Mao Tse Toung Blvd(St. 245), Sangkat Boeng Kengkang 1 , Khan Boeng Kengkang , Phnom Penh\",\n    \"adminEmail\": \"pandanbank@gmail.com\",\n    \"supportEmail\": \"pandanbank_support@gmail.com\",\n    \"isVerified\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/institution/signup","urlObject":{"path":["institution","signup"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed3bb869-0adb-44dc-ae0c-4c619537ff68"},{"name":"Create validator","id":"15628380-77d9-409f-8fdf-ebdb81e44171","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"user\": \"63c52cd49241986c005fdcc1\",\n    \"organisationName\": \"Changi General Hospital\",\n    \"publicKey\": \"ASKGLJ2143F1GA\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/validator/signup","urlObject":{"path":["validator","signup"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"15628380-77d9-409f-8fdf-ebdb81e44171"},{"name":"Create contract","id":"1bb63ca2-044b-418c-b93b-8355a8d2174f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"policy\": \"63d12077949528b9d00c2c75\",\n    \"user\": \"63d11731f110d764b76f0ed8\",\n    \"validity\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/contract/create","urlObject":{"path":["contract","create"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"1bb63ca2-044b-418c-b93b-8355a8d2174f"},{"name":"Create policy","id":"96100942-d401-4246-bc5a-6fb96f5952ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"provider\": \"63c56306a976bfba6a6ed61a\",\n    \"name\": \"Illness Policy\",\n    \"type\": \"Critical illness\",\n    \"term\": \"Whole life\",\n    \"premiumAmount\": 1000,\n    \"premiumFrequency\": \"annually\",\n    \"approvedValidator\": [\n        \"63c56313a976bfba6a6ed61c\",\n        \"63d11e13171cbb4f80eb73f2\"\n    ],\n    \"signSetting\": \"2\",\n    \"payout\": \"one-time\",\n    \"contractAddress\": \" 0xa2129awgr10twgwo132qwgl1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/policy/create","urlObject":{"path":["policy","create"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"96100942-d401-4246-bc5a-6fb96f5952ab"},{"name":"Read contract","id":"e3fa2e39-6b4c-4a55-9fb2-634f5a439a1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/contract/{{contractId}}","urlObject":{"path":["contract","{{contractId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3fa2e39-6b4c-4a55-9fb2-634f5a439a1f"},{"name":"Create claim","id":"bec5233c-753e-411d-88b4-a3c5b0943043","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contract\": \"63d1287094ea22d6ec52a190\",\n    \"claimAmount\": 10000\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/claim/create","urlObject":{"path":["claim","create"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"bec5233c-753e-411d-88b4-a3c5b0943043"},{"name":"Create event","id":"b9c3c29a-f5fc-470a-bc34-2f0780571d1b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"claim\": \"63c563e78af075be99e4b9d8\",\n    \"validators\": \"63c565a88af075be99e4b9da\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/event/create","urlObject":{"path":["event","create"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9c3c29a-f5fc-470a-bc34-2f0780571d1b"},{"name":"Create payout","id":"1404ae3a-eb28-4983-b0bc-14d24b9a0c6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"claim\": \"63d12fd513dd85f80ddafcca\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.apppayout/create","urlObject":{"path":["create"],"host":["https://tre-pandassurance-78ug.vercel.apppayout"],"query":[],"variable":[]}},"response":[],"_postman_id":"1404ae3a-eb28-4983-b0bc-14d24b9a0c6d"},{"name":"Create payment","id":"e2f34b4a-72e7-4f34-a632-b1594ea8501b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"contract\": \"63d1287094ea22d6ec52a190\",\n    \"amount\": 1000\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/payment/create","urlObject":{"path":["payment","create"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2f34b4a-72e7-4f34-a632-b1594ea8501b"},{"name":"Get all users","id":"66cde1eb-8aff-49ef-ae2a-6e37a4812f91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/user/","urlObject":{"path":["user",""],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"66cde1eb-8aff-49ef-ae2a-6e37a4812f91"},{"name":"Get all validators","id":"7dec5aa0-1462-4dbc-a055-74eda15ea98b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/validator/","urlObject":{"path":["validator",""],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"7dec5aa0-1462-4dbc-a055-74eda15ea98b"},{"name":"Get all institutions","id":"a6961f4a-05c9-4044-9bc5-7549d5d09a99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/institution/","urlObject":{"path":["institution",""],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"a6961f4a-05c9-4044-9bc5-7549d5d09a99"},{"name":"Get all contracts","id":"6a5762ea-7fde-42e2-b0da-d5cfa4cc8345","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/contract/","urlObject":{"path":["contract",""],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a5762ea-7fde-42e2-b0da-d5cfa4cc8345"},{"name":"Get user by id","id":"1e4c7009-c487-4e99-969c-66cdb0dde453","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/user/{{userId}}","urlObject":{"path":["user","{{userId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"1e4c7009-c487-4e99-969c-66cdb0dde453"},{"name":"Get policy by id","id":"4abe1423-c09d-4322-b19b-fa845a837dff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/policy/{{policyId}}","urlObject":{"path":["policy","{{policyId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"4abe1423-c09d-4322-b19b-fa845a837dff"},{"name":"Get policy by institution id","id":"e31a0c5e-cda8-4951-82cd-a4dfe96422ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/policy/institution/{{institutionId}}","urlObject":{"path":["policy","institution","{{institutionId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"e31a0c5e-cda8-4951-82cd-a4dfe96422ad"},{"name":"Get validator by id","id":"a8e75fde-35af-493a-bab7-5c72d6bcc3cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/validator/{{validatorId}}","urlObject":{"path":["validator","{{validatorId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"a8e75fde-35af-493a-bab7-5c72d6bcc3cd"},{"name":"Get institution by id","id":"cba73de5-b5e1-4906-a246-fb9a3800de35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/institution/{{institutionId}}","urlObject":{"path":["institution","{{institutionId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"cba73de5-b5e1-4906-a246-fb9a3800de35"},{"name":"Get payment by contract","id":"03faff72-63b1-40e8-a0b9-5df4464f3731","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/payment/{{contractId}}","urlObject":{"path":["payment","{{contractId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"03faff72-63b1-40e8-a0b9-5df4464f3731"},{"name":"Get payout by contract","id":"d12d8089-db0c-4da0-bb5e-cbcf24dd9928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/payout/{{contractId}}","urlObject":{"path":["payout","{{contractId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"d12d8089-db0c-4da0-bb5e-cbcf24dd9928"},{"name":"Get claim by contract","id":"ba56c951-faa1-44d1-96ca-93d5da4fa6db","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/claim/{{contractId}}","urlObject":{"path":["claim","{{contractId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba56c951-faa1-44d1-96ca-93d5da4fa6db"},{"name":"Update user by id","id":"6907cc15-48bd-42f4-afb5-d3678aba2a20","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Bob\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/user/{{userId}}","urlObject":{"path":["user","{{userId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"6907cc15-48bd-42f4-afb5-d3678aba2a20"},{"name":"Update institution by id","id":"afefe8f9-17a3-4104-aa83-e933f176040a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Eagle Bank\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/institution/{{institutionId}}","urlObject":{"path":["institution","{{institutionId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"afefe8f9-17a3-4104-aa83-e933f176040a"},{"name":"Update validator by id","id":"729cb6c9-ced1-487b-a14e-40afca0aa92b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"publicKey\": \"ABCc241sfzfa!\"\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/validator/{{validatorId}}","urlObject":{"path":["validator","{{validatorId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"729cb6c9-ced1-487b-a14e-40afca0aa92b"},{"name":"Update contract by id","id":"b1597fd1-c474-4b66-bf33-ee91eb839295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"validity\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/contract{{contractId}}","urlObject":{"path":["contract{{contractId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"b1597fd1-c474-4b66-bf33-ee91eb839295"},{"name":"Update claim by id","id":"d5cee527-3742-4c4a-ba08-51d98b6f77cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n    \"isVerified\": true,\n    \"status\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://tre-pandassurance-78ug.vercel.app/claim/{{claimId}}","urlObject":{"path":["claim","{{claimId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5cee527-3742-4c4a-ba08-51d98b6f77cf"},{"name":"Delete user by id","id":"3f49463a-c974-4b61-a988-1b1a632f6abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/user/{{userId}}","urlObject":{"path":["user","{{userId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f49463a-c974-4b61-a988-1b1a632f6abe"},{"name":"Delete institution by id","id":"85b59b58-f63a-4c15-a136-1244bf1ddabb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/institution/{{institutionId}}","urlObject":{"path":["institution","{{institutionId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"85b59b58-f63a-4c15-a136-1244bf1ddabb"},{"name":"Delete validator by id","id":"958f6ae0-fc36-4db2-aeed-d5e25bb6e033","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/validator/{{validatorId}}","urlObject":{"path":["validator","{{validatorId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"958f6ae0-fc36-4db2-aeed-d5e25bb6e033"},{"name":"Delete policy by id","id":"846fabfc-1be6-4797-bdc2-222f4c686c68","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/policy/{{policyId}}","urlObject":{"path":["policy","{{policyId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"846fabfc-1be6-4797-bdc2-222f4c686c68"},{"name":"Delete claim by id","id":"696b6c7a-f1ac-4f35-9d86-6b2c5b3b6bca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://tre-pandassurance-78ug.vercel.app/claim/{{claimId}}","urlObject":{"path":["claim","{{claimId}}"],"host":["https://tre-pandassurance-78ug.vercel.app"],"query":[],"variable":[]}},"response":[],"_postman_id":"696b6c7a-f1ac-4f35-9d86-6b2c5b3b6bca"}],"event":[{"listen":"prerequest","script":{"id":"5ef90d37-f9d0-4bb2-946f-25cdb201acce","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"dd02e4f6-e398-4208-bd95-dd53514b2d7e","type":"text/javascript","exec":[""]}}],"variable":[{"key":"url","value":"https://tre-pandassurance-78ug.vercel.app","type":"string"}]}