{"info":{"_postman_id":"38a165b4-739a-4c23-8fba-71fba506cea8","name":"Berbagi API","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"20104631","collectionId":"38a165b4-739a-4c23-8fba-71fba506cea8","publishedId":"2s93m4WMfM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-23T06:32:25.000Z"},"item":[{"name":"Home","item":[{"name":"Campaign","item":[{"name":"Get Campaigns List","id":"75a8ca78-f70e-4413-af4e-b85317b88bdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/campaigns?search=testsearch&page=1&direction=desc&sort=funds","description":"<h4 id=\"query-parameters\"><strong>QUERY PARAMETERS</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>search</code></td>\n<td><code>string</code></td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td><code>int</code></td>\n</tr>\n<tr>\n<td><code>sort</code></td>\n<td><code>funds, name, collected_funds</code></td>\n</tr>\n<tr>\n<td><code>direction</code></td>\n<td><code>asc, desc</code></td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["campaigns"],"host":["{{url}}"],"query":[{"key":"search","value":"testsearch"},{"key":"page","value":"1"},{"key":"direction","value":"desc"},{"key":"sort","value":"funds"}],"variable":[]}},"response":[{"id":"0408cddb-c8e6-4015-bd60-62745d9ecc45","name":"Get Campaign List","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://127.0.0.1:8000/api/v1/campaigns?search=test&page=1&order_by=asc","protocol":"http","host":["127","0","0","1"],"port":"8000","path":["api","v1","campaigns"],"query":[{"key":"search","value":"test"},{"key":"page","value":"1"},{"key":"order_by","value":"asc"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"current_page\": 1,\r\n    \"data\":\r\n    [{\r\n        \"id\": 1,\r\n        \"thumbnail_cover_url\": \"http://localhost/storage/1/image.png\",\r\n        \"name\": \"campaign name\",\r\n        \"description\": \"<p>This is description for a campaign</p>\",\r\n        \"slug\": \"donasi-testing\",\r\n        \"funds\": 300000,\r\n        \"collected_funds\": 200000,\r\n        \"donors\": 2,\r\n        \"closed_at\": \"2023-05-26T16:59:59.000000Z\"\r\n    },\r\n    {\r\n        \"id\": 2,\r\n        \"thumbnail_cover_url\": \"http://localhost/storage/1/image.png\",\r\n        \"name\": \"campaign name 2\",\r\n        \"description\": \"<p>This is description for a campaign</p>\",\r\n        \"slug\": \"donasi-testing\",\r\n        \"funds\": 100000,\r\n        \"collected_funds\": 50000,\r\n        \"donors\": 3,\r\n        \"closed_at\": \"2023-05-26T16:59:59.000000Z\"\r\n    }],\r\n    \"first_page_url\": \"http://localhost:8000/campaigns?page=1\",\r\n    \"from\": 1,\r\n    \"last_page\": 1,\r\n    \"last_page_url\": \"http://localhost:8000/campaigns?page=1\"\r\n}"}],"_postman_id":"75a8ca78-f70e-4413-af4e-b85317b88bdf"},{"name":"Get Campaign Detail","id":"a86abcdf-6e8f-4401-8d21-fb7d89fb23d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/campaigns/donation-slug","description":"<h4 id=\"path-variables\"><strong>PATH VARIABLES</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>slug</strong></td>\n<td>sebagai contoh:  <br /><strong>slug</strong> disini berisi \"<strong>donation-slug</strong>\"</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["campaigns","donation-slug"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"4c34e17b-7cb2-412c-9ed0-dcd0ba02cd31","name":"Get Campaign Detail","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/campaigns/donation-slug"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"data\": {\r\n        \"id\": 1,\r\n        \"thumbnail_cover_url\": \"http://localhost/storage/1/image.png\",\r\n        \"name\": \"campaign name\",\r\n        \"description\": \"<p>this is description for a campaign</p>\",\r\n        \"slug\": \"donasi-testing\",\r\n        \"funds\": 300000,\r\n        \"collected_funds\": 200000,\r\n        \"donors\": 2,\r\n        \"closed_at\": \"2023-05-26T16:59:59.000000Z\"\r\n    }\r\n}"}],"_postman_id":"a86abcdf-6e8f-4401-8d21-fb7d89fb23d3"},{"name":"Get Donors List","id":"1d5fb031-b9b9-4665-a80c-5b083471cad0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/campaigns/donasi-slug/donors","description":"<h4 id=\"path-variables\"><strong>PATH VARIABLES</strong></h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th></th>\n<th></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>slug</strong></td>\n<td>sebagai contoh:  <br /><strong>slug</strong> disini berisi \"<strong>donation-slug</strong>\"</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["campaigns","donasi-slug","donors"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"2411cc45-f5d0-4b82-bc33-752e8b367e99","name":"Get Donors List","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/campaigns/donasi-slug/donors"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"data\": [\n        {\n            \"id\": 2,\n            \"created_at\": \"2023-05-25T01:29:11.000000Z\",\n            \"anonymous\": 0,\n            \"message\": \"aku tidak menyembunyikan nama\",\n            \"total\": 100123,\n            \"donor_name\": \"amda23\"\n        },\n        {\n            \"id\": 1,\n            \"created_at\": \"2023-05-23T08:32:01.000000Z\",\n            \"anonymous\": 1,\n            \"message\": null,\n            \"total\": 15123,\n            \"donor_name\": \"Hamba Allah\"\n        }\n    ]\n    \n}"}],"_postman_id":"1d5fb031-b9b9-4665-a80c-5b083471cad0"},{"name":"Donation","id":"5f75ccc1-9573-437c-9d87-a49723bcb360","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 20000,\r\n    \"name\": \"myname\",\r\n    \"email\": \"myname@example.com\",\r\n    \"message\": \"semoga sukses\",\r\n    \"anonymous\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/transaction/donasi-slug/create-transaction","urlObject":{"path":["transaction","donasi-slug","create-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"91fc93cf-da43-482a-aa88-f7f46e96e11e","name":"Donation","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"amount\": 20000,\r\n    \"name\": \"myname\",\r\n    \"email\": \"myname@example.com\",\r\n    \"message\": \"semoga sukses\",\r\n    \"anonymous\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/api/v1/transaction/donasi-slug/create-transaction"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"data\": {\r\n        \"payment_url\": \"https://xenditfake.xendit.co/web/xenditpaymentinvoice\",\r\n        \"expiry_date\": \"2023-05-26T02:41:22.791Z\",\r\n        \"status\": \"PENDING\",\r\n        \"amount\": 10000,\r\n        \"description\": \"Campaign Title\",\r\n        \"invoice_id\": \"INV-2023052600066\"\r\n    }\r\n}"}],"_postman_id":"5f75ccc1-9573-437c-9d87-a49723bcb360"},{"name":"Get Donation Detail","id":"9eae1740-24ed-4039-b892-455cf94271a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{url}}/transaction/INV-YourInvoice/get-transaction","urlObject":{"path":["transaction","INV-YourInvoice","get-transaction"],"host":["{{url}}"],"query":[],"variable":[]}},"response":[{"id":"371f7cc0-2b41-4f94-8051-9cd60446db55","name":"Get Donation Detail","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/api/v1/transaction/INV-YourInvoice/get-transaction"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\r\n    \"data\":\r\n        {\r\n            \"message\": \"success get transaction status\",\r\n            \"status\": \"PAID\"\r\n        }\r\n}"}],"_postman_id":"9eae1740-24ed-4039-b892-455cf94271a2"}],"id":"2523e63a-c17c-4d3d-b406-dd6a8bdbbc78","_postman_id":"2523e63a-c17c-4d3d-b406-dd6a8bdbbc78","description":""},{"name":"User","item":[{"name":"Get User Donations","id":"7f60716a-9a68-4b82-be6f-3f484cc59cfb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"{{url}}/my-transactions?page=1","urlObject":{"path":["my-transactions"],"host":["{{url}}"],"query":[{"key":"page","value":"1"}],"variable":[]}},"response":[{"id":"56011ebb-d78f-4066-98bc-3faac037339b","name":"Get User Donations","originalRequest":{"method":"GET","header":[],"url":{"raw":"{{url}}/my-transactions?page=1","host":["{{url}}"],"path":["my-transactions"],"query":[{"key":"page","value":"1"}]}},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"paid_transaction_total\": \"25123\",\n    \"transactions\": {\n        \"current_page\": 1,\n        \"data\": [\n            {\n                \"id\": 4,\n                \"message\": null,\n                \"total\": 25123,\n                \"status\": \"PAID\",\n                \"campaign\": {\n                    \"name\": \"wq\",\n                    \"slug\": \"aaeqe\",\n                    \"thumbnail_cover_url\": \"http://localhost/storage/1/image.png\"\n                }\n            },\n            {\n                \"id\": 3,\n                \"message\": \"Tetap semangat dan sehat selalu\",\n                \"total\": 25123,\n                \"status\": \"EXPIRED\",\n                \"campaign\": {\n                    \"name\": \"wq\",\n                    \"slug\": \"aaeqe\",\n                    \"thumbnail_cover_url\": \"http://localhost/storage/1/image.png\"\n                }\n            }]\n    },\n    \"first_page_url\": \"http://localhost:8000/my-transactions?page=1\",\n    \"from\": 1,\n    \"last_page\": 1,\n    \"last_page_url\": \"http://localhost:8000/my-transactions?page=1\"\n}"}],"_postman_id":"7f60716a-9a68-4b82-be6f-3f484cc59cfb"}],"id":"1c452134-d7fd-42c6-833e-27d15e6cf9ff","_postman_id":"1c452134-d7fd-42c6-833e-27d15e6cf9ff","description":""}],"id":"46a74735-6e2f-4216-8b01-ae2204178e75","_postman_id":"46a74735-6e2f-4216-8b01-ae2204178e75","description":""},{"name":"Admin","item":[{"name":"Program","item":[],"id":"eb414c6f-1535-4790-bad7-6d94c186b10a","_postman_id":"eb414c6f-1535-4790-bad7-6d94c186b10a","description":""}],"id":"bdb2d43d-70bd-4a47-9f03-9b9a2b86dbfb","_postman_id":"bdb2d43d-70bd-4a47-9f03-9b9a2b86dbfb","description":""}]}