{ "uuid": "1f63d665-bc94-40dc-ab56-6453ea054fc2", "lastMigration": 29, "name": "Greenwire Public API", "endpointPrefix": "api/public", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "f4904f60-4916-4f81-b997-b52ce3bc2f3c", "documentation": "Return the upcoming events (e.g. start date >= today). Gets an array of `Event` object. Mandatory query param of **domain** determines the site / country the event belongs to.", "method": "get", "endpoint": "events", "responses": [ { "uuid": "cdd00420-c0fe-4e5a-96b4-7d7d382ca6f3", "body": "{\n \"body\": [\n {\n \"created\": \"\",\n \"description\": \"\",\n \"end_date\": \"\",\n \"groups\": [\n {\n \"name\": \"\",\n \"serial\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"location\": {\n \"city\": \"\",\n \"coordinates\": {\n \"latitude\": \"\",\n \"longitude\": \"\"\n },\n \"country\": \"\",\n \"postcode\": \"\",\n \"state\": \"\",\n \"streetname\": \"\"\n },\n \"modified\": \"\",\n \"name\": \"\",\n \"organizers\": [\n {\n \"serial\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"picture\": \"\",\n \"serial\": \"\",\n \"start_date\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "d0520bf7-f081-4496-a731-73f9ce812ff2", "documentation": "Get one `Event` object by specifying its UUID in the url path.", "method": "get", "endpoint": "events/:UUID", "responses": [ { "uuid": "5bfefd3c-aef3-453e-a132-edffc0a0aa71", "body": "{\n \"data\": {\n \"created\": \"\",\n \"description\": \"\",\n \"end_date\": \"\",\n \"groups\": [\n {\n \"name\": \"\",\n \"serial\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"location\": {\n \"city\": \"\",\n \"coordinates\": {\n \"latitude\": \"\",\n \"longitude\": \"\"\n },\n \"country\": \"\",\n \"postcode\": \"\",\n \"state\": \"\",\n \"streetname\": \"\"\n },\n \"modified\": \"\",\n \"name\": \"\",\n \"organizers\": [\n {\n \"serial\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"picture\": \"\",\n \"serial\": \"\",\n \"start_date\": \"\",\n \"uuid\": \"\"\n },\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "cfe753fa-8f30-4342-b6cf-c0cea26c2ace", "body": "{\n \"body\": {},\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {},\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 400, "label": "Not found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "5fe66a83-eafb-4a5c-b278-5c24521e86a7", "documentation": "Gets an array of `Group` object. Mandatory query param of **domain** determines the site / country the group belongs to.", "method": "get", "endpoint": "groups", "responses": [ { "uuid": "9277d856-64da-4b12-9cbd-ddb1c2fa626b", "body": "{\n \"body\": [\n {\n \"created\": \"\",\n \"description\": \"\",\n \"group_type\": \"{{oneOf (array 'Country group' 'Campaign Project group' 'Local group' 'Discussion group' 'Interest group' 'Skills-based group')}}\",\n \"location\": {\n \"city\": \"\",\n \"coordinates\": {\n \"latitude\": \"\",\n \"longitude\": \"\"\n },\n \"country\": \"\",\n \"postcode\": \"\",\n \"state\": \"\",\n \"streetname\": \"\"\n },\n \"mission\": \"\",\n \"modified\": \"\",\n \"name\": \"\",\n \"picture\": \"\",\n \"serial\": \"\",\n \"uuid\": \"\"\n }\n ],\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "464f087e-f1c9-4e0e-98e8-140d20666862", "documentation": "Get one `Group` object by specifying its UUID in the url path.", "method": "get", "endpoint": "groups/:UUID", "responses": [ { "uuid": "be442cf6-e6b7-4167-8a3e-f8bfeec55876", "body": "{\n \"data\": {\n \"created\": \"\",\n \"description\": \"\",\n \"group_type\": \"{{oneOf (array 'Country group' 'Campaign Project group' 'Local group' 'Discussion group' 'Interest group' 'Skills-based group')}}\",\n \"location\": {\n \"city\": \"\",\n \"coordinates\": {\n \"latitude\": \"\",\n \"longitude\": \"\"\n },\n \"country\": \"\",\n \"postcode\": \"\",\n \"state\": \"\",\n \"streetname\": \"\"\n },\n \"mission\": \"\",\n \"modified\": \"\",\n \"name\": \"\",\n \"picture\": \"\",\n \"serial\": \"\",\n \"uuid\": \"\"\n },\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "f8a4e730-7d6e-403d-a027-0ee815c5427d", "body": "{\n \"body\": {},\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {},\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 400, "label": "Not found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "05ca55f2-9e09-4cd3-bf2b-cd0bf145d2e4", "documentation": "Gets an array of `Volunteer` object. Mandatory query param of **domain** determines the site / country the volunteers are from.", "method": "get", "endpoint": "volunteers", "responses": [ { "uuid": "b6ad0e99-99f0-4108-b8bb-b4aaf86beef1", "body": "{\n \"body\": [\n {\n \"avatar\": \"\",\n \"locations\": [\n {\n \"country\": \"\"\n }\n ],\n \"uuid\": \"\"\n }\n ],\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "8351bbce-1587-48cb-9caa-314300392794", "documentation": "Get one specific `Volunteer` object by specifying its UUID in the url path.", "method": "get", "endpoint": "volunteers/:UUID", "responses": [ { "uuid": "c82ab3fb-da02-48b3-8a63-0c19925a9610", "body": "{\n \"body\": {\n \"avatar\": \"\",\n \"locations\": [\n {\n \"country\": \"\"\n }\n ],\n \"uuid\": \"\"\n },\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {\n \"limit\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 200, "label": "Successful response", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": true, "crudKey": "id" }, { "uuid": "66a35b89-a044-4836-9941-195f957911e3", "body": "{\n \"body\": {},\n \"header\": {\n \"code\": \"\",\n \"error\": \"\",\n \"id\": {{faker 'number.int' max=99999}},\n \"pagination\": {},\n \"resources\": \"{{oneOf (array 'group' 'groups' 'event' 'events' 'volunteer' 'volunteers')}}\",\n \"status\": {{faker 'number.int' max=99999}}\n }\n}", "latency": 0, "statusCode": 400, "label": "Not found", "headers": [{ "key": "Content-Type", "value": "application/json" }], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [{ "key": "", "value": "" }], "proxyResHeaders": [{ "key": "", "value": "" }], "data": [], "folders": [], "rootChildren": [ { "type": "route", "uuid": "f4904f60-4916-4f81-b997-b52ce3bc2f3c" }, { "type": "route", "uuid": "d0520bf7-f081-4496-a731-73f9ce812ff2" }, { "type": "route", "uuid": "5fe66a83-eafb-4a5c-b278-5c24521e86a7" }, { "type": "route", "uuid": "464f087e-f1c9-4e0e-98e8-140d20666862" }, { "type": "route", "uuid": "05ca55f2-9e09-4cd3-bf2b-cd0bf145d2e4" }, { "type": "route", "uuid": "8351bbce-1587-48cb-9caa-314300392794" } ] }