{"info":{"_postman_id":"086f7f1e-948b-47a1-8ee4-1e57aae01956","name":"Miracle Messages API Endpoints","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"9765799","collectionId":"086f7f1e-948b-47a1-8ee4-1e57aae01956","publishedId":"SzfDxQme","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"253551","highlight":"EF5B25"},"publishDate":"2020-04-28T22:34:10.000Z"},"item":[{"name":"chapterRouter","item":[{"name":"Get Partners from a Specific Chapter","id":"8bf1ac45-562c-4b52-9969-8ac7f1fb6a94","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id/partners","description":"<p>Returns all Partners from a specific Chapter by the chapters Id.</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id","partners"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"3508e1af-2483-4d17-b279-a4cb6b49e955","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"8bf1ac45-562c-4b52-9969-8ac7f1fb6a94"},{"name":"Get Chapter By Id","id":"f43aef91-6c63-4500-8d2e-5d44723dbbd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id","urlObject":{"protocol":"https","path":["api","chapter",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"b5397d42-abd6-4d7f-ab8f-7d752dea29b8","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"f43aef91-6c63-4500-8d2e-5d44723dbbd9"},{"name":"Returns All Chapters","id":"33d71fff-a603-4bee-bb36-e72fa40b847e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/chapter","urlObject":{"protocol":"https","path":["api","chapter"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"33d71fff-a603-4bee-bb36-e72fa40b847e"},{"name":"Returns a specific volunteer from a Chapter","id":"ae559fa8-e488-4979-8806-a6b23e9715af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n\t\"oktaid\": \"00uajzp64aLBxrmBX4x6\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/chapter/:id/volunteer","description":"<p>Currently not working.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["api","chapter",":id","volunteer"],"host":["localhost"],"query":[],"variable":[{"id":"6edccba8-c03e-4c0c-8b12-8365d6f985da","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"ae559fa8-e488-4979-8806-a6b23e9715af"},{"name":"Create A New Chapter","id":"ad59eef8-a7bc-4e44-8350-3b36ce412a5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"city\": \"lynden\",\n\t\"title\": \"Lynden Chapter\",\n\t\"state\": \"WA\",\n\t\"email\": \"test@gmail.com\",\n\t\"chapter_img_url\": \"https://images.unsplash.com/photo-1588025256565-a5d391d180ee?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1001&q=80\",\n\t\"established_date\": \"03-08-2019\",\n\t\"description\": \"This is the description of the chapter\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/chapter","description":"<p>Adds a new chapter into the database.</p>\n","urlObject":{"protocol":"https","path":["api","chapter"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad59eef8-a7bc-4e44-8350-3b36ce412a5e"},{"name":"Assign Partner/Sponsor to a Chapter","id":"ead70153-ce78-4271-9b06-2a0610526e2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"partnerId\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id/partners","description":"<p>Assigns a specific Partner/Sponsor given a Chapter Id</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id","partners"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"a1701a68-73cd-4733-b2a5-2ef89a2da379","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"ead70153-ce78-4271-9b06-2a0610526e2b"},{"name":"Assigns a Volunteer to A Specific Chapter","id":"68d1247a-ae94-4c5d-a275-fe8ca838dfe2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"oktaid\": \"00uajzp64aLBxrmBX4x6\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id/volunteer","description":"<p>Assigns a Volunteer by Okta Id to a specific Chapter using the Chapter Id.</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id","volunteer"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"741c6edd-9f06-44d2-af0a-a88f373ca49b","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"68d1247a-ae94-4c5d-a275-fe8ca838dfe2"},{"name":"Updates the Specific Chapter","id":"bec14ba7-eb21-4865-aa4c-c6a2f63dcaee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"title\": \"Whatcom Chapter\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id","description":"<p>Updates a chapter according to Chapter Id. Pass in body key value pairs of desired change.</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"7d7f96d9-52b8-4345-bc5b-4d1badd57a3a","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"bec14ba7-eb21-4865-aa4c-c6a2f63dcaee"},{"name":"Delete Chapter","id":"58e03020-e94f-42b8-a5c2-e0fa01b713e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id","description":"<p>Deletes a Chapter according to the Chapter Id and Removes all its Partners</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"47b25bd8-5a5d-4a5a-81f8-9817e744ded2","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"58e03020-e94f-42b8-a5c2-e0fa01b713e4"},{"name":"Removes a Specific Partner/Sponsor from A Chapter","id":"0e276564-2704-486e-aec9-b2b9fd8a3e36","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/chapter/:id/partners/:partnerid","description":"<p>Removes a specific Partner/Sponsor from a Chapter by Id.</p>\n<p>Returns a 1 if succesfful removing Partner/Sponsor.\nReturns a 0 if Partner/Sponsor did not remove or Doesn't exist.</p>\n","urlObject":{"protocol":"https","path":["api","chapter",":id","partners",":partnerid"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"970019fc-b998-42f7-a99f-2afb068905be","type":"string","value":"2","key":"id"},{"id":"b4f47566-50b4-4ffb-b982-9819d7400eca","type":"string","value":"3","key":"partnerid"}]}},"response":[],"_postman_id":"0e276564-2704-486e-aec9-b2b9fd8a3e36"}],"id":"034ce92d-24a5-4945-8ab1-6347d56d305b","_postman_id":"034ce92d-24a5-4945-8ab1-6347d56d305b","description":""},{"name":"partnerRouter","item":[{"name":"List all Partners","id":"30f1f4f8-8daa-4493-8d69-43fc6b4a05c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/partner","description":"<p>Lists all Partners/Sponors in the Database</p>\n","urlObject":{"protocol":"https","path":["api","partner"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"30f1f4f8-8daa-4493-8d69-43fc6b4a05c6"},{"name":"Lists all Partners/Sponsors of a Specific Chapter","id":"b44cfa28-efe7-402b-909f-17582894097b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/partner/:id","description":"<p>Returns all Partners/Sponsors of a Chapter by Id</p>\n","urlObject":{"protocol":"https","path":["api","partner",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"eda70d75-2935-4502-9d13-ad21cd3480a9","type":"string","value":"3","key":"id"}]}},"response":[],"_postman_id":"b44cfa28-efe7-402b-909f-17582894097b"},{"name":"Delete a Partner/Sponsor","id":"56fbcbcf-4604-4123-be8e-25425be5c34e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/partner/:id","description":"<p>Deletes the Partner/Sponsor from the database using the Id.</p>\n","urlObject":{"protocol":"https","path":["api","partner",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"1c3a2adc-8344-4279-845a-ff26bab5a2b2","type":"string","value":"1","key":"id"}]}},"response":[],"_postman_id":"56fbcbcf-4604-4123-be8e-25425be5c34e"},{"name":"Adds a Sponsor/Partner to the Database","id":"fb1047d5-5b31-427c-89ce-caf59e3e309e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"    {\n        \"category\": \"test\",\n        \"name\": \"est Riverside\",\n        \"site_url\": \"https://www.test.gov\",\n        \"partner_icon\": \"https://labs14-miracle-messages-image-upload.s3.amazonaws.com/Mt_Tabor_Missionary_Baptist_Church_-_Baptist_SBC_church_Los_.jpg\"\n    }","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/partner","description":"<p>Requires Front end to function by adding a image with the api call.</p>\n","urlObject":{"protocol":"https","path":["api","partner"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb1047d5-5b31-427c-89ce-caf59e3e309e"},{"name":"Update a Partner/Sponsor","id":"604876b4-dcaa-4dbe-8fde-8e912d9b2dfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"testing\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/partner/:id","description":"<p>Requires front end to send an image with api call in order to update Partner/Sponsor</p>\n","urlObject":{"protocol":"https","path":["api","partner",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"8574ab40-dbe8-400e-9940-96ad508df4cc","type":"string","value":"2","key":"id"}]}},"response":[],"_postman_id":"604876b4-dcaa-4dbe-8fde-8e912d9b2dfb"}],"id":"6ebfa3a0-8d38-434d-9b1c-f58910265d16","_postman_id":"6ebfa3a0-8d38-434d-9b1c-f58910265d16","description":""},{"name":"volunteersRouter","item":[{"name":"Lists all Volunteers in Database","id":"ee6ebeaf-8f4b-4df1-b6f9-96dca99b725f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/volunteer","description":"<p>Lists all the volunteers in the database.</p>\n","urlObject":{"protocol":"https","path":["api","volunteer"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee6ebeaf-8f4b-4df1-b6f9-96dca99b725f"},{"name":"Adds Volunteer and Sends Email","id":"71574eb9-298e-4293-95cf-f2761770782c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"fname\": \"test firstname\",\n\t\"lname\": \"test lastname\",\n\t\"email\": \"viola4lfe@gmail.com\",\n\t\"city\": \"virginia beach\",\n\t\"state\": \"virignia\",\n\t\"country\": \"us\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/volunteer","description":"<p>Adds Volunteer to Database and Sends Email</p>\n","urlObject":{"protocol":"https","path":["api","volunteer"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"71574eb9-298e-4293-95cf-f2761770782c"},{"name":"Delete Volunteer From Database","id":"7b7697ec-53c2-4d5c-ab27-98ce0b1e44ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://miracle-messages-dev.herokuapp.com/api/volunteer/:id","description":"<p>Deletes the Volunteer from database by Volunteer id</p>\n","urlObject":{"protocol":"https","path":["api","volunteer",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"e404ebb6-be79-4511-9e5e-8b565f8830e1","type":"string","value":"24","key":"id"}]}},"response":[],"_postman_id":"7b7697ec-53c2-4d5c-ab27-98ce0b1e44ca"},{"name":"Update Volunteer Data","id":"8fa0f953-e1c9-4c56-9895-bdd8e3ecb9fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"fname\": \"testfirstname\"\n}","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/api/volunteer/:id","description":"<p>Updates the volunteer data in the database</p>\n","urlObject":{"protocol":"https","path":["api","volunteer",":id"],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[{"id":"3ae1f799-a3b9-4b55-85ee-142673f81d89","type":"string","value":"23","key":"id"}]}},"response":[],"_postman_id":"8fa0f953-e1c9-4c56-9895-bdd8e3ecb9fc"}],"id":"cfb4197a-c3ab-46c8-b19e-fc18e900f697","_postman_id":"cfb4197a-c3ab-46c8-b19e-fc18e900f697","description":""},{"name":"GET base URL","id":"9e415a2d-7598-4db0-a2ba-48b4275cef0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://miracle-messages-dev.herokuapp.com/","description":"<p>This makes a get request to the base url and should return </p>\n","urlObject":{"protocol":"https","path":[""],"host":["miracle-messages-dev","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e415a2d-7598-4db0-a2ba-48b4275cef0c"}]}