{"info":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"44624396","collectionId":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","publishedId":"2sB2qXjhgG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-05-18T16:51:29.000Z"},"item":[{"name":"signup","item":[{"name":"sign up","id":"0d8bd825-8bb0-49b5-bc25-258267abfe02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"raya\",\r\n  \"email\": \"raya@gmail.com\",\r\n  \"password\": \"123\",\r\n  \"role\": \"donar\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/signup","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"89e8e134-26bd-4aa2-b54f-5a40e9c58ae6","name":"email already exist","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"raya\",\r\n  \"email\": \"raya@gmail.com\",\r\n  \"password\": \"123\",\r\n  \"role\": \"donor\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/signup"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Email already exists. Please use a different one.\"\r\n}"},{"id":"e3921d5d-4bc4-491b-9935-0d2f810c4411","name":"success sign up","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"rama\",\r\n  \"email\": \"rama@gmail.com\",\r\n  \"password\": \"Rama123\",\r\n  \"role\": \"donor\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/signup"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"User created successfully\",\r\n    \"user_id\": 19\r\n}"}],"_postman_id":"0d8bd825-8bb0-49b5-bc25-258267abfe02"}],"id":"d16fd478-a8c2-4e08-8629-88d3c85f1b41","description":"<p>user can sign up with one of these roles (sponsor,volanteer,donor,orphanage-manager,ngo,charity,humanitarian organizations)</p>\n","_postman_id":"d16fd478-a8c2-4e08-8629-88d3c85f1b41","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"complete profile","item":[{"name":"complete profile","id":"cb6753f8-d226-44e4-915d-48cddd6a5947","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2LCJyb2xlIjoiZG9uYXIiLCJpYXQiOjE3NDY4MjEzMjIsImV4cCI6MTc0NjgyNDkyMn0.dtYRWdT6v5fZfQsrwPn8H9vBp_0pgWfh1PwJ9S7mA-g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\":\"Qalqilia\",\r\n    \"phone_number\":\"059845657\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/profile/17","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","auth","profile","17"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4f960bbf-d627-42e1-bfaf-2984ccdb899e","name":"success","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2LCJyb2xlIjoiZG9uYXIiLCJpYXQiOjE3NDY4MjEzMjIsImV4cCI6MTc0NjgyNDkyMn0.dtYRWdT6v5fZfQsrwPn8H9vBp_0pgWfh1PwJ9S7mA-g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\":\"Qalqilia\",\r\n    \"phone_number\":\"059845633\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/profile/17"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Profile updated successfully\"\r\n}"},{"id":"52aefa10-80e0-41f9-8ac2-aa7935c9652d","name":"wrong user id","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo2LCJyb2xlIjoiZG9uYXIiLCJpYXQiOjE3NDY4MjEzMjIsImV4cCI6MTc0NjgyNDkyMn0.dtYRWdT6v5fZfQsrwPn8H9vBp_0pgWfh1PwJ9S7mA-g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"address\":\"Qalqilia\",\r\n    \"phone_number\":\"059845657\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/profile/17"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"User not found or nothing to update\"\r\n}"}],"_postman_id":"cb6753f8-d226-44e4-915d-48cddd6a5947"}],"id":"949b0c1e-6846-4214-b0d6-e023d0570045","description":"<p>user can complete its profile after signning up by adding new information like phone number ,etc..</p>\n","_postman_id":"949b0c1e-6846-4214-b0d6-e023d0570045","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"sponsership","item":[{"name":"SponsershipRequest","id":"32f23bfd-cb7f-4d00-9b7c-e0ab81359ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 3,\r\n  \"orphan_id\": 5,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"proof.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","sponsorship","requests"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4b4e5ea3-ada9-400b-9cb0-cd17d459818e","name":"sponser not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 31,\r\n  \"orphan_id\": 5,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"file.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Sponsor not found\"\r\n}"},{"id":"5d460056-727c-4266-b354-acd2f91b6a6e","name":"orphan not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 3,\r\n  \"orphan_id\": 51,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"file.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan not found\"\r\n}"},{"id":"8f168070-e8d7-44f8-8174-23ff6e1939ec","name":"orphan already sponsored","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 3,\r\n  \"orphan_id\": 5,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"file.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests"},"status":"Conflict","code":409,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"This orphan is already sponsored\"\r\n}"},{"id":"6506aeb5-7e47-4714-aef5-d7598c81a56a","name":"success request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 21,\r\n  \"orphan_id\": 6,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"file.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Sponsorship request submitted\",\r\n    \"request\": {\r\n        \"request_status\": \"Pending\",\r\n        \"request_id\": 9,\r\n        \"sponsor_id\": 21,\r\n        \"orphan_id\": 6,\r\n        \"job\": \"Engineer\",\r\n        \"proof_of_income\": \"file.pdf\",\r\n        \"marital_status\": \"Married\"\r\n    }\r\n}"},{"id":"875e2ef8-26a3-4c50-892b-59a4e103dd84","name":"the user not a sponsor","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"sponsor_id\": 1,\r\n  \"orphan_id\": 5,\r\n  \"job\": \"Engineer\",\r\n  \"proof_of_income\": \"file.pdf\",\r\n  \"marital_status\": \"Married\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/sponsorship/requests"},"status":"Forbidden","code":403,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"User is not a sponsor\"\r\n}"}],"_postman_id":"32f23bfd-cb7f-4d00-9b7c-e0ab81359ff5"},{"name":"Aprrove sponsership","id":"18f5ed81-b1ea-4e75-98c5-2ccce1e1bab5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxOCwicm9sZSI6ImFkbWluIiwibWFuYWdlcl9uYW1lIjoiYWRtaW4iLCJpYXQiOjE3NDcwNjcyNjYsImV4cCI6MTc0NzA3MDg2Nn0.nwrEiFHVn4roed8zLxvqJh9OP_BHYaaSb_ncQBjOCaQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"Approved\",\r\n  \"sponsorship_type\": \"Monthly\",\r\n  \"amount\": 100.000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/requests/10","description":"<p>the orphange accept the request if the sponsor proof that he can sponsor an orphan</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","requests","10"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ff153fc2-bf96-4f9f-a328-1e81b92cfd28","name":"wrong orphanage token","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxOCwicm9sZSI6ImFkbWluIiwibWFuYWdlcl9uYW1lIjoiYWRtaW4iLCJpYXQiOjE3NDcwNjcyNjYsImV4cCI6MTc0NzA3MDg2Nn0.nwrEiFHVn4roed8zLxvqJh9OP_BHYaaSb_ncQBjOCaQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"Approved\",\r\n  \"sponsorship_type\": \"Monthly\",\r\n  \"amount\": 100.000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/requests/6"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid token.\"\r\n}"},{"id":"6a3531af-bf16-4504-8e4a-5bfc117d32c5","name":"success sponsorship request","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxOCwicm9sZSI6ImFkbWluIiwibWFuYWdlcl9uYW1lIjoiYWRtaW4iLCJpYXQiOjE3NDcwNjcyNjYsImV4cCI6MTc0NzA3MDg2Nn0.nwrEiFHVn4roed8zLxvqJh9OP_BHYaaSb_ncQBjOCaQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"Approved\",\r\n  \"sponsorship_type\": \"Monthly\",\r\n  \"amount\": 100.000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/requests/9"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Request approved\"\r\n}"}],"_postman_id":"18f5ed81-b1ea-4e75-98c5-2ccce1e1bab5"}],"id":"c388f2cf-773a-4c3b-adc5-f892d85d61d3","description":"<p>user can request for a sponsership to spesific orphan , the orphange accept it if the orphan not sponerd and the sponser is qualified to sponor and he should proof that</p>\n","_postman_id":"c388f2cf-773a-4c3b-adc5-f892d85d61d3","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"Donors","item":[{"name":"add_donation","id":"201bd8d2-dd15-4fe8-ac15-c6418038d8d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 100,\r\n  \"donation_type\": \"Financial\",\r\n  \"orphanage_id\": 1,\r\n  \"payment_method\": \"Cash\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add","description":"<p><strong>Allows an authenticated donor to create a new financial or physical donation to a verified orphanage.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","add"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"67d5fa9e-02e7-4567-ab70-6dde01d7b6cd","name":"Successful donation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 100,\r\n  \"donation_type\": \"Financial\",\r\n  \"orphanage_id\":2,\r\n  \"payment_method\": \"Cash\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-d9o6X5pbRCgzy30W9PDaNL8waSI\""},{"key":"Date","value":"Sun, 18 May 2025 16:22:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation added successfully\",\n    \"donation_id\": 5\n}"},{"id":"b8fc7b64-85d9-4d24-8c5a-1888a08bc528","name":"Unverified Orphanage","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 100,\r\n  \"donation_type\": \"Financial\",\r\n  \"orphanage_id\":1,\r\n  \"payment_method\": \"Cash\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-YN43QeTCW1XOh/N36tGbv/5AB+Q\""},{"key":"Date","value":"Sun, 18 May 2025 16:28:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The selected orphanage is not verified\"\n}"},{"id":"23041086-f236-45c3-9b34-e4ffe2b3f0d4","name":"Orphanage Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 100,\r\n  \"donation_type\": \"Financial\",\r\n  \"orphanage_id\":200,\r\n  \"payment_method\": \"Cash\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-XXeMLOtykt1yB2MLPlbXBaaSvxc\""},{"key":"Date","value":"Sun, 18 May 2025 16:32:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"The selected orphanage does not exist\"\n}"},{"id":"4ed75a31-5fc8-45b8-9b0a-9acae7ae8fdc","name":"Add physical donation successfully","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 10,\r\n  \"donation_type\": \"Physical\",\r\n  \"orphanage_id\":2\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"137"},{"key":"ETag","value":"W/\"89-kPZBvn8qrhVYNL2gheYQQinkryE\""},{"key":"Date","value":"Sun, 18 May 2025 16:37:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation added successfully\",\n    \"donation_id\": 10,\n    \"note\": \"Please complete your physical donation by providing delivery details.\"\n}"},{"id":"6474e33c-c414-4b14-a801-8e2642d2e58e","name":"Missing required fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"donation_type\": \"Physical\",\r\n  \"orphanage_id\":2\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-ScCwsGo9bCIGpcO4hjV6hoWATx0\""},{"key":"Date","value":"Sun, 18 May 2025 16:38:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing required fields\"\n}"},{"id":"2e51dd91-838d-4ab7-aff5-d82dfb020c54","name":"No token provided or invalid token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 10,\r\n  \"donation_type\": \"Physical\",\r\n  \"orphanage_id\":2\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/add"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 18:07:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"201bd8d2-dd15-4fe8-ac15-c6418038d8d1"},{"name":"update_donation","id":"1b4af75d-46ad-4638-a309-46c841732a92","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \r\n        \"amount\": \"104\"\r\n       \r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/13","description":"<p><strong>Enables a donor to update their own donation details such as amount, date, type, status,. Only the donor who made the donation can modify it.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","13"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3ab7abe6-4302-478e-ac7c-9ccfc86cff9c","name":"Successful Update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \r\n        \"amount\": \"10\"\r\n       \r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-5W87jASkeAvKJPkOMnCuBy8GUWY\""},{"key":"Date","value":"Sun, 18 May 2025 17:34:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation updated successfully\"\n}"},{"id":"38cd1c80-8e59-4f41-9669-c8c3d1109e16","name":"Donation Not Found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \r\n        \"amount\": \"10\"\r\n       \r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/103"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 17:35:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"},{"id":"9a3b86c8-8e96-4f5b-adfd-06d49ca4362b","name":"Not the Owner","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \r\n        \"amount\": \"104\"\r\n       \r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/13"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-UlA840oyD3v4WtD2UPIfkFanJxM\""},{"key":"Date","value":"Sun, 18 May 2025 17:38:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only update your own donations\"\n}"},{"id":"47851b71-5f75-407e-8a88-a97c168d64e9","name":"No token provided or invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\r\n        \r\n        \"amount\": \"104\"\r\n       \r\n    }","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/13"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 18:09:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"1b4af75d-46ad-4638-a309-46c841732a92"},{"name":"delete_donation","id":"72a52824-0ca6-4cb3-87ff-ee971fd038c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/11","description":"<p><strong>Allows a donor to delete one of their own donations. Ensures the donation exists and is owned by the authenticated donor before deletion.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","11"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"826b78c6-4ad1-4af4-88a1-1da71ef0d152","name":"Successful Deletion","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/11"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-svOGTRaYCIsjeOkfvpE1qlEB0mE\""},{"key":"Date","value":"Sun, 18 May 2025 17:43:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation deleted successfully\"\n}"},{"id":"e4f60ad1-9d78-499e-8500-4e8be1d16a78","name":"Donation Not Found","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/200"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 17:44:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"},{"id":"5cf5211d-744a-4059-8d40-a9e319915829","name":"Not Owner","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-qDN3UXznPkyMHvWEEHno7XJZ1Zw\""},{"key":"Date","value":"Sun, 18 May 2025 17:44:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only delete your own donations\"\n}"},{"id":"a2354fdc-83c2-4842-aace-6aa50285b8e2","name":"No token provided or invalid token","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/11"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 18:09:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"72a52824-0ca6-4cb3-87ff-ee971fd038c8"},{"name":"get_verified_orphanages for donations","id":"817552ae-555c-48ce-acc3-4f9940de303d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/verified_orphanages","description":"<p><strong>Retrieves a list of orphanages that have been verified and are eligible to receive donations.</strong></p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","verified_orphanages"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bd2c1e47-34a4-4504-9b51-0f700930aae9","name":"Verified Orphanages Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/verified_orphanages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"110"},{"key":"ETag","value":"W/\"6e-z6xX1atxksRr6Au8CBXpAQYbk3k\""},{"key":"Date","value":"Sun, 18 May 2025 17:46:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Verified orphanages fetched successfully\",\n    \"data\": [\n        {\n            \"name\": \"kwn\",\n            \"verification_proof\": \"verified\"\n        }\n    ]\n}"},{"id":"b0f20e69-1673-41ac-9168-b96729d0a159","name":"No Verified Orphanages Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/verified_orphanages"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"ETag","value":"W/\"38-099ff5Mza46Q0ICK3x4YELqX3LY\""},{"key":"Date","value":"Sun, 18 May 2025 17:46:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No verified orphanages found for donations\"\n}"}],"_postman_id":"817552ae-555c-48ce-acc3-4f9940de303d"},{"name":"Delete My feedback","id":"13888789-abca-4c6d-81c7-6232ff28e687","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback/3","description":"<p><strong>Allows a donor to delete their own feedback by ID. Returns an error if the feedback does not exist or the donor is not the owner.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","feedback","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"870551f7-ca11-4813-8267-a7cdf794f1c7","name":"Feedback Deleted","originalRequest":{"method":"DELETE","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-PvxGju2MJ2QyLBzLnexnq6caaYU\""},{"key":"Date","value":"Sun, 18 May 2025 20:25:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback deleted successfully\"\n}"},{"id":"4718b858-487c-458b-99da-1438654d66f7","name":"Feedback Not Found","originalRequest":{"method":"DELETE","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-lnhDXYlL6iMXbcT8lDhEOjAG8Tk\""},{"key":"Date","value":"Sun, 18 May 2025 20:26:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback not found\"\n}"},{"id":"865382d5-f165-4c4b-a8db-8242e52041b9","name":"Not Owner","originalRequest":{"method":"DELETE","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback/3"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-7IztFseR3reUwLjGLAUohCQrxlw\""},{"key":"Date","value":"Sun, 18 May 2025 20:30:04 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only delete your own feedback\"\n}"},{"id":"308fcb7d-92ee-4be1-8a67-cfc44dce7a20","name":"No token provided or invalid token","originalRequest":{"method":"DELETE","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback/3"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 20:37:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"13888789-abca-4c6d-81c7-6232ff28e687"},{"name":"Add  My FeedBack","id":"b57cca20-8da5-4015-a75c-855ddb5272d7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 2,\r\n  \"rating\": 4,\r\n  \"comment\": \"The orphanage was very organized and transparent.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback","description":"<p><strong>Allows a donor to submit feedback for an orphanage, including a required rating and optional comment. Returns the created feedback upon success.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","feedback"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"732b9332-2daf-4e4d-ab89-c0bf84574150","name":"Feedback Submitted","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 2,\r\n  \"rating\": 4,\r\n  \"comment\": \"The orphanage was very organized and transparent.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"221"},{"key":"ETag","value":"W/\"dd-M8JnMFSUMRx0SNVjoHZb3Vd0/K8\""},{"key":"Date","value":"Sun, 18 May 2025 18:04:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Feedback submitted successfully\",\n    \"feedback\": {\n        \"feedback_date\": \"2025-05-18T18:04:50.753Z\",\n        \"feedback_id\": 1,\n        \"donor_id\": 17,\n        \"orphanage_id\": 2,\n        \"rating\": 4,\n        \"comment\": \"The orphanage was very organized and transparent.\"\n    }\n}"},{"id":"81e0cc6c-ac9e-4271-af2a-54a4f4f0376c","name":"Missing Required Fields","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\r\n  \"rating\": 4,\r\n  \"comment\": \"The orphanage was very organized and transparent.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-auz8WHiCcLfsezsZ1fwBjP4OXKU\""},{"key":"Date","value":"Sun, 18 May 2025 18:06:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"orphanage_id and rating are required\"\n}"},{"id":"6753bac8-90b6-42bf-8332-5ab3669343e3","name":"No token provided or invalid token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 2,\r\n  \"rating\": 4,\r\n  \"comment\": \"The orphanage was very organized and transparent.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/feedback"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 18:10:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"}],"_postman_id":"b57cca20-8da5-4015-a75c-855ddb5272d7"},{"name":"Get my Donation","id":"39c5f3a9-efa5-493b-9151-5a45bc7022b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/3","description":"<p><strong>Allows a donor to retrieve details of a specific donation (by ID) only if they are the owner. Useful for checking donation status or preparing for an update. Returns full donation data on success.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2562fd43-7bb9-4ed2-bee3-a082de2048c9","name":"Donation Retrieved","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"247"},{"key":"ETag","value":"W/\"f7-m0E/qK/AN3u8Bhrr3yEwVCEAlwY\""},{"key":"Date","value":"Sun, 18 May 2025 20:32:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"donation_id\": 3,\n    \"donor_id\": 17,\n    \"amount\": \"10.000\",\n    \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n    \"donation_type\": \"Physical\",\n    \"payment_method\": null,\n    \"donation_status\": \"Pending\",\n    \"tracking_url\": \"\",\n    \"orphanage_id\": 2,\n    \"service_fee\": \"0.000\",\n    \"net_amount\": \"0.000\"\n}"},{"id":"18a88ced-0607-4013-8511-47dc67974db8","name":"Donation Not Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/36"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 20:33:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"},{"id":"98e621b7-ff6a-4c16-97a6-ade8f5ce6794","name":"Not Owner of Donation","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/donations/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-dPJhEJHpz0eIUdRMceBceIQHZ/s\""},{"key":"Date","value":"Sun, 18 May 2025 20:34:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only view your own donation\"\n}"}],"_postman_id":"39c5f3a9-efa5-493b-9151-5a45bc7022b1"},{"name":"add_physical_donation_details","id":"13adbefd-ab99-4185-add2-08340c885199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":3,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/3/physical_donation_details","description":"<p><strong>Allows a donor to submit pickup details for a physical donation they own. This includes the pickup date, address, and optional description. Only applies to donations of type physical.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","3","physical_donation_details"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"792a3f60-f946-4012-bddb-97f94badb6b4","name":"Physical Donation Details Added","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":3,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/3/physical_donation_details"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"196"},{"key":"ETag","value":"W/\"c4-yzjLXgQAoTvVN3OCce/2v+KAzfw\""},{"key":"Date","value":"Sun, 18 May 2025 20:37:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Physical donation details added successfully\",\n    \"details\": {\n        \"id\": 1,\n        \"donation_id\": 3,\n        \"pickup_date\": \"2025-05-16\",\n        \"address\": \"Alquds street\",\n        \"description\": \"Clothes and food\",\n        \"driver_id\": null\n    }\n}"},{"id":"38e70770-422d-42fa-a55b-09f1b2ba071c","name":"No token provided or invalid token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":3,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/3/physical_donation_details"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Sun, 18 May 2025 20:38:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"f56fbea8-9737-48c1-8e63-3669bd4bcfe3","name":"Donation Not Found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":377,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/377/physical_donation_details"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 20:38:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"},{"id":"b08f5e98-86fd-4dda-a1a7-2bedf569744e","name":"Not a Physical Donation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":5,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/5/physical_donation_details"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-vxl4Y5nCwQY34M6lyk6slpwEamc\""},{"key":"Date","value":"Sun, 18 May 2025 20:39:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This donation is not physical type\"\n}"},{"id":"b5d13445-07d8-431a-b6f7-4ef460f66969","name":"Not Owner","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\":12,\r\n  \"pickup_date\": \"2025-05-16\",\r\n  \"address\": \"Alquds street\",\r\n  \"description\": \"Clothes and food\"\r\n  \r\n}\r\n\r\n\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/12/physical_donation_details"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-sV90tDJu0Ny8/FGjJS4fYABAuPo\""},{"key":"Date","value":"Sun, 18 May 2025 20:41:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only add details to your own donations\"\n}"}],"_postman_id":"13adbefd-ab99-4185-add2-08340c885199"}],"id":"2b4b66e1-3015-49fb-aa94-4e486789882b","_postman_id":"2b4b66e1-3015-49fb-aa94-4e486789882b","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"Log in","item":[{"name":"log in","id":"2d39a83c-c11a-4d1d-aab9-99aab8a1f675","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\":\"orphanageCare@gmail.com\",\r\n  \"password\":\"123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/login","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"99493ae7-9a6d-4f8d-a7cb-278c4c231655","name":"success log in","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"rama@gmail.com\",\r\n  \"password\":  \"Rama123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/login"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoyMCwicm9sZSI6ImRvbm9yIiwibWFuYWdlcl9uYW1lIjoicmFtYSIsImlhdCI6MTc0NzU2MjQzMywiZXhwIjoxNzQ3NTY2MDMzfQ.KZOsI05nuMtouJ_XlwdJwek9WgOWO9tFtPHNorlPufI\",\r\n    \"user_id\": 20,\r\n    \"role\": \"donor\",\r\n    \"name\": \"rama\",\r\n    \"message\": \"Login successful\"\r\n}"},{"id":"371f1b39-c216-42f5-88d2-8193a6cf30fc","name":"wrong password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"rama@gmail.com\",\r\n  \"password\":  \"123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid email or password\"\r\n}"},{"id":"f5108399-b5a9-4607-a935-e33d25e3d017","name":"wrong email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"rama12@gmail.com\",\r\n  \"password\":  \"Rama123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid email or password\"\r\n}"}],"_postman_id":"2d39a83c-c11a-4d1d-aab9-99aab8a1f675"}],"id":"d42b2f51-75c8-4c2a-ba11-c8f991920c1a","description":"<p>user can log in to his account, must be authorized using the token</p>\n","_postman_id":"d42b2f51-75c8-4c2a-ba11-c8f991920c1a","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"orphans","item":[{"name":"Get all orphans","id":"86804c17-220b-4f7a-b0d2-cb779b332995","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphans","description":"<p><strong>Users in the system can get all the orphans</strong></p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","show","orphans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f19daacd-228c-4e26-b8dc-b52cdfdd6cea","name":"success request","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphans"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"orphan_id\": 5,\r\n        \"name\": \"ali\",\r\n        \"age\": 5,\r\n        \"gender\": \"Male\",\r\n        \"education_status\": \"jjj\",\r\n        \"health_condition\": \"kkkm\",\r\n        \"profile_picture\": \"https://media.istockphoto.com/id/1268675353/photo/portrait-of-cute-little-girl-outdoors.jpg?s=612x612&w=0&k=20&c=7q3OKwR4BnYsf2Pflz0hnzLfEdgEz4D8d9rUzIQscqE=\",\r\n        \"orphanage_id\": 1\r\n    },\r\n    {\r\n        \"orphan_id\": 6,\r\n        \"name\": \"raya\",\r\n        \"age\": 20,\r\n        \"gender\": \"Male\",\r\n        \"education_status\": null,\r\n        \"health_condition\": null,\r\n        \"profile_picture\": \"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQmm0a-6FBbrwwVNX4tcImY7gRXn5e9dp-FeRStxe3k0AYhLtKjP8LhnkuVeocuppPtFkU&usqp=CAU\",\r\n        \"orphanage_id\": null\r\n    },\r\n    {\r\n        \"orphan_id\": 9,\r\n        \"name\": \"raya\",\r\n        \"age\": 20,\r\n        \"gender\": \"Male\",\r\n        \"education_status\": null,\r\n        \"health_condition\": null,\r\n        \"profile_picture\": null,\r\n        \"orphanage_id\": null\r\n    }\r\n]"}],"_postman_id":"86804c17-220b-4f7a-b0d2-cb779b332995"},{"name":"Get  orphan by id","id":"dba6164f-99ce-4fd0-9561-fae7eb8485d1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphans/5","description":"<p><strong>users can get spesific orphan by its id</strong></p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","show","orphans","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"07aa0bcf-7d22-4af1-9438-9d32a147f17b","name":"orphan not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphans/55"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan not found\"\r\n}"},{"id":"71261d1b-b37a-4164-93af-c77802e10521","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphans/5"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"orphan_id\": 5,\r\n    \"name\": \"ali\",\r\n    \"age\": 5,\r\n    \"gender\": \"Male\",\r\n    \"education_status\": \"jjj\",\r\n    \"health_condition\": \"kkkm\",\r\n    \"profile_picture\": \"https://media.istockphoto.com/id/1268675353/photo/portrait-of-cute-little-girl-outdoors.jpg?s=612x612&w=0&k=20&c=7q3OKwR4BnYsf2Pflz0hnzLfEdgEz4D8d9rUzIQscqE=\",\r\n    \"orphanage_id\": 1\r\n}"}],"_postman_id":"dba6164f-99ce-4fd0-9561-fae7eb8485d1"},{"name":"get orphan in orphanage","id":"592624be-49b1-4f85-82e4-9674a5e82ea6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphanage/1","description":"<p>user can get all the orphan in spesific orphange</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","show","orphanage","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cdc2faad-ec78-4f7c-a85b-004d114cd79c","name":"orphanage not found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphanage/11"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphanage not found.\"\r\n}\r\n\r\n"},{"id":"7c4453fe-b429-4a98-a39f-d1c9f810f5c7","name":"no orphans in the orphanage","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphanage/2"},"status":"Not Found","code":404,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"No orphans found for this orphanage.\"\r\n}"},{"id":"f17a7262-baa8-4b2a-aa8c-68068524021c","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/show/orphanage/1"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"orphan_id\": 5,\r\n        \"name\": \"ali\",\r\n        \"age\": 5,\r\n        \"gender\": \"Male\",\r\n        \"education_status\": \"jjj\",\r\n        \"health_condition\": \"kkkm\",\r\n        \"profile_picture\": \"https://media.istockphoto.com/id/1268675353/photo/portrait-of-cute-little-girl-outdoors.jpg?s=612x612&w=0&k=20&c=7q3OKwR4BnYsf2Pflz0hnzLfEdgEz4D8d9rUzIQscqE=\",\r\n        \"orphanage_id\": 1\r\n    }\r\n]"}],"_postman_id":"592624be-49b1-4f85-82e4-9674a5e82ea6"}],"id":"68a8c9ec-fa77-48a1-b1b4-ac330b04f1e0","_postman_id":"68a8c9ec-fa77-48a1-b1b4-ac330b04f1e0","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"admin","item":[{"name":"add orphan","id":"c66a2dc8-6b48-459d-ab7b-56ac3ed81ba3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"raya\",\r\n  \"age\": 20,\r\n  \"educationStatus\": \"Primary School\",\r\n  \"healthCondition\": \"Healthy\",\r\n  \"profilePhoto\": \"https://example.com/image.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans","description":"<p>add orphan to the system</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphans"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2617ce31-897d-4a39-bad7-14e91a17156e","name":"wrong token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"raya\",\r\n  \"age\": 20,\r\n  \"educationStatus\": \"Primary School\",\r\n  \"healthCondition\": \"Healthy\",\r\n  \"profilePhoto\": \"https://example.com/image.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Access denied. No token provided.\"\r\n}"},{"id":"4c364782-9141-4d05-a883-a225cc6292c9","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"raya\",\r\n  \"age\": 20,\r\n  \"educationStatus\": \"Primary School\",\r\n  \"healthCondition\": \"Healthy\",\r\n  \"profilePhoto\": \"https://example.com/image.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan added\",\r\n    \"data\": {\r\n        \"orphan_id\": 10,\r\n        \"name\": \"raya\",\r\n        \"age\": 20\r\n    }\r\n}"}],"_postman_id":"c66a2dc8-6b48-459d-ab7b-56ac3ed81ba3"},{"name":"orphanprofile","id":"bad60944-67c7-4a2b-890c-c52988b852a9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"education_status\": \"Middle School\",\r\n  \"health_condition\": \"Needs checkup\",\r\n  \"profile_picture\": \"https://example.com/newimage.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans/3","description":"<p>complete the orphan profile(each orphan should have a profile contains its name ,profile picture...)</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphans","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3ca722e0-e6be-41ac-b679-c86c97543965","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"education_status\": \"Middle School\",\r\n  \"health_condition\": \"Needs checkup\",\r\n  \"profile_picture\": \"https://example.com/newimage.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans/3"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan updated\",\r\n    \"updated\": [\r\n        1\r\n    ]\r\n}"}],"_postman_id":"bad60944-67c7-4a2b-890c-c52988b852a9"},{"name":"add orphange","id":"b9ee793f-3d21-4468-88cc-e57e10a535d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"hope orphange\",\r\n  \"location\": \"nablus\",\r\n  \"phone_number\": \"123456789\",\r\n  \"email\": \"hope@orphans.org\",\r\n  \"manager_name\": \"ahmed shtawi\",\r\n  \"verification_proof\": \"proof123.jpg\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphange","description":"<p>add new orphanage to the system</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphange"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"fc2af5ce-04dc-4175-83cd-16f3e6ad960b","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"hope orphange\",\r\n  \"location\": \"nablus\",\r\n  \"phone_number\": \"123456789\",\r\n  \"email\": \"hope@orphans.org\",\r\n  \"manager_name\": \"ahmed shtawi\",\r\n  \"verification_proof\": \"proof123.jpg\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphange"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphanage added successfully.\",\r\n    \"data\": {\r\n        \"orphanage_id\": 3,\r\n        \"name\": \"hope orphange\",\r\n        \"location\": \"nablus\",\r\n        \"phone_number\": \"123456789\",\r\n        \"email\": \"hope@orphans.org\",\r\n        \"manager_name\": \"ahmed shtawi\",\r\n        \"verification_proof\": \"proof123.jpg\"\r\n    }\r\n}"}],"_postman_id":"b9ee793f-3d21-4468-88cc-e57e10a535d8"},{"name":"updatorphan","id":"3e2526b1-54d3-4895-a09c-e3b2df5c12a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"John Updated\",\r\n  \"age\": 11\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans/2","description":"<p><strong>update spesific information to spesific orphan</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphans","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f85964f2-daaa-41e1-aebe-0008c5e79111","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Ali\",\r\n  \"age\": 15\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphans/5"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan updated\",\r\n    \"updated\": [\r\n        1\r\n    ]\r\n}"}],"_postman_id":"3e2526b1-54d3-4895-a09c-e3b2df5c12a8"},{"name":"deletorphan","id":"b29c1952-df09-450e-9743-02eb166297a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphans/2","description":"<p><strong>delete orphan from the system</strong></p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphans","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"39cc38e6-46bc-46fb-a52e-4958491395aa","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphans/9"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan deleted\"\r\n}"}],"_postman_id":"b29c1952-df09-450e-9743-02eb166297a1"},{"name":"get_all_donations","id":"d33a6c53-6f0a-44f8-a8a0-1927ba3ef1a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/all","description":"<p><strong>Retrieves a list of all orphanages. Accessible only by admin users.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","donations","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"69425d85-e01a-46b9-bc3f-0d1f6a8547f8","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2514"},{"key":"ETag","value":"W/\"9d2-o41cG0DzNOoRrUeDpvbMT7Ig20I\""},{"key":"Date","value":"Sun, 18 May 2025 20:44:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"donation_id\": 3,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 4,\n        \"donor_id\": 17,\n        \"amount\": \"200.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 5,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:22:19.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 6,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:30.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 7,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:33.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 8,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:27:24.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 9,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T16:36:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 10,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T16:37:14.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 12,\n        \"donor_id\": 6,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T17:37:30.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": \"Cash\",\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 13,\n        \"donor_id\": 6,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T17:37:33.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": \"Cash\",\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    }\n]"},{"id":"2f0c4b74-e366-45b5-8f62-301f5b78205a","name":"Not Admin or invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/all"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"63"},{"key":"ETag","value":"W/\"3f-FCLW0w4HD9tVDE7+Nu5OHkS/K/Q\""},{"key":"Date","value":"Sun, 18 May 2025 20:45:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. Only admin can view all donations.\"\n}"},{"id":"657b84e1-11ac-4a59-9ce8-b0a478d018f3","name":"get_all_donations","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/all"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Mon, 19 May 2025 14:04:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"}],"_postman_id":"d33a6c53-6f0a-44f8-a8a0-1927ba3ef1a5"},{"name":"get_donation_by_id","id":"39db9dfd-78ba-4754-add6-49021c2cbf17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/12","description":"<p><strong>Fetches a specific donation by its ID. Accessible only by admin users.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","donations","12"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2061b7de-86eb-4428-9d94-b02886ffdb87","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/12"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 20:47:01 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"88c21541-f2b3-4827-8fa1-97ded2f172d3","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"252"},{"key":"ETag","value":"W/\"fc-NmP0HkH8KxEMf+4MCdj13t0/0NM\""},{"key":"Date","value":"Sun, 18 May 2025 20:47:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"donation_id\": 12,\n    \"donor_id\": 6,\n    \"amount\": \"100.000\",\n    \"donation_date\": \"2025-05-18T17:37:30.000Z\",\n    \"donation_type\": \"Physical\",\n    \"payment_method\": \"Cash\",\n    \"donation_status\": \"Pending\",\n    \"tracking_url\": null,\n    \"orphanage_id\": 2,\n    \"service_fee\": \"0.000\",\n    \"net_amount\": \"0.000\"\n}"},{"id":"acbfd88b-5584-4126-ad5f-592eed00f8b4","name":"Donation Not Found","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/122"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 20:48:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"}],"_postman_id":"39db9dfd-78ba-4754-add6-49021c2cbf17"},{"name":"get_donations_by_user","id":"ef208230-aebb-4e8a-9eeb-e6db5bd86b82","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/users/17","description":"<p><strong>Retrieves all donations made by a specific user. Accessible only by admin users.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","donations","users","17"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9285f347-6733-4d35-b46d-25eb6a3bc49a","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/users/17"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 20:51:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"754de11d-291f-4b59-a54e-034b821f84b7","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/users/17"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"2007"},{"key":"ETag","value":"W/\"7d7-ni07IGRXOqf3ytFpO9ZqyeBGXVQ\""},{"key":"Date","value":"Sun, 18 May 2025 20:51:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"donation_id\": 3,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 4,\n        \"donor_id\": 17,\n        \"amount\": \"200.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 5,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:22:19.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 6,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:30.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 7,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:33.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 8,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:27:24.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 9,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T16:36:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 10,\n        \"donor_id\": 17,\n        \"amount\": \"10.000\",\n        \"donation_date\": \"2025-05-18T16:37:14.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 2,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    }\n]"},{"id":"13c7a244-dc7b-4b0f-b382-e09f8e4d0001","name":"No Donations for User","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/users/177"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-Fgc3XmI/ZscrDoWXqisJDZrrUJY\""},{"key":"Date","value":"Sun, 18 May 2025 20:52:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No donations found for this user\"\n}"}],"_postman_id":"ef208230-aebb-4e8a-9eeb-e6db5bd86b82"},{"name":"verify orphange","id":"51811fcb-d360-4480-b4ac-33a3fbfd1411","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"verification_proof\": \"verified\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanages/8/verify","description":"<p><strong>Allows an admin to update the verification status (verification_proof) of an orphanage by its ID.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphanages","8","verify"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"26521fb2-39d4-47ea-9c19-ac1ca60d4545","name":"Not admin or invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"verification_proof\": \"verified\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanages/8/verify"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 20:55:13 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"468b28be-90ff-41d2-a640-64cfd081fe5a","name":"Orphanage not found or already verified","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"verification_proof\": \"verified\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanages/8/verify"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-/+z2KHWpeXaGkQfyBnGAU0Dg204\""},{"key":"Date","value":"Sun, 18 May 2025 20:56:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Orphanage not found or already verified\"\n}"},{"id":"684a7273-8568-409f-b3a2-1bcd65ae8f33","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"verification_proof\": \"verified\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanages/1/verify"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-O8N4KVIiphCo6/IvxgTe5oMu1SQ\""},{"key":"Date","value":"Sun, 18 May 2025 20:57:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Orphanage verified successfully\"\n}"}],"_postman_id":"51811fcb-d360-4480-b4ac-33a3fbfd1411"},{"name":"view all orphanges","id":"3e698bbc-e79f-4148-a5d6-220dd88308a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/Allorphanages","description":"<p><strong>Fetches and returns a list of all orphanages. Access restricted to users with the admin role.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","Allorphanages"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"943102ee-9021-4b72-a5c7-964792f60ff2","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/Allorphanages"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 20:58:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"bb6fa13f-12e1-460f-b8cc-06bee8f4a64a","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/Allorphanages"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"464"},{"key":"ETag","value":"W/\"1d0-avEp8kieqz0HC2SILzXfdmymbzk\""},{"key":"Date","value":"Sun, 18 May 2025 20:59:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"All orphanages fetched\",\n    \"data\": [\n        {\n            \"orphanage_id\": 1,\n            \"name\": \"Hope House\",\n            \"location\": \"Accra, Ghana\",\n            \"phone_number\": \"0241234567\",\n            \"email\": \"hope@orphans.org\",\n            \"manager_name\": \"Grace Mensah\",\n            \"ads\": \"We need books and clothes.\",\n            \"ads_category\": \"Education\",\n            \"verification_proof\": \"verified\"\n        },\n        {\n            \"orphanage_id\": 2,\n            \"name\": \"kwn\",\n            \"location\": \"ns\",\n            \"phone_number\": \"55454\",\n            \"email\": \"HU@gmail.com\",\n            \"manager_name\": \"raya\",\n            \"ads\": \"\",\n            \"ads_category\": \"\",\n            \"verification_proof\": \"verified\"\n        }\n    ]\n}"}],"_postman_id":"3e698bbc-e79f-4148-a5d6-220dd88308a5"},{"name":"get_donations_by_orphanage","id":"88cda9b5-91bf-49b9-a111-5008c32ac562","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/orphanages/1","description":"<p><strong>Retrieves all donations made to a specific orphanage, identified by orphanage_id in the URL parameters. Access is restricted to admin users only.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","donations","orphanages","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b6448a78-82de-4239-a0da-cf5b39a53d2e","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/orphanages/5"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:00:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"5e641213-f545-4f2e-834d-7c2c5267c923","name":"No donations found for this orphanage","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/orphanages/5"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-rJUcubM6pO6pgyi1U6sbAl5UgWA\""},{"key":"Date","value":"Sun, 18 May 2025 21:01:47 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No donations found for this orphanage\"\n}"},{"id":"382eb105-b107-4d65-ab97-39adf7ae75e2","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/donations/orphanages/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"ETag","value":"W/\"3ee-zuXkOMk7eiObUprYl55veQF+EFQ\""},{"key":"Date","value":"Sun, 18 May 2025 21:02:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"donation_id\": 4,\n        \"donor_id\": 17,\n        \"amount\": \"200.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 6,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:30.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 7,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:33.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 8,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:27:24.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    }\n]"}],"_postman_id":"88cda9b5-91bf-49b9-a111-5008c32ac562"},{"name":"creat emergency","id":"4745a12c-0a8c-4021-8ffc-e30c8712a42d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"campaign_name\": \"clothes\",\r\n  \"description\": \"Providing clothes\",\r\n  \"goal_amount\": 10000,\r\n  \"start_date\":\"2025-06-28\",\r\n  \"end_date\": \"2025-06-30\",\r\n  \"status\": \"active\",\r\n  \"orphanage_id\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/campaigns","description":"<p>creat new emergency so donores can contributes(all the donores will notified )</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","campaigns"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ecb9e536-860b-46f1-9c84-be2d1480116b","name":"wrong token","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"campaign_name\": \"clothes\",\r\n  \"description\": \"Providing clothes\",\r\n  \"goal_amount\": 10000,\r\n  \"start_date\":\"2025-06-28\",\r\n  \"end_date\": \"2025-06-30\",\r\n  \"status\": \"active\",\r\n  \"orphanage_id\": 1\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/campaigns"},"status":"Unauthorized","code":401,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Access denied. No token provided.\"\r\n}"},{"id":"ff00de8d-71a4-4f9e-96d0-bd7c9d8787f4","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"campaign_name\": \"clothes\",\r\n  \"description\": \"Providing clothes\",\r\n  \"goal_amount\": 10000,\r\n  \"start_date\":\"2025-06-28\",\r\n  \"end_date\": \"2025-06-30\",\r\n  \"status\": \"active\",\r\n  \"orphanage_id\": 2\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/campaigns"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Emergency campaign created\",\r\n    \"campaign\": {\r\n        \"amount_raised\": 0,\r\n        \"status\": \"active\",\r\n        \"campaign_id\": 16,\r\n        \"campaign_name\": \"clothes\",\r\n        \"description\": \"Providing clothes\",\r\n        \"goal_amount\": 10000,\r\n        \"start_date\": \"2025-06-28T00:00:00.000Z\",\r\n        \"end_date\": \"2025-06-30T00:00:00.000Z\",\r\n        \"orphanage_id\": 2\r\n    }\r\n}"}],"_postman_id":"4745a12c-0a8c-4021-8ffc-e30c8712a42d"},{"name":"add orphan to orphange","id":"ef044f0f-1b00-4429-9caf-b22a3cf5e6b7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanage/1/5","description":"<p><strong>add orphan to spesific orphanage</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphanage","1","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a733f31e-c18b-436b-8f13-39b6aed84ebb","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/orphanage/1/6"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan assigned successfully\"\r\n}"}],"_postman_id":"ef044f0f-1b00-4429-9caf-b22a3cf5e6b7"},{"name":"delete orphan from orphange","id":"f36ba0dd-a1ab-4b67-b613-b7dcea6122cc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphanage/1/4","description":"<p><strong>delete orphan from spesific orphange</strong></p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","orphanage","1","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ddb85aa7-e3fa-45a0-8d2c-1d553b9d6a50","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphanage/1/4"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Orphan deleted successfully\"\r\n}"}],"_postman_id":"f36ba0dd-a1ab-4b67-b613-b7dcea6122cc"},{"name":"get_unassigned_physical_donations","id":"a5c6ee53-a89c-499f-b5b7-1aa40c95d318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/physical_donations","description":"<p><strong>Retrieves all physical donation details records where no driver is assigned (driver_id is null). Access restricted to admin users only.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","physical_donations"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a1c4cb1f-2744-4628-aa69-2f9714934280","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/physical_donations"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:04:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"94f1dd4a-3c0f-431f-a062-689b6b73d216","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/physical_donations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"129"},{"key":"ETag","value":"W/\"81-r/cTpBnuC/gyYf+BJkR+EICcjZA\""},{"key":"Date","value":"Sun, 18 May 2025 21:05:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"donation_id\": 3,\n        \"pickup_date\": \"2025-05-16\",\n        \"address\": \"Alquds street\",\n        \"description\": \"Clothes and food\",\n        \"driver_id\": null\n    }\n]"}],"_postman_id":"a5c6ee53-a89c-499f-b5b7-1aa40c95d318"},{"name":"Get All Drivers","id":"c70381d3-8ebc-4288-b2bb-2005dcb93f5e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/drivers","description":"<p><strong>Fetches all users with the role of 'driver'. Access is restricted to admin users.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","drivers"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1986553a-625b-4348-b430-9f3da5a553f1","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/drivers"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:09:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"fafc9822-f1ae-4d53-a0ef-81856c8d7d30","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/drivers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"440"},{"key":"ETag","value":"W/\"1b8-+JZbQ76HXZtwavK0AFRvqMclDsU\""},{"key":"Date","value":"Sun, 18 May 2025 21:09:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"user_id\": 3,\n        \"role\": \"driver\",\n        \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjozLCJyb2xlIjoic3BvbnNvciIsImlhdCI6MTc0NjIxNTY4MCwiZXhwIjoxNzQ2MjE5MjgwfQ.exbhUBDJsiyQbI1jw8-QAVSckJXjDho21HcovJXSr7g\",\n        \"name\": \"Ali\",\n        \"email\": \"ali@gmail.com\",\n        \"password\": \"$2b$10$Cf63cNughAayBku6C9/SwOVxu6/1aexM5d0vWFwyseGfCcOsfs/Ty\",\n        \"address\": null,\n        \"phone_number\": \"0544444\",\n        \"created_at\": \"2025-05-02T19:54:08.000Z\",\n        \"updated_at\": \"2025-05-18T21:09:13.000Z\"\n    }\n]"}],"_postman_id":"c70381d3-8ebc-4288-b2bb-2005dcb93f5e"},{"name":"assign driver to physical donation","id":"99f75403-8c51-46ac-86ed-9f9b45d6b355","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/1","description":"<p><strong>Allows an admin to assign a specific driver to a physical donation request that currently has no assigned driver.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","physical_donations","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1c8d9b93-7721-4b27-a581-1abf67b90a3f","name":"invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:10:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"00a8cf4c-c111-4e2d-a5e6-bfe39f1b57a9","name":"Not put driver id in the body","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-ggGXHRByfKFuS+I7dnstqA88CRU\""},{"key":"Date","value":"Sun, 18 May 2025 21:11:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"driverId is required.\"\n}"},{"id":"ca3084c9-a88b-44db-a793-e86e953ab7dd","name":"Driver not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-SIV0mK8tjOLFoxU7ZPt5DPd8NtQ\""},{"key":"Date","value":"Sun, 18 May 2025 21:14:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Driver not found.\"\n}"},{"id":"bf2ffa16-ee70-43e9-8552-ec2a78f793bb","name":"Physical donation not found","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/100"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-/G4jZSLl6CUCpOVSmECe5KUYiZ0\""},{"key":"Date","value":"Sun, 18 May 2025 21:15:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Physical donation detail not found.\"\n}"},{"id":"6043d91a-b60c-426c-8d07-4e8e5ee96d82","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/admin/physical_donations/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"186"},{"key":"ETag","value":"W/\"ba-OPgEjmkbZTPgwU4blpnzCdRLUDM\""},{"key":"Date","value":"Sun, 18 May 2025 21:16:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Driver assigned successfully.\",\n    \"updatedDonation\": {\n        \"id\": 1,\n        \"donation_id\": 3,\n        \"pickup_date\": \"2025-05-16\",\n        \"address\": \"Alquds street\",\n        \"description\": \"Clothes and food\",\n        \"driver_id\": 3\n    }\n}"}],"_postman_id":"99f75403-8c51-46ac-86ed-9f9b45d6b355"},{"name":"عرض كل طلبات الشراكة","id":"20e55948-a3ad-405f-bc63-6a25887950c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3001/hopeconnect/admin/allpartnership","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","allpartnership"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"73637acb-5385-4b6f-b6b8-164a61d3259d","name":"success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"http://localhost:3001/hopeconnect/partnerships/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"544"},{"key":"ETag","value":"W/\"220-8NhYr5Eu4Vx8dbF7VrQ8biPwh7w\""},{"key":"Date","value":"Tue, 20 May 2025 14:09:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 2,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 10,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:02:13.000Z\"\n        },\n        {\n            \"request_id\": 5,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 12,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:22:26.000Z\"\n        },\n        {\n            \"request_id\": 6,\n            \"user_id\": 12115246,\n            \"orphanage_id\": 12,\n            \"request_status\": \"Pending\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-20T12:39:52.000Z\"\n        }\n    ]\n}"}],"_postman_id":"20e55948-a3ad-405f-bc63-6a25887950c6"},{"name":"عرض طلبات الشراكة لدار ايتام معينة","id":"3172c85c-1e13-46f5-8717-82be6ee48741","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"17666b98-3a72-401e-8207-0af3a3947ca3","name":"not auth (not admin)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphanagePartnership/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"48"},{"key":"ETag","value":"W/\"30-EhHD4kYlARA1pS2Dl1GxYgqOzPU\""},{"key":"Date","value":"Tue, 20 May 2025 14:05:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only admin can view these requests\"\n}"},{"id":"128faeac-5ae6-4c1e-a783-f22627440e4b","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/orphanagePartnership/12"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"367"},{"key":"ETag","value":"W/\"16f-zeMsj6uRc0p8EjrHsNEfozydj6U\""},{"key":"Date","value":"Tue, 20 May 2025 14:07:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 5,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 12,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:22:26.000Z\"\n        },\n        {\n            \"request_id\": 6,\n            \"user_id\": 12115246,\n            \"orphanage_id\": 12,\n            \"request_status\": \"Pending\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-20T12:39:52.000Z\"\n        }\n    ]\n}"}],"_postman_id":"3172c85c-1e13-46f5-8717-82be6ee48741"},{"name":"عرض كل طلبات التطوع","id":"f74e5d91-4f66-43b4-b8b7-22e111883c52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"a9d5c48f-4ac1-44e7-870d-a8fe3f410029","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1506"},{"key":"ETag","value":"W/\"5e2-n+jPEbf8zOa6kmcIb9oA9VcV35A\""},{"key":"Date","value":"Tue, 20 May 2025 11:41:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 8,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Rejected\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T19:21:30.000Z\"\n        },\n        {\n            \"request_id\": 9,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T19:23:54.000Z\"\n        },\n        {\n            \"request_id\": 10,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T20:49:46.000Z\"\n        },\n        {\n            \"request_id\": 12,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T20:51:01.000Z\"\n        },\n        {\n            \"request_id\": 15,\n            \"orphanage_id\": 10,\n            \"user_id\": null,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-11T19:45:09.000Z\"\n        },\n        {\n            \"request_id\": 16,\n            \"orphanage_id\": 11,\n            \"user_id\": 12115243,\n            \"service_type\": \"Teaching\",\n            \"request_status\": \"Rejected\",\n            \"portfolio\": \"https://portfolio.com/cv\",\n            \"request_date\": \"2025-05-18T15:00:56.000Z\"\n        },\n        {\n            \"request_id\": 19,\n            \"orphanage_id\": 11,\n            \"user_id\": null,\n            \"service_type\": \"care\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"https://portfolio.com/cv\",\n            \"request_date\": \"2025-05-18T15:03:09.000Z\"\n        },\n        {\n            \"request_id\": 23,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115243,\n            \"service_type\": \"Medical Assistance\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"https://updated-link.com\",\n            \"request_date\": \"2025-05-20T10:17:25.000Z\"\n        }\n    ]\n}"},{"id":"9226a461-8241-4bfc-884b-84bd60d70fa0","name":"no auth (not admin )","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-RtQJTqISQ5lGh7/dYVKK6TDcGyE\""},{"key":"Date","value":"Tue, 20 May 2025 11:42:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only admin can view all requests.\"\n}"}],"_postman_id":"f74e5d91-4f66-43b4-b8b7-22e111883c52"},{"name":"عرض طلبات التطوع حسب الحالة لدار ايتام","id":"ffce1505-bffa-49b5-8cb9-3c288c70ff80","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Pending?orphanage_id=10","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Pending"],"host":["localhost"],"query":[{"key":"orphanage_id","value":"10"}],"variable":[]}},"response":[{"id":"3de6a6dd-dfa4-45f6-baa1-d323f9a1e05d","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Pending?orphanage_id=10","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Pending"],"query":[{"key":"orphanage_id","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"582"},{"key":"ETag","value":"W/\"246-5yV6ACcl2Zmn2KEu+AR1UpZvayE\""},{"key":"Date","value":"Tue, 20 May 2025 11:05:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 9,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T19:23:54.000Z\"\n        },\n        {\n            \"request_id\": 12,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T20:51:01.000Z\"\n        },\n        {\n            \"request_id\": 23,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115243,\n            \"service_type\": \"Medical Assistance\",\n            \"request_status\": \"Pending\",\n            \"portfolio\": \"https://updated-link.com\",\n            \"request_date\": \"2025-05-20T10:17:25.000Z\"\n        }\n    ]\n}"},{"id":"587437f3-285f-4aa3-a3c2-3eee13956352","name":"invalid status","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Pendinggggg?orphanage_id=10","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Pendinggggg"],"query":[{"key":"orphanage_id","value":"10"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-xO/1bPQU/LYapFf1sNkeG0v2zys\""},{"key":"Date","value":"Tue, 20 May 2025 11:37:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid request status\"\n}"},{"id":"d10053a8-48c7-479c-b122-4d8e43415bbb","name":"approved success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved?orphanage_id=10","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Approved"],"query":[{"key":"orphanage_id","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"382"},{"key":"ETag","value":"W/\"17e-ZAQDMFLSt8Knyvc87v5cyYVWOTg\""},{"key":"Date","value":"Tue, 20 May 2025 11:38:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 10,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T20:49:46.000Z\"\n        },\n        {\n            \"request_id\": 15,\n            \"orphanage_id\": 10,\n            \"user_id\": null,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-11T19:45:09.000Z\"\n        }\n    ]\n}"},{"id":"1a6fe8b8-317f-4ec2-a5bf-388f84c177b4","name":"rejected success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Rejected?orphanage_id=10","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Rejected"],"query":[{"key":"orphanage_id","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"199"},{"key":"ETag","value":"W/\"c7-s5SVubaIIEGsHOplU+xkcByNsu0\""},{"key":"Date","value":"Tue, 20 May 2025 11:38:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 8,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Rejected\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T19:21:30.000Z\"\n        }\n    ]\n}"}],"_postman_id":"ffce1505-bffa-49b5-8cb9-3c288c70ff80"},{"name":"عرض جميع الفرص المفتوحة","id":"e324d059-7b25-4fbc-b948-7b11f3c0bec8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","opportunities","open"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"588b4df5-664c-493d-8b40-32a51b0fe689","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1431"},{"key":"ETag","value":"W/\"597-98WdzcSO5Pc6GvRxLVuWtJYnLxg\""},{"key":"Date","value":"Mon, 19 May 2025 23:00:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"opportunity_id\": 9,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-19T14:12:24.000Z\"\n    },\n    {\n        \"opportunity_id\": 8,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:31.000Z\"\n    },\n    {\n        \"opportunity_id\": 7,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:02.000Z\"\n    },\n    {\n        \"opportunity_id\": 6,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:26.000Z\"\n    },\n    {\n        \"opportunity_id\": 5,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:09.000Z\"\n    },\n    {\n        \"opportunity_id\": 4,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:20:13.000Z\"\n    },\n    {\n        \"opportunity_id\": 3,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Teach\",\n        \"description\": \"We are looking for volunteers to teach children in our orphanage.\",\n        \"required_volunteers\": 5,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-09T19:41:08.000Z\"\n    }\n]"},{"id":"ae1568ea-50bb-4435-b752-bc6834ab37a7","name":"no open opportunities","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-2My+9fEo6SMRltiuYgftZokdiwk\""},{"key":"Date","value":"Mon, 19 May 2025 23:03:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No open opportunities found\"\n}"}],"_postman_id":"e324d059-7b25-4fbc-b948-7b11f3c0bec8"}],"id":"8614aaac-ca04-4882-933c-4c002cf77aae","_postman_id":"8614aaac-ca04-4882-933c-4c002cf77aae","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"Donors Dashboard for admin","item":[{"name":"Get all Donors dashboard","id":"be36a078-f7ac-4f00-95b4-fa0f9894bca9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/dashboard","description":"<p><strong>Retrieves summary statistics for the admin dashboard, including total number of donations, total donated amount, total donors, total orphanages, and counts of donations grouped by donation type. Access is restricted to admin users only.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","admin","dashboard"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"53d5f20c-3ac5-44f7-b509-19da85af9ab0","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/dashboard"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:16:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"3aa18887-67b6-4abc-bf7c-b51630640f56","name":"Success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/admin/dashboard"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"119"},{"key":"ETag","value":"W/\"77-HYdkMlq/qMy1b/xxV7pY3YdVTVI\""},{"key":"Date","value":"Sun, 18 May 2025 21:17:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"totalDonors\": 10,\n    \"totalDonations\": 10,\n    \"totalAmount\": 830,\n    \"totalOrphanages\": 2,\n    \"statusStats\": {\n        \"Physical\": 5,\n        \"Financial\": 5\n    }\n}"}],"_postman_id":"be36a078-f7ac-4f00-95b4-fa0f9894bca9"}],"id":"f5e6f58e-d4b7-4577-b4b4-2fdb131958a4","_postman_id":"f5e6f58e-d4b7-4577-b4b4-2fdb131958a4","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"emegency","item":[{"name":"get all campaign","id":"34dbf044-6e29-4f28-bd5c-c9d150bf63f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/emergency/campaigns","description":"<p>User can see all the camaigns so he can contribut and donates</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","emergency","campaigns"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"51d636d2-96c7-4504-bb7b-bb714f56dfc6","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/emergency/campaigns"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"[\r\n    {\r\n        \"campaign_id\": 14,\r\n        \"campaign_name\": \"clothes\",\r\n        \"description\": \"Providing clothes\",\r\n        \"goal_amount\": 10000,\r\n        \"amount_raised\": 0,\r\n        \"start_date\": \"2025-06-28\",\r\n        \"end_date\": \"2025-06-30\",\r\n        \"status\": \"active\",\r\n        \"orphanage_id\": 1\r\n    },\r\n    {\r\n        \"campaign_id\": 15,\r\n        \"campaign_name\": \"clothes\",\r\n        \"description\": \"Providing clothes\",\r\n        \"goal_amount\": 10000,\r\n        \"amount_raised\": 0,\r\n        \"start_date\": \"2025-06-28\",\r\n        \"end_date\": \"2025-06-30\",\r\n        \"status\": \"active\",\r\n        \"orphanage_id\": 1\r\n    },\r\n    {\r\n        \"campaign_id\": 16,\r\n        \"campaign_name\": \"clothes\",\r\n        \"description\": \"Providing clothes\",\r\n        \"goal_amount\": 10000,\r\n        \"amount_raised\": 0,\r\n        \"start_date\": \"2025-06-28\",\r\n        \"end_date\": \"2025-06-30\",\r\n        \"status\": \"active\",\r\n        \"orphanage_id\": 2\r\n    }\r\n]"}],"_postman_id":"34dbf044-6e29-4f28-bd5c-c9d150bf63f2"},{"name":"contribute","id":"5861b142-122f-48a0-9992-9b6431cd051c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 10000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/emergency/campaigns/6/contribute","description":"<h4 id=\"user-donor-can-contibut-in-the-campaign-and-donates\"><strong>User (donor) can contibut in the campaign and donates</strong></h4>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","emergency","campaigns","6","contribute"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"770bcb0b-ec86-4a55-b33e-bb13bf3fec0a","name":"Invalid  campaign","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 10000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/emergency/campaigns/60/contribute"},"status":"Bad Request","code":400,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Invalid or inactive campaign\"\r\n}"},{"id":"090dc601-02ce-4209-8fca-6a297b45845c","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"amount\": 10000\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/emergency/campaigns/14/contribute"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Donation accepted\",\r\n    \"acceptedAmount\": 10000,\r\n    \"excessReturned\": 0,\r\n    \"campaign\": {\r\n        \"campaign_id\": 14,\r\n        \"campaign_name\": \"clothes\",\r\n        \"description\": \"Providing clothes\",\r\n        \"goal_amount\": 10000,\r\n        \"amount_raised\": 10000,\r\n        \"start_date\": \"2025-06-28\",\r\n        \"end_date\": \"2025-06-30\",\r\n        \"status\": \"completed\",\r\n        \"orphanage_id\": 1\r\n    }\r\n}"}],"_postman_id":"5861b142-122f-48a0-9992-9b6431cd051c"}],"id":"fbda4f0d-65e2-4ed9-aeb6-0eba55bd8a00","_postman_id":"fbda4f0d-65e2-4ed9-aeb6-0eba55bd8a00","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"Orphange Manager","item":[{"name":"Get Donations for orphange by its manager","id":"b6748a64-be95-4a63-8775-347a87b7618d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/donations","description":"<p><strong>Fetches all donations for the orphanage by its manager, verifying the manager’s identity.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","manager","donations"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5b26593a-c91f-4de1-a9ab-76f138a33b44","name":"invalid token","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/donations"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:19:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"7539401d-113f-4068-9962-bb78d9bf4d3c","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/donations"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"ETag","value":"W/\"3ee-zuXkOMk7eiObUprYl55veQF+EFQ\""},{"key":"Date","value":"Sun, 18 May 2025 21:23:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"donation_id\": 4,\n        \"donor_id\": 17,\n        \"amount\": \"200.000\",\n        \"donation_date\": \"2025-05-18T00:00:00.000Z\",\n        \"donation_type\": \"Physical\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": \"\",\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 6,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:30.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 7,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:24:33.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    },\n    {\n        \"donation_id\": 8,\n        \"donor_id\": 17,\n        \"amount\": \"100.000\",\n        \"donation_date\": \"2025-05-18T16:27:24.000Z\",\n        \"donation_type\": \"Financial\",\n        \"payment_method\": null,\n        \"donation_status\": \"Pending\",\n        \"tracking_url\": null,\n        \"orphanage_id\": 1,\n        \"service_fee\": \"0.000\",\n        \"net_amount\": \"0.000\"\n    }\n]"},{"id":"ce53e298-6aa2-4bb8-86e3-80c4a27e70f0","name":"No donations found for this orphanage","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/donations"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-rJUcubM6pO6pgyi1U6sbAl5UgWA\""},{"key":"Date","value":"Sun, 18 May 2025 21:26:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No donations found for this orphanage\"\n}"}],"_postman_id":"b6748a64-be95-4a63-8775-347a87b7618d"},{"name":"Add impact report from orphange manager","id":"928041ae-a371-4ea9-935e-daa9a842990f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\": 6,\r\n  \"title\": \"Donation Usage Report\",\r\n  \"description\": \"School supplies were purchased for orphans.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/add-impact-report","description":"<p><strong>Adds an impact report to a donation and marks it as completed, ensuring the request is made by the orphanage manager responsible for that donation.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","manager","add-impact-report"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f7d47dc2-e3db-4376-8aab-c3eb6eed2863","name":"Created successfully","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\": 6,\r\n  \"title\": \"Donation Usage Report\",\r\n  \"description\": \"School supplies were purchased for orphans.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/add-impact-report"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"208"},{"key":"ETag","value":"W/\"d0-5ovyKBpmmqe62I/kwIpKnIl47xY\""},{"key":"Date","value":"Sun, 18 May 2025 21:36:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Report added and donation marked as complete\",\n    \"report\": {\n        \"report_id\": 1,\n        \"orphanage_id\": 1,\n        \"donation_id\": 6,\n        \"title\": \"Donation Usage Report\",\n        \"description\": \"School supplies were purchased for orphans.\"\n    }\n}"},{"id":"071b9b6f-270a-4a1a-b892-1ff100d7496d","name":"Donation not found","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\": 100,\r\n  \"title\": \"Donation Usage Report\",\r\n  \"description\": \"School supplies were purchased for orphans.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/add-impact-report"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"32"},{"key":"ETag","value":"W/\"20-2sERqg1nuBXvQSE3VjbJE2E4Cvs\""},{"key":"Date","value":"Sun, 18 May 2025 21:38:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation not found\"\n}"},{"id":"528ddfa9-879d-480e-8bbe-0e11330c697a","name":"Manager not authorized for this donation","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"donation_id\": 5,\r\n  \"title\": \"Donation Usage Report\",\r\n  \"description\": \"School supplies were purchased for orphans.\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/manager/add-impact-report"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-fbkVEFhxS/XXZd/Dt0iYfY7B4XY\""},{"key":"Date","value":"Sun, 18 May 2025 21:38:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not authorized to add a report to this donation\"\n}"}],"_postman_id":"928041ae-a371-4ea9-935e-daa9a842990f"},{"name":"approve /reject partnership request","id":"2f237ec4-88bf-4ecc-ab1b-9b6fcd9ba3bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"Approved\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request/5","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","partnerships","request","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"56773dc3-6f98-4479-8d36-9abc42f64b6b","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"Approved\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"ETag","value":"W/\"2b-uth8DkO8kR+HMyFj/jX6lNABAfw\""},{"key":"Date","value":"Tue, 20 May 2025 13:15:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request approved successfully\"\n}"},{"id":"9ebf80e2-4b18-4d23-aa9f-a3ea7e2cf6aa","name":"not allowed status","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"maybe\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"49"},{"key":"ETag","value":"W/\"31-2bLWV2X0Frk/CtJKNEGETLiXlIs\""},{"key":"Date","value":"Tue, 20 May 2025 13:30:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Status must be Approved or Rejected\"\n}"},{"id":"a580b6ae-9b2a-4b5c-8ec9-6d17fb16de84","name":"not found request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\": \"maybe\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request/10"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 13:31:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"}],"_postman_id":"2f237ec4-88bf-4ecc-ab1b-9b6fcd9ba3bb"},{"name":"get partnership request with status","id":"fc0e0623-2b3f-486a-b9ae-72ff4745f688","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approved","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","partnerships","requests"],"host":["localhost"],"query":[{"key":"status","value":"Approved"}],"variable":[]}},"response":[{"id":"ef0bbdaf-bc29-40da-a7a5-fc9aa7213e60","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approved","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","partnerships","requests"],"query":[{"key":"status","value":"Approved"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"191"},{"key":"ETag","value":"W/\"bf-A40soG0gVbrsVDUyhniKEvJFWW8\""},{"key":"Date","value":"Tue, 20 May 2025 13:36:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 2,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 10,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:02:13.000Z\"\n        }\n    ]\n}"},{"id":"f7faeeab-e8ab-47c8-9322-91b07df8cedb","name":"not allowed status","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approvedddd","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","partnerships","requests"],"query":[{"key":"status","value":"Approvedddd"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-TSM2bc/vlrGy8hrKvKCVoQpXF0A\""},{"key":"Date","value":"Tue, 20 May 2025 13:37:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid status value\"\n}"}],"_postman_id":"fc0e0623-2b3f-486a-b9ae-72ff4745f688"},{"name":"قبول طلب تطوع","id":"a7f26971-df6a-4318-b7d2-4cac12c6614a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/approve/10","description":"<p>The orphanage can accept volunteer request sent to it by volunteers.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-request","approve","10"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6f4ac375-b336-4138-ba4d-79ce83e5043b","name":"not auth (not orphanage )","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/approve/10"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-wDJ7Ba5gii02JLC+DWOnreH/4j8\""},{"key":"Date","value":"Tue, 20 May 2025 01:16:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can approve requests.\"\n}"},{"id":"017844e0-2714-46a2-80fd-a775c3d00e93","name":"no token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/approve/10"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 01:17:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"5f504d44-5b73-4cd4-9619-247cb7977cd5","name":"invalid token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/approve/10"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 01:19:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"95235097-2b00-40b5-9b14-2e49843f3b9e","name":"not found request","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/approve/50"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 01:23:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"}],"_postman_id":"a7f26971-df6a-4318-b7d2-4cac12c6614a"},{"name":"رفض طلب تطوع","id":"9e631c74-f931-4ae0-bfec-5bf7af23cc4a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/10","description":"<p>The orphanage can reject volunteer request sent to it by volunteers.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-request","reject","10"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8bdc046e-0a57-4e93-9c22-7599f55a8bb8","name":"invalid token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/10"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 01:05:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"93d498d1-2676-45d8-ada7-e97430062e43","name":"no token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/10"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 01:06:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"f8eeaff0-b9ba-4c9e-8418-72853dee2084","name":"success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-2cibBfzL63eASE698xTK5898JT8\""},{"key":"Date","value":"Tue, 20 May 2025 01:08:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Volunteer request rejected\"\n}"},{"id":"c02ed6e6-a78f-4c03-a148-6cf05c957f80","name":"no auth (not orphanage )","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/16"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-Xh+St6/xasOUk7TvhccF5OBZZaI\""},{"key":"Date","value":"Tue, 20 May 2025 01:16:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can reject requests.\"\n}"},{"id":"e3f78205-42cd-4c54-9414-f46e09ba2c7b","name":"not found request","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/reject/50"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 01:24:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"}],"_postman_id":"9e631c74-f931-4ae0-bfec-5bf7af23cc4a"},{"name":"عرض طلبات التطوع حسب الحاله","id":"0e2facd9-8db5-497a-a748-2f525f30f73b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved","description":"<p>The orphanage can see volunteer requests sent to it by volunteers according to request status (pending ,Approved , rejected ).</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-requests","Approved"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1ff56c6a-050b-4fde-98ad-e378d6350e85","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 00:58:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"abb12dfc-c428-411a-8caa-4a214b37d515","name":"no token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 00:58:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"e4f6d144-7db7-4a5c-8d10-bbaaf8aeb412","name":"invalid status","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approvedddd"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-xO/1bPQU/LYapFf1sNkeG0v2zys\""},{"key":"Date","value":"Tue, 20 May 2025 01:02:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid request status\"\n}"},{"id":"3cd78a01-3c44-4d8f-88b9-9aa7e03acf23","name":"no auth","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"ETag","value":"W/\"1b-iBx/SnAbP76moSKyn7jijRK2KE8\""},{"key":"Date","value":"Tue, 20 May 2025 01:03:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied\"\n}"},{"id":"1f115ff7-50c4-4986-9167-c76025d8252c","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-requests/Approved"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"382"},{"key":"ETag","value":"W/\"17e-ZAQDMFLSt8Knyvc87v5cyYVWOTg\""},{"key":"Date","value":"Tue, 20 May 2025 01:04:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 10,\n            \"orphanage_id\": 10,\n            \"user_id\": 12115236,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-07T20:49:46.000Z\"\n        },\n        {\n            \"request_id\": 15,\n            \"orphanage_id\": 10,\n            \"user_id\": null,\n            \"service_type\": \"teach\",\n            \"request_status\": \"Approved\",\n            \"portfolio\": \"have 2 years experience\",\n            \"request_date\": \"2025-05-11T19:45:09.000Z\"\n        }\n    ]\n}"}],"_postman_id":"0e2facd9-8db5-497a-a748-2f525f30f73b"},{"name":"عرض جميع الفرص المفتوحة","id":"73e57481-99b9-4e91-b469-6313dcf75672","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open","description":"<p>orphanage can see the opend volunteer opportunities that were presented</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","opportunities","open"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5e458cde-55cb-476d-a379-ab6454af8747","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1431"},{"key":"ETag","value":"W/\"597-98WdzcSO5Pc6GvRxLVuWtJYnLxg\""},{"key":"Date","value":"Mon, 19 May 2025 23:00:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"opportunity_id\": 9,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-19T14:12:24.000Z\"\n    },\n    {\n        \"opportunity_id\": 8,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:31.000Z\"\n    },\n    {\n        \"opportunity_id\": 7,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:02.000Z\"\n    },\n    {\n        \"opportunity_id\": 6,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:26.000Z\"\n    },\n    {\n        \"opportunity_id\": 5,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:09.000Z\"\n    },\n    {\n        \"opportunity_id\": 4,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:20:13.000Z\"\n    },\n    {\n        \"opportunity_id\": 3,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Teach\",\n        \"description\": \"We are looking for volunteers to teach children in our orphanage.\",\n        \"required_volunteers\": 5,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-09T19:41:08.000Z\"\n    }\n]"},{"id":"e61a1d7b-dadc-4a56-8208-918a7f6efea5","name":"no open opportunities","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-2My+9fEo6SMRltiuYgftZokdiwk\""},{"key":"Date","value":"Mon, 19 May 2025 23:03:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No open opportunities found\"\n}"}],"_postman_id":"73e57481-99b9-4e91-b469-6313dcf75672"},{"name":"انشاء فرصة تطوع","id":"4f232ca7-0e65-4093-9207-bdc4c72de5b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Health Support\",\r\n  \"description\": \"Provide medical help for children\",\r\n  \"required_volunteers\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/create","description":"<p>orphanages can creat an volunteer opportunity to a number volunteers according to it need  for specific services</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","opportunities","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dcecf62d-d1f3-4659-bebb-c689cd43c792","name":"no auth (wrong token )","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Health Support\",\r\n  \"description\": \"Provide medical help for children\",\r\n  \"required_volunteers\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/create"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-hPGSFWRagJ/ywv6+wE9RFpBZYOE\""},{"key":"Date","value":"Mon, 19 May 2025 14:04:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can create opportunities.\"\n}"},{"id":"34db1f8a-1838-448a-8f03-40784893da2d","name":"no token provide","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Health Support\",\r\n  \"description\": \"Provide medical help for children\",\r\n  \"required_volunteers\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/create"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Mon, 19 May 2025 14:11:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"0fb67009-0250-4f08-83aa-c54557136297","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Health Support\",\r\n  \"description\": \"Provide medical help for children\",\r\n  \"required_volunteers\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/create"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"258"},{"key":"ETag","value":"W/\"102-+LgoIUCaaS8aaOvRROVoszg6bDg\""},{"key":"Date","value":"Mon, 19 May 2025 14:12:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Volunteer opportunity created\",\n    \"opportunity\": {\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-19T14:12:24.388Z\",\n        \"opportunity_id\": 9,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3\n    }\n}"},{"id":"35cabaa0-084f-489c-a144-11b4f2bec532","name":"missing info in body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  //\"service_type\": \"Health Support\",\r\n  \"description\": \"Provide medical help for children\",\r\n  \"required_volunteers\": 3\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/create"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"37"},{"key":"ETag","value":"W/\"25-ScCwsGo9bCIGpcO4hjV6hoWATx0\""},{"key":"Date","value":"Mon, 19 May 2025 22:57:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Missing required fields\"\n}"}],"_postman_id":"4f232ca7-0e65-4093-9207-bdc4c72de5b1"},{"name":"تحديث حالة فرصة التطوع","id":"356c09a8-6d7d-40e8-bc57-16b320c95baa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"description":"<p>The orphanage can close or open the volunteer opportunities that are offered.</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"query":[],"variable":[]},"url":""},"response":[{"id":"54d6b11b-f590-4064-b68c-91ee419e016b","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Close\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"295"},{"key":"ETag","value":"W/\"127-qhaa4BWd3a6u7MiXLMsFL0JWt3U\""},{"key":"Date","value":"Mon, 19 May 2025 23:17:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity status updated successfully.\",\n    \"opportunity\": {\n        \"opportunity_id\": 1,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Teaching\",\n        \"description\": \"Looking for volunteers to teach children basic math and English.\",\n        \"required_volunteers\": 5,\n        \"status\": \"Close\",\n        \"created_at\": \"2025-05-07T21:48:08.000Z\"\n    }\n}"},{"id":"40c020bc-1790-4c8f-ab99-96b41e34e0f0","name":"invalid status","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Clooose\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"ETag","value":"W/\"38-OqmmAeWP5n7sivnpQgK7JvtcYcw\""},{"key":"Date","value":"Mon, 19 May 2025 23:19:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid status. Must be 'Open' or 'Close'.\"\n}"},{"id":"dec425f0-7602-4740-971d-bbe53fda60c2","name":"no token provide","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Close\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Mon, 19 May 2025 23:20:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"b41f2844-c915-4a74-8702-54d05f2afac4","name":"not own opportunity","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Close\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/3"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-gqcuUsE93/y3sUV6Pq6gGJpIgBg\""},{"key":"Date","value":"Mon, 19 May 2025 23:35:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only update your own opportunities.\"\n}"},{"id":"577692dc-46a9-432d-b2db-7c830f9106fe","name":"no auth (not orphanage )","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Close\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/3"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"60"},{"key":"ETag","value":"W/\"3c-JxPJtlZGbpg1E2SfyLNMR6RaUwA\""},{"key":"Date","value":"Mon, 19 May 2025 23:38:09 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can update opportunity status.\"\n}"},{"id":"d727d111-840b-451f-8f8a-84d9f0baba56","name":"not found opport","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"status\":\"Close\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/opportunities/update-status/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"36"},{"key":"ETag","value":"W/\"24-EqjcvNvue2GapgQf9g2d5d/o/1Y\""},{"key":"Date","value":"Mon, 19 May 2025 23:41:36 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity not found.\"\n}"}],"_postman_id":"356c09a8-6d7d-40e8-bc57-16b320c95baa"},{"name":"حذف فرصة تطوع","id":"2df666b5-9769-48ad-a9ab-7f7b1796fa75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/2","description":"<p>The orphanage can delete the volunteer opportunities that are offered.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","opportunities","opportunity","delete","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"741b4737-b2cd-44f0-8c5f-4733ae2d845c","name":"not found opport","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/2"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-IAIOhwCWvdk9eZuJoLOASPwde54\""},{"key":"Date","value":"Mon, 19 May 2025 23:42:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity not found\"\n}"},{"id":"ea007cf0-8c1d-4c6a-a3c4-80414b60460e","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/9"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-7Yh+f2DUxXLDCSn4fI7h8xe0qoA\""},{"key":"Date","value":"Mon, 19 May 2025 23:47:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity deleted successfully\"\n}"},{"id":"d1179412-0595-455d-86b6-a84f768ccdd9","name":"no token","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/9"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Mon, 19 May 2025 23:47:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"7db6b6ef-e7e5-479a-bf91-0e33cad00563","name":"not own opport","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/3"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"57"},{"key":"ETag","value":"W/\"39-k3t2NjHVCd891T8Xjl+MXAPf5es\""},{"key":"Date","value":"Tue, 20 May 2025 00:03:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only delete your own opportunities.\"\n}"},{"id":"c6f79cad-d7d3-4b91-bb1c-8d542547ffdf","name":"no auth to delete","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/opportunity/delete/3"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-1GMojMgrgXbJYPo+HwmMjfJ9Wuc\""},{"key":"Date","value":"Tue, 20 May 2025 00:04:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can delete opportunities.\"\n}"}],"_postman_id":"2df666b5-9769-48ad-a9ab-7f7b1796fa75"},{"name":"قبول طلب تطوع لفرصة","id":"e9db3246-1898-4e0e-b32d-5bf8d5e4d9d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/4","description":"<p>The orphanage can accept volunteer request for the volunteering opportunity that has been offered.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer-application","approve","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d5673333-91fe-495c-baa7-da9e95ac6d82","name":"not found appication","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-q6mt9d3Y8zTVTp4nW48t8100B04\""},{"key":"Date","value":"Tue, 20 May 2025 00:30:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application not found\"\n}"},{"id":"5b4dd528-0478-4b8f-9de0-e3c90e14ff8c","name":"success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"221"},{"key":"ETag","value":"W/\"dd-6EY7Q/+BunGTIcoPNRYOEn9Q0NM\""},{"key":"Date","value":"Tue, 20 May 2025 00:32:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application approved successfully, and volunteer handled\",\n    \"application\": {\n        \"application_id\": 3,\n        \"user_id\": 12115236,\n        \"opportunity_id\": 1,\n        \"application_status\": \"Approved\",\n        \"application_date\": \"2025-05-09T22:17:34.000Z\"\n    }\n}"},{"id":"0ef1487d-b82c-44e1-b2cc-a9d5fdf20e6a","name":"not pending app","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"55"},{"key":"ETag","value":"W/\"37-sP3KXhHLJ+R8pZZflEA22KYWGX0\""},{"key":"Date","value":"Tue, 20 May 2025 00:33:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only pending applications can be approved\"\n}"},{"id":"98e8aa90-20cb-4720-afb9-cfd23ee88aa9","name":"no token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/2"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 00:37:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"19820d5e-8355-4fad-9a60-627702499094","name":"invalid token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 00:37:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"e78bdaba-65de-4068-a8af-9e9a05f244b5","name":"no auth (not orphange )","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/approve/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-ydkUYfiHP7jibwXVR3iu9W0s7QI\""},{"key":"Date","value":"Tue, 20 May 2025 00:40:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can approve applications\"\n}"}],"_postman_id":"e9db3246-1898-4e0e-b32d-5bf8d5e4d9d2"},{"name":"رفض طلب تطوع لفرصة","id":"f0dc94c0-6ed0-498b-a0c2-f71808eb8960","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/4","description":"<p>The orphanage can reject volunteer request for the volunteering opportunity that has been offered.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer-application","reject","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1efefe18-a695-4159-8c58-4f5824929570","name":"no auth (not orphanage )","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/4"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-mBRbmQj+T8JdH1Y3+eM1A9avaeU\""},{"key":"Date","value":"Tue, 20 May 2025 00:41:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can reject applications\"\n}"},{"id":"0c3fa4b3-8337-4916-84a2-f6e43ac2367b","name":"no token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/4"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 00:41:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"ecc9f0d1-4873-4bf4-a631-06476441b517","name":"invalid token","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/4"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 00:42:10 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"45b292c7-f68e-4c4f-92b2-59a948d9a9e7","name":"not found app","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-q6mt9d3Y8zTVTp4nW48t8100B04\""},{"key":"Date","value":"Tue, 20 May 2025 00:43:17 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application not found\"\n}"},{"id":"1bbe7ada-8e92-4a04-9954-b2ca8917e626","name":"success","originalRequest":{"method":"POST","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/reject/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"198"},{"key":"ETag","value":"W/\"c6-WUnuQFaITER8sSwAPGuszEZgNdQ\""},{"key":"Date","value":"Tue, 20 May 2025 00:46:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application rejected successfully\",\n    \"application\": {\n        \"application_id\": 2,\n        \"user_id\": 12115237,\n        \"opportunity_id\": 1,\n        \"application_status\": \"Rejected\",\n        \"application_date\": \"2025-05-09T22:14:59.000Z\"\n    }\n}"}],"_postman_id":"f0dc94c0-6ed0-498b-a0c2-f71808eb8960"},{"name":"عرض الطلبات لفرصة تطوع","id":"daecb1dd-ba44-4e96-8fed-de8b6586579b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/1/all","description":"<p>The orphanage can see volunteer requests for the volunteering opportunity that has been offered.</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer-application","opportunity","1","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3973be73-2f3d-41f9-8122-81e7bf939587","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/1/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"340"},{"key":"ETag","value":"W/\"154-RhDkIdPA0fHXgRfCPgH09VoQScA\""},{"key":"Date","value":"Tue, 20 May 2025 00:47:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Applications retrieved successfully\",\n    \"applications\": [\n        {\n            \"application_id\": 2,\n            \"user_id\": 12115237,\n            \"opportunity_id\": 1,\n            \"application_status\": \"Rejected\",\n            \"application_date\": \"2025-05-09T22:14:59.000Z\"\n        },\n        {\n            \"application_id\": 3,\n            \"user_id\": 12115236,\n            \"opportunity_id\": 1,\n            \"application_status\": \"Approved\",\n            \"application_date\": \"2025-05-09T22:17:34.000Z\"\n        }\n    ]\n}"},{"id":"21f08aec-ff89-4ee6-91f3-fec975f455d6","name":"not found apport","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/2/all"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-IAIOhwCWvdk9eZuJoLOASPwde54\""},{"key":"Date","value":"Tue, 20 May 2025 00:48:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity not found\"\n}"},{"id":"26890896-7d0e-40fd-8f27-b8f2e1aca415","name":"not own opport","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/3/all"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"71"},{"key":"ETag","value":"W/\"47-/qPGOZe0UvecWknWvD1glOjvjjY\""},{"key":"Date","value":"Tue, 20 May 2025 00:51:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only view applications for your own opportunities\"\n}"},{"id":"f908ee71-9194-4eeb-a0a8-30a8e4f93a13","name":"no auth (not orphanage)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/3/all"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"69"},{"key":"ETag","value":"W/\"45-qxipfO+220t17NdW5gXR/D5ZTYc\""},{"key":"Date","value":"Tue, 20 May 2025 00:53:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only orphanages can view applications for opportunities\"\n}"},{"id":"612580c2-21c5-4409-9088-24cbac4668cd","name":"no token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/3/all"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"47"},{"key":"ETag","value":"W/\"2f-ScLyqMBJaBy5Ex5VWs3mC1Ee3IU\""},{"key":"Date","value":"Tue, 20 May 2025 00:54:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Access denied. No token provided.\"\n}"},{"id":"d3c4e4c1-3951-4ee5-bf57-753c0bd28cc2","name":"invalid token","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/opportunity/3/all"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 00:56:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"}],"_postman_id":"daecb1dd-ba44-4e96-8fed-de8b6586579b"}],"id":"95cdefb5-ffc5-4ba1-9dd9-d38131e00f8f","_postman_id":"95cdefb5-ffc5-4ba1-9dd9-d38131e00f8f","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"orphanupdate","item":[{"name":"real time update","id":"79448f02-bad1-48de-a804-a09c75449f2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"Medical\",\r\n  \"description\": \"sick.\",\r\n  \"image_url\": \"https://via.placeholder.com/150\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/wellbeing/5\n","description":"<h4 id=\"user-can-see-a-real-time-updates-on-the-childs-well-being-photos-progress-reports-medical-updates\"><strong>user can see a Real-time updates on the child's well-being (photos, progress reports, medical updates).</strong></h4>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","wellbeing","5\n"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"02188874-d533-436b-ac54-08dc55ec2e3a","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"type\": \"Medical\",\r\n  \"description\": \"sick.\",\r\n  \"image_url\": \"https://via.placeholder.com/150\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/wellbeing/5\n"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Update added successfully\",\r\n    \"update\": {\r\n        \"update_id\": 4,\r\n        \"orphan_id\": \"5\\n\",\r\n        \"type\": \"Medical\",\r\n        \"description\": \"sick.\",\r\n        \"image_url\": \"https://via.placeholder.com/150\",\r\n        \"updatedAt\": \"2025-05-19T12:25:06.208Z\",\r\n        \"createdAt\": \"2025-05-19T12:25:06.208Z\"\r\n    }\r\n}"}],"_postman_id":"79448f02-bad1-48de-a804-a09c75449f2f"}],"id":"bd2f58fb-fc1f-4d78-a825-15966ebbf870","_postman_id":"bd2f58fb-fc1f-4d78-a825-15966ebbf870","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"Drivers","item":[{"name":"Get my tasks","id":"4db9f640-f5fa-4fe9-8ed5-697fab28537a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n"},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/mytasks/24","description":"<p><strong>Fetches all physical donation pickup tasks assigned to a specific driver by their ID.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","physicaldonations","mytasks","24"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"459810a8-2337-4b20-afaf-adbf39adfd43","name":"invalid token","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n"},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/mytasks/19"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:39:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"439222d5-d306-46bc-b85f-0cdd01053d19","name":"No tasks found for  driver","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n"},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/mytasks/19"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"45"},{"key":"ETag","value":"W/\"2d-fGqQmcpBN6HZoBh2CVA+fAggOe8\""},{"key":"Date","value":"Sun, 18 May 2025 21:40:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No tasks found for this driver.\"\n}"},{"id":"4b08d925-a44e-4ace-b425-cccb757fdb6e","name":"Success","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"driverId\": 19\r\n}\r\n"},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/mytasks/24"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"127"},{"key":"ETag","value":"W/\"7f-RqFfpL6sXbuSANBGAo4e+q97/iU\""},{"key":"Date","value":"Sun, 18 May 2025 21:41:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"donation_id\": 3,\n        \"pickup_date\": \"2025-05-16\",\n        \"address\": \"Alquds street\",\n        \"description\": \"Clothes and food\",\n        \"driver_id\": 24\n    }\n]"}],"_postman_id":"4db9f640-f5fa-4fe9-8ed5-697fab28537a"},{"name":"Update my donation receipt status","id":"67302b9e-cb21-4a46-92e0-6614cec9b8ab","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n\r\n  \"status\": \"Completed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/status/1","description":"<p><strong>Allows a driver to update the status of a physical donation assigned to them, ensuring proper authorization.</strong></p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","donations","physicaldonations","status","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2e2b631f-6ff7-4351-a060-9c4fcb484df4","name":"invalid token","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n\r\n  \"status\": \"Completed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/status/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Sun, 18 May 2025 21:43:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"e0e5f7a7-e5f9-4584-b0b6-6e8c805df1fe","name":"Success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n\r\n  \"status\": \"Completed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/status/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"53"},{"key":"ETag","value":"W/\"35-RuzfeoO4o4R7rvg1qOHfCY3dbwo\""},{"key":"Date","value":"Sun, 18 May 2025 21:44:41 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Donation status updated to 'Completed'.\"\n}"},{"id":"9afc20cc-4ea6-4ae3-a387-2c8be6b2454b","name":"Driver not assigned to donation","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n\r\n  \"status\": \"Completed\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/donations/physicaldonations/status/1"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-IEWdNJ6DIGkUw4aZvGdowBY3NGY\""},{"key":"Date","value":"Sun, 18 May 2025 21:46:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You are not assigned to this donation.\"\n}"}],"_postman_id":"67302b9e-cb21-4a46-92e0-6614cec9b8ab"}],"id":"d907b025-0d68-44aa-ab3f-61efa2aec02d","_postman_id":"d907b025-0d68-44aa-ab3f-61efa2aec02d","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"deliveries","item":[{"name":"track donation","id":"9060ffb2-c731-41a3-9a01-6a66ed3fe361","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": 1,\r\n  \"latitude\": 32.245,\r\n  \"longitude\": 35.25454\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/tracking/update-location","description":"<h4 id=\"mapping-system-for-real-time-tracking-of-deliveries-and-donations\">**Mapping system for real-time tracking of deliveries and donations</h4>\n<p>**</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","tracking","update-location"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6c2f1803-547f-4ef9-b524-b2c066936951","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"id\": 1,\r\n  \"latitude\": 32.245,\r\n  \"longitude\": 35.25454\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/tracking/update-location"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Location updated successfully\",\r\n    \"delivery\": {\r\n        \"id\": 1,\r\n        \"donation_id\": 7,\r\n        \"status\": \"pending\",\r\n        \"Latitude\": 32.245,\r\n        \"Longitude\": 35.25454,\r\n        \"createdAt\": \"2025-05-15T19:24:27.000Z\",\r\n        \"updatedAt\": \"2025-05-19T12:27:00.828Z\"\r\n    }\r\n}"}],"_postman_id":"9060ffb2-c731-41a3-9a01-6a66ed3fe361"}],"id":"70abf00b-397e-45a0-aaf2-e33fa10312e0","_postman_id":"70abf00b-397e-45a0-aaf2-e33fa10312e0","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"volunteer","item":[{"name":"عرض طلبات المتطوع","id":"47340362-4856-4e71-babe-a862d5f7d1ac","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/my-volunteer-requests","description":"<p>volunteer can show his all volunteer request to orphanages</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","my-volunteer-requests"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"1a42af24-635b-416f-907a-36b0306eb3da","name":"no auth (not volunteer)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/my-volunteer-requests"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"ETag","value":"W/\"3a-PsUutbFPA5aB0L7admO1pHPGAFE\""},{"key":"Date","value":"Tue, 20 May 2025 09:16:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only volunteers can view their own requests.\"\n}"},{"id":"e85f7cc1-3a89-4d6a-9aa7-6a33b406c38d","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/my-volunteer-requests"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"204"},{"key":"ETag","value":"W/\"cc-60LG7VhvV9XjKgGRZsUhNG+S1V4\""},{"key":"Date","value":"Tue, 20 May 2025 09:57:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 16,\n            \"orphanage_id\": 11,\n            \"user_id\": 12115243,\n            \"service_type\": \"Teaching\",\n            \"request_status\": \"Rejected\",\n            \"portfolio\": \"https://portfolio.com/cv\",\n            \"request_date\": \"2025-05-18T15:00:56.000Z\"\n        }\n    ]\n}"}],"_postman_id":"47340362-4856-4e71-babe-a862d5f7d1ac"},{"name":"تقديم طلب تطوع","id":"0727b89f-47c8-4f53-ab2c-922c71eb3706","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 10,\r\n  \"user_id\": 12115243,\r\n  \"service_type\": \"care\",\r\n  \"portfolio\": \"https://portfolio.com/cv\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request","description":"<p>volunteer can apply a volunteer request with his portfilo for specific service type to an orphanages</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-request"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ec576a99-c434-4c49-a2a8-dec951031cce","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 10,\r\n  \"user_id\": 12115243,\r\n  \"service_type\": \"care\",\r\n  \"portfolio\": \"https://portfolio.com/cv\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"236"},{"key":"ETag","value":"W/\"ec-6qFqnU4Dy5kt8W+vosrp+kWG9xE\""},{"key":"Date","value":"Tue, 20 May 2025 10:17:25 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Volunteer request submitted\",\n    \"request\": {\n        \"request_status\": \"Pending\",\n        \"request_date\": \"2025-05-20T10:17:25.645Z\",\n        \"request_id\": 23,\n        \"orphanage_id\": 10,\n        \"user_id\": 12115243,\n        \"service_type\": \"care\",\n        \"portfolio\": \"https://portfolio.com/cv\"\n    }\n}"},{"id":"f019ba9c-5a51-4379-98d1-e140e876b3d6","name":"missing info in body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  //\"orphanage_id\": 10,\r\n  \"user_id\": 12115243,\r\n  \"service_type\": \"care\",\r\n  \"portfolio\": \"https://portfolio.com/cv\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-+EwYwgObq2zWpULoO3bezrn7zHk\""},{"key":"Date","value":"Tue, 20 May 2025 10:18:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"error\": \"notNull Violation: VolunteerRequest.orphanage_id cannot be null\"\n}"},{"id":"3fc7f271-cd94-45c1-b26b-d8143ab7f1bc","name":"no auth (not volunteer )","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  //\"orphanage_id\": 10,\r\n  \"user_id\": 12115243,\r\n  \"service_type\": \"care\",\r\n  \"portfolio\": \"https://portfolio.com/cv\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-69UDmU9btXZgTJcFOqoKYfGvak4\""},{"key":"Date","value":"Tue, 20 May 2025 10:20:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only volunteers can submit requests.\"\n}"}],"_postman_id":"0727b89f-47c8-4f53-ab2c-922c71eb3706"},{"name":"تعديل طلب تطوع","id":"97f20d48-fb0b-419d-ace5-028c2fb8f7fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Medical Assistance\",\r\n  \"portfolio\": \"https://updated-link.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/update/22","description":"<p>volunteer can edit his volunteer request to an orphanage that submitted if and only if the request status is still pending</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-request","update","22"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"223cc360-fc7b-4e0b-bfad-ac29b0c844da","name":"not found request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Medical Assistance\",\r\n  \"portfolio\": \"https://updated-link.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/update/22"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 10:22:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"},{"id":"03da9854-0ea8-4730-8f34-b595aa13a6f0","name":"not own request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Medical Assistance\",\r\n  \"portfolio\": \"https://updated-link.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/update/12"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-dJsDP5i9y8Usjx/3nP/WPkC7ryU\""},{"key":"Date","value":"Tue, 20 May 2025 10:24:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only update your own request\"\n}"},{"id":"bb2f558c-9950-4a84-8ca0-4e2bf379dc03","name":"success","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Medical Assistance\",\r\n  \"portfolio\": \"https://updated-link.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/update/23"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"261"},{"key":"ETag","value":"W/\"105-5Le1IGsZn9WO+MWF3Zj4F79qy1c\""},{"key":"Date","value":"Tue, 20 May 2025 10:28:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Volunteer request updated successfully\",\n    \"request\": {\n        \"request_id\": 23,\n        \"orphanage_id\": 10,\n        \"user_id\": 12115243,\n        \"service_type\": \"Medical Assistance\",\n        \"request_status\": \"Pending\",\n        \"portfolio\": \"https://updated-link.com\",\n        \"request_date\": \"2025-05-20T10:17:25.000Z\"\n    }\n}"},{"id":"5ede0e4d-0e94-4a38-b1b7-2a4d73696da2","name":"not pending request","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"service_type\": \"Medical Assistance\",\r\n  \"portfolio\": \"https://updated-link.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/update/16"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-7aVcSiKCz7ST8/Ie+21/mMWEazE\""},{"key":"Date","value":"Tue, 20 May 2025 10:29:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cannot update request. Status is not Pending.\"\n}"}],"_postman_id":"97f20d48-fb0b-419d-ace5-028c2fb8f7fd"},{"name":"حذف طلب تطوع","id":"242b83ab-dd1e-4864-8676-b92289297ffd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/22","description":"<p>volunteer can delete a volunteer request to an orphanage only if the request status is pending</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer","volunteer-request","delete","22"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a2a734da-b9dc-40ff-9c04-2b43a8820754","name":"not pending request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/16"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-fejF23++VpikmQQ9bWiOaF7PKOQ\""},{"key":"Date","value":"Tue, 20 May 2025 10:30:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cannot delete request. Status is not Pending.\"\n}"},{"id":"3d8e2786-a104-49e8-8bfa-7908e5e11144","name":"not found request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/22"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 10:30:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"},{"id":"faffe662-c065-46c1-8129-c46a0b332ff9","name":"not own request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/9"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-1qjPzHmCFPqZI2eXj20sjz4lCsY\""},{"key":"Date","value":"Tue, 20 May 2025 10:39:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only delete your own request\"\n}"},{"id":"19743c9e-c8ae-46b0-a366-631ae8ec288d","name":"not pending request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/16"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-fejF23++VpikmQQ9bWiOaF7PKOQ\""},{"key":"Date","value":"Tue, 20 May 2025 10:41:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cannot delete request. Status is not Pending.\"\n}"},{"id":"2864cb64-137f-48d1-a570-1416184756b2","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer/volunteer-request/delete/17"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-lED8hetUvVz4PoPB9iMlvUOEUqQ\""},{"key":"Date","value":"Tue, 20 May 2025 10:42:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Volunteer request deleted successfully\"\n}"}],"_postman_id":"242b83ab-dd1e-4864-8676-b92289297ffd"},{"name":"عرض جميع الفرص المفتوحة","id":"003dea2d-6067-455c-82cf-b56f160378c8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open","description":"<p>StartFragmentThe volunteer can see the open volunteer opportunities offered by the orphanage.</p>\n","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","opportunities","open"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"170365d2-1047-4bec-ae6f-abc3d4dfc9f3","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1431"},{"key":"ETag","value":"W/\"597-98WdzcSO5Pc6GvRxLVuWtJYnLxg\""},{"key":"Date","value":"Mon, 19 May 2025 23:00:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"opportunity_id\": 9,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-19T14:12:24.000Z\"\n    },\n    {\n        \"opportunity_id\": 8,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:31.000Z\"\n    },\n    {\n        \"opportunity_id\": 7,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:23:02.000Z\"\n    },\n    {\n        \"opportunity_id\": 6,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:26.000Z\"\n    },\n    {\n        \"opportunity_id\": 5,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:22:09.000Z\"\n    },\n    {\n        \"opportunity_id\": 4,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Health Support\",\n        \"description\": \"Provide medical help for children\",\n        \"required_volunteers\": 3,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-18T22:20:13.000Z\"\n    },\n    {\n        \"opportunity_id\": 3,\n        \"orphanage_id\": 10,\n        \"service_type\": \"Teach\",\n        \"description\": \"We are looking for volunteers to teach children in our orphanage.\",\n        \"required_volunteers\": 5,\n        \"status\": \"Open\",\n        \"created_at\": \"2025-05-09T19:41:08.000Z\"\n    }\n]"},{"id":"9563412b-a993-4b07-98ff-bae97697d672","name":"no open opportunities","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/opportunities/open"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"41"},{"key":"ETag","value":"W/\"29-2My+9fEo6SMRltiuYgftZokdiwk\""},{"key":"Date","value":"Mon, 19 May 2025 23:03:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"No open opportunities found\"\n}"}],"_postman_id":"003dea2d-6067-455c-82cf-b56f160378c8"},{"name":"تقديم طلب لفرصة تطوع","id":"283b3e8e-9d84-4456-b11c-cb5acaab9b81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply","description":"<p>The volunteer can apply to an opened volunteer opportunities announced by the orphanage.EndFragment</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer-application","apply"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"207b0842-3c21-4c53-8338-7cc0dbdb99b8","name":"close opport","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 3\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-oRKtzBCGrOYhj6Ru2RjCO1ef4Vk\""},{"key":"Date","value":"Tue, 20 May 2025 00:07:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"This opportunity is not open for applications\"\n}"},{"id":"f82bd159-ffc3-4326-88ea-df61ae59a8d8","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 5\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"198"},{"key":"ETag","value":"W/\"c6-X9ueHamIsAfVPSI1/mZ925ahQS0\""},{"key":"Date","value":"Tue, 20 May 2025 00:09:54 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application submitted successfully\",\n    \"application\": {\n        \"application_status\": \"Pending\",\n        \"application_date\": \"2025-05-20T00:09:54.142Z\",\n        \"application_id\": 5,\n        \"user_id\": 12115243,\n        \"opportunity_id\": 5\n    }\n}"},{"id":"d47afd0e-76b5-4173-ba0f-4867de2cd3a8","name":"not found opport","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 20\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-IAIOhwCWvdk9eZuJoLOASPwde54\""},{"key":"Date","value":"Tue, 20 May 2025 00:11:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Opportunity not found\"\n}"},{"id":"06636dad-f1a8-41d6-972e-41a2561f1876","name":"duplicate apply for same opport","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 5\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"59"},{"key":"ETag","value":"W/\"3b-AyZlhKihPT6cyb5JHtaUzP0qTmM\""},{"key":"Date","value":"Tue, 20 May 2025 00:12:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You have already applied for this opportunity\"\n}"},{"id":"e96471e8-5577-455e-a43b-aaa86d22858f","name":"no auth (not volunteer )","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n \r\n  \"opportunity_id\": 5\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/volunteer-application/apply"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"39"},{"key":"ETag","value":"W/\"27-VjT5VGziupOhhSvoj3px3B4zJdg\""},{"key":"Date","value":"Tue, 20 May 2025 00:14:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only volunteers can apply\"\n}"}],"_postman_id":"283b3e8e-9d84-4456-b11c-cb5acaab9b81"},{"name":"حذف طلب تطوع لفرصة","id":"b0cbda84-746c-40ce-92b2-68d9e69717c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/delete/4","description":"<p>volunteer can delete a request for an volunteer opportunity if the request status is pending</p>\n","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","volunteer-application","delete","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a3d8ae3e-2495-4810-b355-588759cef683","name":"not found app","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/delete/4"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"35"},{"key":"ETag","value":"W/\"23-q6mt9d3Y8zTVTp4nW48t8100B04\""},{"key":"Date","value":"Tue, 20 May 2025 09:07:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application not found\"\n}"},{"id":"5d7bb8bb-f5ea-421c-89f5-144172ea1a2e","name":"not own app","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/delete/2"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-FPZAQ/gLP2oGh8erCixabGF44jg\""},{"key":"Date","value":"Tue, 20 May 2025 09:09:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You can only delete your own application\"\n}"},{"id":"1a4e5de4-7c3f-4ad4-8f34-f1ac267948c0","name":"not pending app","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/delete/5"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"54"},{"key":"ETag","value":"W/\"36-eVabo3QzPuWj4AuOzV4m/zU2tRk\""},{"key":"Date","value":"Tue, 20 May 2025 09:10:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only pending applications can be deleted\"\n}"},{"id":"502b7ae4-8bbd-4974-9f52-7d66ac9bd1db","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/volunteer-application/delete/5"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-l0Jov5Y5dOf3A8C8RGapPBtvaco\""},{"key":"Date","value":"Tue, 20 May 2025 09:12:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Application deleted successfully\"\n}"}],"_postman_id":"b0cbda84-746c-40ce-92b2-68d9e69717c4"}],"id":"562c44ee-4d64-4ab2-8bf4-a915a6b01ba7","_postman_id":"562c44ee-4d64-4ab2-8bf4-a915a6b01ba7","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}},{"name":"partnership","item":[{"name":"تقديم طلب شراكة","id":"13b8be70-8356-4891-813b-d50de488a9e7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 12,\r\n  \"verification_proof\": \"https://example.com/proof.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","partnerships","request"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8a76c69a-ce2d-41e6-b4be-6ba1227d4a49","name":"success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 12,\r\n  \"verification_proof\": \"https://example.com/proof.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"229"},{"key":"ETag","value":"W/\"e5-wyCdNGfjUFiXAYFVBoPXfSdr89o\""},{"key":"Date","value":"Tue, 20 May 2025 12:39:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Partnership request submitted\",\n    \"request\": {\n        \"request_status\": \"Pending\",\n        \"request_date\": \"2025-05-20T12:39:52.018Z\",\n        \"request_id\": 6,\n        \"user_id\": 12115240,\n        \"orphanage_id\": 12,\n        \"verification_proof\": \"https://example.com/proof.pdf\"\n    }\n}"},{"id":"aef52268-05d1-47f3-8c34-805f40982781","name":"duplicated partnership request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 12,\r\n  \"verification_proof\": \"https://example.com/proof.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"67"},{"key":"ETag","value":"W/\"43-6w0u2dWrbKz6HkMG8IuFhIj5gDU\""},{"key":"Date","value":"Tue, 20 May 2025 12:41:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"You already have a pending request for this orphanage\"\n}"},{"id":"0fccd8cf-7eae-46bd-af7a-58ed55697ae7","name":"not auth (not ngo,charity , .....)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"orphanage_id\": 12,\r\n  \"verification_proof\": \"https://example.com/proof.pdf\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3001/hopeconnect/partnerships/request"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"88"},{"key":"ETag","value":"W/\"58-WVMeTERjdrPYWEmduESqcfrn8m0\""},{"key":"Date","value":"Tue, 20 May 2025 12:46:22 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only NGOs ,charities or humanitarian organization can request partnerships\"\n}"}],"_postman_id":"13b8be70-8356-4891-813b-d50de488a9e7"},{"name":"عرض كل طلبات الشراكة لكل دار الايتام حسب الحالة","id":"2631ace4-7ef4-4199-9b7f-f14cea9577c7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approved","urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","partnerships","requests"],"host":["localhost"],"query":[{"key":"status","value":"Approved"}],"variable":[]}},"response":[{"id":"a914f25e-8ca8-4386-9f60-52012d17d9e8","name":"success","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approved","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","partnerships","requests"],"query":[{"key":"status","value":"Approved"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"191"},{"key":"ETag","value":"W/\"bf-A40soG0gVbrsVDUyhniKEvJFWW8\""},{"key":"Date","value":"Tue, 20 May 2025 13:36:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 2,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 10,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:02:13.000Z\"\n        }\n    ]\n}"},{"id":"00077989-c6fc-4dcb-9439-dd353531f739","name":"not allowed status","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3001/hopeconnect/partnerships/requests?status=Approvedddd","protocol":"http","host":["localhost"],"port":"3001","path":["hopeconnect","partnerships","requests"],"query":[{"key":"status","value":"Approvedddd"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"34"},{"key":"ETag","value":"W/\"22-TSM2bc/vlrGy8hrKvKCVoQpXF0A\""},{"key":"Date","value":"Tue, 20 May 2025 13:37:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid status value\"\n}"}],"_postman_id":"2631ace4-7ef4-4199-9b7f-f14cea9577c7"},{"name":"delete request","id":"febfe6f3-ee8c-4ff5-8614-a6b6a7b48ac8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"query":[],"variable":[]}},"response":[{"id":"e102ceea-9443-4ef3-aea0-90cc96444433","name":"success","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-yGFIhDQKJs+kKGIPEW12U24xSyE\""},{"key":"Date","value":"Tue, 20 May 2025 14:02:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request deleted successfully\"\n}"},{"id":"99f4a03e-b2cf-4f9e-b0ae-92cd69854223","name":"not auth (invalid token)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"28"},{"key":"ETag","value":"W/\"1c-AqTrOYQneqyg8cyPOXLtc5b/dz4\""},{"key":"Date","value":"Tue, 20 May 2025 13:56:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Invalid token.\"\n}"},{"id":"7bd58abc-67e3-4a9b-99eb-3394c8a00cf1","name":"not pending status","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request/2"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"50"},{"key":"ETag","value":"W/\"32-GtHhUkNPzHpIfor4mmnNwBlKuac\""},{"key":"Date","value":"Tue, 20 May 2025 13:58:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only pending requests can be deleted\"\n}"},{"id":"bbafb2d8-91bb-4a75-b1d6-391b5df5b57f","name":"not found request","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request/10"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"31"},{"key":"ETag","value":"W/\"1f-ZA5Mx7gxnepY0VzYnjtt5zIi4yw\""},{"key":"Date","value":"Tue, 20 May 2025 13:58:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Request not found\"\n}"},{"id":"bcdaee3f-b5e5-44a6-9112-1cf22126a4d7","name":"not auth (not own request)","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request/6"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"51"},{"key":"ETag","value":"W/\"33-1JyapK3w3KWyWJm0NjG84ezBy04\""},{"key":"Date","value":"Tue, 20 May 2025 14:00:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Not authorized to delete this request\"\n}"}],"_postman_id":"febfe6f3-ee8c-4ff5-8614-a6b6a7b48ac8"},{"name":"all my request to all orphange","id":"665c6cbe-5ab3-4e15-b162-553adc996cef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/request","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}},"urlObject":{"protocol":"http","port":"3001","path":["hopeconnect","partnerships","request"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a0992d1c-7468-4690-9119-1ed8f5e2f0f7","name":"not auth (not ngo ,.....)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/my"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"90"},{"key":"ETag","value":"W/\"5a-FNQKfoc64C32HiFTtW2WmG1t89U\""},{"key":"Date","value":"Tue, 20 May 2025 14:17:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Only NGOs وcharities or humanitarian organization can access their requests\"\n}"},{"id":"6dfbb1d1-d457-408f-a4ac-5649e65af953","name":"success","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3001/hopeconnect/partnerships/my"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-MyMtHWI372Qo606Rn9fRfnQT64g\""},{"key":"Date","value":"Tue, 20 May 2025 14:19:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"requests\": [\n        {\n            \"request_id\": 2,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 10,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:02:13.000Z\"\n        },\n        {\n            \"request_id\": 5,\n            \"user_id\": 12115240,\n            \"orphanage_id\": 12,\n            \"request_status\": \"Approved\",\n            \"verification_proof\": \"https://example.com/proof.pdf\",\n            \"request_date\": \"2025-05-17T21:22:26.000Z\"\n        }\n    ]\n}"}],"_postman_id":"665c6cbe-5ab3-4e15-b162-553adc996cef"}],"id":"c5a7aff7-9bbe-4579-9f7e-26269aa161d6","_postman_id":"c5a7aff7-9bbe-4579-9f7e-26269aa161d6","description":"","auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":true,"source":{"_postman_id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","id":"d5f37589-29f2-4e10-b6ec-f44e0cfed25f","name":"hopeconnect","type":"collection"}}}],"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"algorithm","value":"<algorithm>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"payload","value":"<payload>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]}},"event":[{"listen":"prerequest","script":{"id":"df1137b4-bc6d-4ce2-aa84-70c98c1339b0","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"83e55666-117c-4c86-a849-0c813c08121d","type":"text/javascript","packages":{},"exec":[""]}}]}