{"info":{"_postman_id":"3bf8e3eb-856b-4e84-a27f-cced85cbb381","name":"Esusu App","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"11351953","collectionId":"3bf8e3eb-856b-4e84-a27f-cced85cbb381","publishedId":"UVkgxeCQ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-02-15T15:44:30.000Z"},"item":[{"name":"Contribute to Group","id":"fad90a2c-3937-47f4-bfeb-a74252b64dda","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJNYWxpayIsInN1YiI6IjYyMGI5MDkyOGNlMWEzMGNhZTJlOGRlNiIsImlhdCI6MTY0NDkyNTA3NDMyOSwiZXhwIjoxNjQ1MDExNDc0MzI5fQ.MSiTQfTJiqNDBLEZ3LZvzgt7hx66wBzR8NXWLilU4Ls"}],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"5000","description":"<p>The amount to be contributed to the group for the week</p>\n","type":"text"}]},"url":"https://maps.googleapis.com/maps/api/geocode/json?address=:address&key=:key","urlObject":{"protocol":"https","path":["maps","api","geocode","json"],"host":["maps","googleapis","com"],"query":[{"key":"address","value":":address"},{"key":"key","value":":key"}],"variable":[]}},"response":[],"_postman_id":"fad90a2c-3937-47f4-bfeb-a74252b64dda"},{"name":"Register User","id":"ae33c0d3-ad1b-4fec-b8e1-c16bb14e2ff3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"email","value":"madjam@gmail.com","type":"text"},{"key":"password","value":"malik","type":"text"},{"key":"name","value":"malik","type":"text"}]},"url":"https://esusu-app.herokuapp.com/api/user/register","description":"<p>Register a new user here.\nThis request responds with User object and a token which is necessary for authorizing subsequent protected routes.</p>\n","urlObject":{"protocol":"https","path":["api","user","register"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ae33c0d3-ad1b-4fec-b8e1-c16bb14e2ff3"},{"name":"Create a Group","id":"3561c520-9910-402e-8ed8-9f852694d034","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"name","value":"New Group","type":"text","description":"<p>The group name</p>\n"},{"key":"description","value":"New Group description","type":"text","description":"<p>The group description</p>\n"},{"key":"visibility","value":"true","description":"<p>Should Group be visible? true or false</p>\n","type":"text"},{"key":"fixed_amount","value":"2000","description":"<p>The amount to be paid every week by contributors</p>\n","type":"text"},{"key":"maxCapacity","value":"10","description":"<p>Maximum number of slots</p>\n","type":"text"}]},"url":"https://esusu-app.herokuapp.com/api/group/create","description":"<p>Create a New Group. Automatically get assigned as Admin.\nAll fields are required.</p>\n","urlObject":{"protocol":"https","path":["api","group","create"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3561c520-9910-402e-8ed8-9f852694d034"},{"name":"Update Group Settings","id":"58a0d227-1ff9-4c56-9a77-5255381bc2de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"url":"https://esusu-app.herokuapp.com/api/group/settings/:group_id","description":"<p>Update your group settings such as name, capacity and description</p>\n","urlObject":{"protocol":"https","path":["api","group","settings",":group_id"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"620be1fbe943738c9930c140","key":"group_id"}]}},"response":[],"_postman_id":"58a0d227-1ff9-4c56-9a77-5255381bc2de"},{"name":"Join A Group","id":"32c8a32a-2e10-445b-b657-977dafd0193c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtYWxpayIsInN1YiI6IjYyMGJlMDJiZTk0MzczOGM5OTMwYzEzYiIsImlhdCI6MTY0NDk0NTQ1MTY3NywiZXhwIjoxNjQ1MDMxODUxNjc3fQ.H-LLcpJioPMayz8JB1xj8C_lSSMAaf3-ByNcMvhyhwU","type":"text"}],"url":"https://esusu-app.herokuapp.com/api/group/invite/:group_id","description":"<p>Join a group through a link. You must be authorized to join through the link.\nCheck authorization header of the sample requests</p>\n","urlObject":{"protocol":"https","path":["api","group","invite",":group_id"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[{"id":"e8189bd5-ee08-464c-872d-90b56c909231","type":"any","value":"620be1fbe943738c9930c140","key":"group_id"}]}},"response":[],"_postman_id":"32c8a32a-2e10-445b-b657-977dafd0193c"},{"name":"All your groups","id":"b97982a3-a618-4052-82da-8d5e4e67ce26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJtYWxpayIsInN1YiI6IjYyMGJlMDJiZTk0MzczOGM5OTMwYzEzYiIsImlhdCI6MTY0NDk0NTQ1MTY3NywiZXhwIjoxNjQ1MDMxODUxNjc3fQ.H-LLcpJioPMayz8JB1xj8C_lSSMAaf3-ByNcMvhyhwU","type":"text"}],"url":"https://esusu-app.herokuapp.com/api/group/all","description":"<p>See all the groups you are heading. You are group admins in this groups.</p>\n","urlObject":{"protocol":"https","path":["api","group","all"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b97982a3-a618-4052-82da-8d5e4e67ce26"},{"name":"Search for Groups with keyword","id":"ed6c453a-c71f-40be-8ad0-d43f867bf9c9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://esusu-app.herokuapp.com/api/group/search/:keyword","description":"<p>Search for a Group</p>\n","urlObject":{"protocol":"https","path":["api","group","search",":keyword"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[{"id":"102fc9c8-7fac-4b97-bbb4-e6003ac8cba3","type":"any","value":"Description","key":"keyword"}]}},"response":[],"_postman_id":"ed6c453a-c71f-40be-8ad0-d43f867bf9c9"},{"name":"Contribute to a group","id":"85e649ee-8953-4227-b291-64989d94bd0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"amount","value":"50000","description":"<p>Amount to be added</p>\n","type":"text"}]},"url":"https://esusu-app.herokuapp.com/api/group/contribute/:group_id","description":"<p>You must belong to a group before contributing. This API helps yyou add your donation to the group</p>\n","urlObject":{"protocol":"https","path":["api","group","contribute",":group_id"],"host":["esusu-app","herokuapp","com"],"query":[],"variable":[{"description":{"content":"<p>Group ID</p>\n","type":"text/plain"},"type":"any","value":"620ba38724c36c2752259917","key":"group_id"}]}},"response":[],"_postman_id":"85e649ee-8953-4227-b291-64989d94bd0a"}]}