{
"uuid": "fe63bd8f-449a-4b77-b06d-17b31e39ea0c",
"lastMigration": 29,
"name": "trash nothing",
"endpointPrefix": "api/v1.2",
"latency": 0,
"port": 3000,
"hostname": "",
"routes": [
{
"uuid": "9abe2d7b-22d9-49ab-a90a-5167c68fdc6d",
"documentation": "List conversations",
"method": "get",
"endpoint": "conversations",
"responses": [
{
"uuid": "1654249f-c5b6-49f3-a28a-b415ee1f7f1c",
"body": "{\n \"conversations\": [\n {\n \"archived\": false,\n \"blocked\": false,\n \"conversation_id\": 38914,\n \"last_message_date\": \"2019-07-24T22:51:09\",\n \"messages\": [\n {\n \"content\": \"Here are some photos and the directions for pick up.\",\n \"date\": \"2019-07-24T22:29:10\",\n \"email_attachments\": [\n \"Directions and map.pdf\"\n ],\n \"from_user_id\": 2946512,\n \"message_id\": 10199633,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"subject\": \"Dining Table and 4 Chairs\",\n \"to_user_id\": 119458\n }\n ],\n \"num_unread_messages\": 1,\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n }\n ],\n \"num_unread\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The conversations and paging data.",
"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": "4f8281dc-cdc5-4389-8ef8-3cbdb21dee6e",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters.",
"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": "671aff83-1ee7-4f9e-8120-864a71257c90",
"documentation": "Mark all conversations as read",
"method": "put",
"endpoint": "conversations/mark-all-read",
"responses": [
{
"uuid": "95722704-8671-409a-a0f5-bcbb8bc8161f",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversations marked as read.",
"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": "8bd401ef-dfe6-4a85-a1cc-e8038cfab2c9",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid message_id.",
"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": "2225b69d-812d-4e88-b0d6-f611a67bb692",
"documentation": "Search conversations",
"method": "get",
"endpoint": "conversations/search",
"responses": [
{
"uuid": "70db6154-529d-49e6-be60-91a402549831",
"body": "{\n \"conversations\": [\n {\n \"archived\": false,\n \"blocked\": false,\n \"conversation_id\": 38914,\n \"last_message_date\": \"2019-07-24T22:51:09\",\n \"messages\": [\n {\n \"content\": \"Here are some photos and the directions for pick up.\",\n \"date\": \"2019-07-24T22:29:10\",\n \"email_attachments\": [\n \"Directions and map.pdf\"\n ],\n \"from_user_id\": 2946512,\n \"message_id\": 10199633,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"subject\": \"Dining Table and 4 Chairs\",\n \"to_user_id\": 119458\n }\n ],\n \"num_unread_messages\": 1,\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n }\n ],\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"search\": \"\"\n}",
"latency": 0,
"statusCode": 200,
"label": "The conversations and paging data.",
"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": "18c1964e-e098-4048-9bfb-ae460cbe1ece",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters.",
"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": "31df65f0-57db-4f5d-8f7f-98445a36c465",
"documentation": "Delete conversation",
"method": "delete",
"endpoint": "conversations/:conversation_id",
"responses": [
{
"uuid": "37485579-494b-4d0a-9f16-e7129a49e41a",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation deleted.",
"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": "43a7edf1-e6c7-4052-aeb7-abb420907092",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "67b66937-b112-41c8-af47-68f378c70f98",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "e8c9ca18-fdd8-4921-9b13-9eec46617d47",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation or message 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": "7c4774bf-c255-4432-b5fe-c5054f79d291",
"documentation": "Archive conversation",
"method": "put",
"endpoint": "conversations/:conversation_id/archive",
"responses": [
{
"uuid": "84388779-9361-4e9a-9b61-6aa794240fea",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation archived.",
"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": "b2fce954-06bb-4aaa-bca6-9c77422cf291",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "0d32cf5a-0667-449a-8e79-d0bbec765b80",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "a27ebd48-f426-4c8c-89f6-0256ec10be30",
"documentation": "Block conversation",
"method": "put",
"endpoint": "conversations/:conversation_id/block",
"responses": [
{
"uuid": "e565262c-2e1e-41ee-a775-a7c2e81c0fd0",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation blocked.",
"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": "a6ba78f1-b467-4762-b710-7eedd3b759a6",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Conversations with moderators cannot be blocked.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "2d3293ff-ec2e-4b5e-8010-df7c15220d91",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "422087c4-e8f7-4a52-b5c6-5d505df23adf",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "85fb819a-ffe5-4351-8a71-842f7945262a",
"documentation": "Mark conversation as read",
"method": "put",
"endpoint": "conversations/:conversation_id/mark-read",
"responses": [
{
"uuid": "ac320fec-519d-4582-9e2e-af46ea7441f9",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation marked as read.",
"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": "552275f3-0100-4e31-9ae4-38ff0d15cebd",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "1f2755e6-038e-4e45-9a5d-6456b4119a99",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "86b7ab76-0dcb-4c9f-a56b-c1175583221e",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation or message 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": "b2149c8b-fe7a-41aa-8a2c-6edd2807c2a3",
"documentation": "List conversation messages",
"method": "get",
"endpoint": "conversations/:conversation_id/messages",
"responses": [
{
"uuid": "1f698fe1-28e8-4cd7-bb93-2bc33055cad3",
"body": "{\n \"conversation\": {\n \"archived\": false,\n \"blocked\": false,\n \"conversation_id\": 38914,\n \"last_message_date\": \"2019-07-24T22:51:09\",\n \"messages\": [\n {\n \"content\": \"Here are some photos and the directions for pick up.\",\n \"date\": \"2019-07-24T22:29:10\",\n \"email_attachments\": [\n \"Directions and map.pdf\"\n ],\n \"from_user_id\": 2946512,\n \"message_id\": 10199633,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"subject\": \"Dining Table and 4 Chairs\",\n \"to_user_id\": 119458\n }\n ],\n \"num_unread_messages\": 1,\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n },\n \"messages\": [\n {\n \"content\": \"Here are some photos and the directions for pick up.\",\n \"date\": \"2019-07-24T22:29:10\",\n \"email_attachments\": [\n \"Directions and map.pdf\"\n ],\n \"from_user_id\": 2946512,\n \"message_id\": 10199633,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"subject\": \"Dining Table and 4 Chairs\",\n \"to_user_id\": 119458\n }\n ],\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The messages and page data. The conversation data is optional and is only returned if the include_conversation parameter is set.\n",
"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": "6986a112-c726-451d-866a-c829de5f2d3b",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "e98c08c6-734f-49b0-b359-fb2984d00520",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "33d35aae-e1cb-4566-89dc-fc12fc32e613",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "d276e90b-ffe2-4e7d-9ac6-3f8294a2da0e",
"documentation": "Reply to conversation",
"method": "post",
"endpoint": "conversations/:conversation_id/reply",
"responses": [
{
"uuid": "69d22e8c-aeb0-474c-abdb-6acb1a9b69e4",
"body": "{\n \"content\": \"Here are some photos and the directions for pick up.\",\n \"date\": \"2019-07-24T22:29:10\",\n \"email_attachments\": [\n \"Directions and map.pdf\"\n ],\n \"from_user_id\": 2946512,\n \"message_id\": 10199633,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"subject\": \"Dining Table and 4 Chairs\",\n \"to_user_id\": 119458\n}",
"latency": 0,
"statusCode": 200,
"label": "The new message sent to the conversation.",
"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": "cd0c9c56-ec59-44cc-ab01-29a1da686f20",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameters or duplicate reply or conversation is blocked.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "d2667435-ff87-44fd-aa99-01899ea92edf",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to reply to the conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "d05cedb9-894c-4e8a-9ffe-d773c1476039",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "06a77b1a-7f1c-48fd-a155-0f0ce2a654a9",
"documentation": "Report conversation",
"method": "post",
"endpoint": "conversations/:conversation_id/report",
"responses": [
{
"uuid": "f76b0f28-fe12-459b-84d7-24c6c5142b14",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation reported.",
"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": "511e5d98-d55d-43bc-aeff-6112a612df78",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Empty reason parameter.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "31e9874a-6b47-490a-a3c0-c7cd62b5e608",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to report the conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "c55f0b8d-9a92-4b91-a6ce-d0735d399a92",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "dd320e2e-af12-4f1e-940b-183d10a50714",
"documentation": "Unarchive conversation",
"method": "put",
"endpoint": "conversations/:conversation_id/unarchive",
"responses": [
{
"uuid": "2e0a5f1a-120c-4343-8de8-5609185ea255",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation unarchived.",
"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": "2123eece-36f8-4aea-be48-2d7a407c2cb1",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "0ad41a2b-cdff-4082-babb-38d784119a97",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "ca693a61-3e06-45b6-9738-6b89b745648b",
"documentation": "Unblock conversation",
"method": "put",
"endpoint": "conversations/:conversation_id/unblock",
"responses": [
{
"uuid": "edb61775-b423-4886-9d30-b49f5f3b71cf",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Conversation unblocked.",
"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": "6b1e9187-857c-4012-9c06-a5d802307ad7",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to modify this conversation.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "4161c010-7ec0-46d2-9abc-78528fa2491b",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Conversation 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": "6c9601a1-98cb-4aac-8115-073b069eb458",
"documentation": "Send feedback",
"method": "post",
"endpoint": "feedback",
"responses": [
{
"uuid": "71bcc245-ecf7-467e-84d1-28489de52d11",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The feedback has been sent.",
"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": "96eb4c29-e308-49f0-bec5-97888efff39b",
"documentation": "Search groups",
"method": "get",
"endpoint": "groups",
"responses": [
{
"uuid": "65eb3df8-4311-4b44-8a58-43353137704d",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"groups\": [\n {\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n }\n ],\n \"num_groups\": {{faker 'number.int' max=99999}},\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The groups and paging data.",
"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": "9f40dcbf-eaa5-4df2-814e-3caa22af40bd",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "9260e91e-5ce0-4dc0-b1c2-5b587b56bab2",
"documentation": "Retrieve multiple groups",
"method": "get",
"endpoint": "groups/multiple",
"responses": [
{
"uuid": "937529da-0e39-4b76-88ef-7164c06a8e8e",
"body": "[\n {\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The groups.",
"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": "e5f1d63b-4fef-4baf-951e-476698d2650e",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "ed1d0600-5ada-4ea3-bc57-697c106d04e0",
"documentation": "Join groups",
"method": "post",
"endpoint": "groups/subscribe",
"responses": [
{
"uuid": "b4d5e0e6-1dbd-4691-8f92-7404067ab1d4",
"body": "{\n \"groups\": [\n {\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n }\n ],\n \"over_group_limit\": {{faker 'datatype.boolean'}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The groups with updated membership data.",
"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": "35816594-0d88-451d-aef4-81f3281bdc63",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "5a1a7b6f-4d1d-4ed2-8e33-d6b5c6a09e7e",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Group 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": "3f47e349-c185-4a61-94c7-66ee26271010",
"documentation": "Retrieve a group",
"method": "get",
"endpoint": "groups/:group_id",
"responses": [
{
"uuid": "a82a219b-38be-44cb-b963-4cbcd803d039",
"body": "{\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n}",
"latency": 0,
"statusCode": 200,
"label": "The group.",
"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": "c6629ec3-4532-4ca7-930d-9f89221060ef",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Group 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": "aaa08fba-1a75-4e49-afa7-9d74539d4ed8",
"documentation": "Submit group answers",
"method": "post",
"endpoint": "groups/:group_id/answers",
"responses": [
{
"uuid": "1bc94e7a-c4b4-493f-8419-8c0df864d9e9",
"body": "{\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated group.",
"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": "a0e8119f-596c-450a-a29a-017de2d3d276",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid answers or questions were already answered or questions don't need to be answered.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "73b57c6b-0040-4a7b-bc55-ee9c0a4431ce",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Group 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": "b62fc383-6c7c-4d43-aa93-a7ef40858fae",
"documentation": "Contact group moderators",
"method": "post",
"endpoint": "groups/:group_id/contact",
"responses": [
{
"uuid": "8db4b820-939a-43ef-9943-8d6891b7a130",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Message was sent to moderators.",
"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": "e46eb33d-8f02-4d8b-a865-0d5f9f1a3cdb",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "f433ce65-dfb8-4950-a2f4-677f7f2e6629",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Group 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": "87f2b807-8b36-4292-a9be-ae4c821cff1d",
"documentation": "Leave a group",
"method": "post",
"endpoint": "groups/:group_id/unsubscribe",
"responses": [
{
"uuid": "f4f90fcb-55a4-4809-8eba-7642c0340329",
"body": "{\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n}",
"latency": 0,
"statusCode": 200,
"label": "Updated data about the group and the current users' membership.",
"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": "b67c4068-5eba-4727-9c61-d8557caf873e",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "The current user is not an active or pending member of the given group.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "f839c9b6-4117-4a6b-8575-3c718fe731b2",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Group 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": "998ca48b-7bcd-44c0-9bd3-618be886ffe3",
"documentation": "Create a photo",
"method": "post",
"endpoint": "photos",
"responses": [
{
"uuid": "d54606ac-f55c-49e1-81f0-c53300d4b2f0",
"body": "{\n \"photo_id\": \"987-423\",\n \"thumbnail\": {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-02/307731-20180119_155358.90x120.jpg\",\n \"width\": 90\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "Photo created.",
"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": "99c909db-122a-47ed-8d4c-012778c38b71",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid photo.",
"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": "2fb6c8ed-8eb6-43a2-85ed-8e4d20353d4b",
"documentation": "Retrieve multiple photos",
"method": "get",
"endpoint": "photos/multiple",
"responses": [
{
"uuid": "605011dc-396a-470c-9405-e9ee70001be2",
"body": "[\n {\n \"photo_id\": \"987-423\",\n \"thumbnail\": {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-02/307731-20180119_155358.90x120.jpg\",\n \"width\": 90\n }\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The photos.",
"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": "59bbcbac-db1c-44f7-a302-e73a1e933925",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "49c92c9f-dcaf-4bd5-98a5-e9e8c9a377f9",
"documentation": "Delete a photo",
"method": "delete",
"endpoint": "photos/:photo_id",
"responses": [
{
"uuid": "29f27858-96fe-46e6-ae35-5c9f61c6a36c",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Photo deleted.",
"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": "de2becc7-6b74-4a50-8adc-701e72fe3731",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid photo.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "f7e14f21-a535-405f-975e-73a2080b57b7",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to delete the photo.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "9720a5b4-0bf8-4b63-b28f-eff098d49f1f",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Photo 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": "bf1f3a3f-dd99-4d22-8745-818258f4ec7a",
"documentation": "Rotate a photo",
"method": "post",
"endpoint": "photos/:photo_id/rotate",
"responses": [
{
"uuid": "0481a873-d863-4c93-aadd-8874e7beb368",
"body": "{\n \"photo_id\": \"987-423\",\n \"thumbnail\": {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-02/307731-20180119_155358.90x120.jpg\",\n \"width\": 90\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "Photo rotated.",
"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": "839e6c20-d643-4976-a73d-bf20a82d426b",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid photo.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "f81f1e70-5b4e-4abb-b1f4-1883ae3a7d81",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to rotate the photo.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "95ea888f-4fb6-48cb-b4d1-84de6311a1fc",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Photo 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": "82093f1f-ed19-4d90-b1da-1e58290edd56",
"documentation": "List posts",
"method": "get",
"endpoint": "posts",
"responses": [
{
"uuid": "29ed4739-44f9-4914-bab1-13e7653fde4a",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"last_listings_view\": \"{{faker 'date.recent' 365}}\",\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "6b708b96-b547-431e-97eb-86f12eb2a5e4",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "7ce4c7e4-3840-49c4-883a-353b5c655350",
"documentation": "Submit a post",
"method": "post",
"endpoint": "posts",
"responses": [
{
"uuid": "c9c73bb9-166a-44f3-a8b7-c75f9db5837c",
"body": "{\n \"identifier\": \"\",\n \"message\": \"\",\n \"preference_key\": \"\",\n \"result\": \"\",\n \"session\": {}\n}",
"latency": 0,
"statusCode": 200,
"label": "Post submission result.",
"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": "6fa224ce-fcb9-4499-ad90-0d472817fee8",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "12027c31-0927-4602-9e86-9814771c4ae9",
"documentation": "List all posts",
"method": "get",
"endpoint": "posts/all",
"responses": [
{
"uuid": "79d45817-ae5a-4208-a5cb-568cb5e05878",
"body": "{\n \"posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ]\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts.",
"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": "1861a00e-3318-44bf-88f3-398e08d7cbe3",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "92bb99d7-acd0-42ed-9c45-01bf6e4dd3bc",
"documentation": "List all post changes",
"method": "get",
"endpoint": "posts/all/changes",
"responses": [
{
"uuid": "76d4f3d1-8663-44df-80bc-9f8b9251250c",
"body": "{\n \"changes\": [\n {\n \"date\": \"{{faker 'date.recent' 365}}\",\n \"post_id\": \"\",\n \"type\": \"\"\n }\n ]\n}",
"latency": 0,
"statusCode": 200,
"label": "The changes.",
"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": "22a5c706-59db-4081-94ef-ded88c89b10f",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "730f01eb-5140-4d57-941f-e9c29a4d0b1a",
"documentation": "Retrieve client.js",
"method": "get",
"endpoint": "posts/client.js",
"responses": [
{
"uuid": "c3291234-cf1b-4a47-9fcc-66ea75bfc6ee",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The client.js javascript file.",
"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": "e31a189c-1a43-4ea6-a395-fe97a77f1dc3",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid group IDs.",
"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": "b5645a79-4ae8-48a1-af97-84e3a4786b03",
"documentation": "Retrieve multiple posts",
"method": "get",
"endpoint": "posts/multiple",
"responses": [
{
"uuid": "8f83e85f-ee68-4130-b6ed-a0437f053762",
"body": "[\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The posts.",
"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": "0ca8c3df-49e1-41f4-be82-41f968cdad19",
"documentation": "Search posts",
"method": "get",
"endpoint": "posts/search",
"responses": [
{
"uuid": "13049e21-47cb-472e-88fd-aa10dbf88f36",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"Panasonic microwave oven in good working order 800 W power and turntable inside Has all the normal microwave functions plus grill elements for browning Comes with original instructions booklet It's an old microwave and could do with a bit of a clean, but still works very well\\n\",\n \"date\": \"2018-02-18T17:11:38\",\n \"footer\": null,\n \"group_id\": 81,\n \"latitude\": 42.961404,\n \"longitude\": -88.012586,\n \"outcome\": null,\n \"photos\": null,\n \"post_id\": 25997431,\n \"search_content\": \"Panasonic microwave oven in good working order 800 W power and turntable\",\n \"search_title\": \"Microwave Oven (Greenfield)\",\n \"title\": \"Microwave Oven (Greenfield)\",\n \"type\": \"offer\",\n \"user_id\": 82928\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "f6020279-2cab-448e-ac48-1dca8ca16e53",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "6db6cae5-023b-428d-b000-ffb31299b8fc",
"documentation": "Retrieve a post",
"method": "get",
"endpoint": "posts/:post_id",
"responses": [
{
"uuid": "c9958123-f6ab-42c1-b25c-3d9959d6f67e",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The post.",
"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": "c1d08177-f4cc-4f99-a2d8-38efb263a500",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "24ce0663-b16b-4b7c-aebe-4cf4c63d6302",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "bcb9cff9-c750-4593-85be-1a3104a65ffa",
"documentation": "Update a post",
"method": "put",
"endpoint": "posts/:post_id",
"responses": [
{
"uuid": "4f63814e-6eae-4a63-a272-b2daaee71305",
"body": "{\n \"identifier\": \"\",\n \"message\": \"\",\n \"preference_key\": \"\",\n \"result\": \"\",\n \"session\": {}\n}",
"latency": 0,
"statusCode": 200,
"label": "Post update result.",
"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": "8902dc47-1598-42d2-b817-170f1708794a",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "0f2029c2-495a-4e0d-a3e7-36059e0df8f3",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to edit the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "829d7616-1404-4659-9e51-6295debb2377",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "5e86d987-f1ce-4c09-b505-05ca228ecf74",
"documentation": "Delete a post bookmark",
"method": "delete",
"endpoint": "posts/:post_id/bookmark",
"responses": [
{
"uuid": "8fde8f5f-d0a7-4a82-b6d9-e991ab3c6555",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Bookmark deleted.",
"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": "819717a9-9c32-4f06-9879-549db793d81c",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "e1adeeb6-ae86-4169-8e11-a4cb382b06a4",
"documentation": "Bookmark a post",
"method": "put",
"endpoint": "posts/:post_id/bookmark",
"responses": [
{
"uuid": "b114346c-681b-48f1-b589-42bcb37468c1",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The post has been bookmarked.",
"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": "075e63e7-8317-499e-a578-4cd0c101b9dd",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to view the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "333648c4-c8dc-4710-86ae-c8794a7cfb79",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "0e198d0e-3898-440e-91a6-f763b0bd4400",
"documentation": "Retrieve post display data",
"method": "get",
"endpoint": "posts/:post_id/display",
"responses": [
{
"uuid": "cbc2748a-f66b-43a4-ab26-5b3398f6f32a",
"body": "{\n \"author\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"feedback\": {\n \"percent_positive\": 87.5,\n \"restriction\": \"no-recent-messages\",\n \"score\": 7\n },\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"reply_time\": 4850,\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n },\n \"author_offer_count\": {{faker 'number.int' max=99999}},\n \"author_posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ],\n \"author_wanted_count\": {{faker 'number.int' max=99999}},\n \"bookmarked\": {{faker 'datatype.boolean'}},\n \"feedback\": [\n {\n \"content\": \"Fred gave me a great antique table for my new apartment!\",\n \"date\": \"2020-03-01T12:01:22\",\n \"positive\": true,\n \"reviewer_user_id\": 9191,\n \"user_id\": 2946512\n }\n ],\n \"geolocate_bounds\": {\n \"default\": {\n \"northeast\": {\n \"latitude\": 52.8293255665,\n \"longitude\": -0.600956182\n },\n \"southwest\": {\n \"latitude\": 51.0025285305,\n \"longitude\": -3.5323240284\n }\n },\n \"limit\": {\n \"northeast\": {\n \"latitude\": 52.8293255665,\n \"longitude\": -0.600956182\n },\n \"southwest\": {\n \"latitude\": 51.0025285305,\n \"longitude\": -3.5323240284\n }\n }\n },\n \"groups\": [\n {\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n }\n ],\n \"post\": {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n },\n \"replied\": {{faker 'datatype.boolean'}},\n \"user_can_reply\": {{faker 'datatype.boolean'}},\n \"viewed\": {{faker 'datatype.boolean'}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The post and related data.",
"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": "ac997573-2e45-47d1-8b97-128a47154ea7",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "77832a9e-eb7b-47f4-a177-bf901c94699f",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "2b66abf1-78ae-41c5-b302-28ff9845e57b",
"documentation": "Flag a post",
"method": "post",
"endpoint": "posts/:post_id/flag",
"responses": [
{
"uuid": "592359c9-3532-41e1-9c19-1dc4eca41be6",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The post has been flagged.",
"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": "77310aff-cb4e-47d1-82b8-4092b667dd15",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid reason parameter or missing details.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "2936c649-64f8-48f9-b8de-ab149cf29404",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "50fa97c8-1215-482d-8d71-65bcfe3c37bc",
"documentation": "Map a post",
"method": "put",
"endpoint": "posts/:post_id/geolocate",
"responses": [
{
"uuid": "54d4e660-3ac6-42e4-9d88-a1225d4ae39b",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated post.",
"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": "36bafabd-307a-40d4-b692-cc9c1cd26650",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid latitude or longitude.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "5d3f3955-f007-4455-a7d8-d74390bce89f",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "a64354f0-8d95-4493-83f0-200df484a0ba",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "405c4b3c-5153-46c3-9cb9-67e2e2dfa7f5",
"documentation": "Promise an offer post",
"method": "put",
"endpoint": "posts/:post_id/promise",
"responses": [
{
"uuid": "c1c86462-dddd-46c9-ba11-291f55d269e5",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated post.",
"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": "3d1850f6-0d27-4cd3-819f-9de388e911fd",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "The post is not an offer post or the post has already been satisfied or withdrawn or expired.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "e711604b-fc81-4611-8afd-f1f439b58e46",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "aa7e7e37-7f0f-479c-a1a4-3dbe05dbff39",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "8e40c924-1558-4f5a-b32f-94850e8a9bc3",
"documentation": "Reply to a post",
"method": "post",
"endpoint": "posts/:post_id/reply",
"responses": [
{
"uuid": "3ed5cb29-b59a-4477-89b2-10e7cff7416a",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The reply has been sent.",
"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": "a770b4fd-e59b-409c-8abc-049004dda803",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing message parameter or post has been satisfied or withdrawn or expired or the post author is blocked.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "4f94e1b4-5ec7-48cb-ad80-c68dd8bcee9d",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to reply to the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "3ade7e3f-7c12-4119-b0c3-f7c52725840d",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "c2d5a60e-a87d-40ba-b472-8edc11602952",
"documentation": "Satisfy a post",
"method": "put",
"endpoint": "posts/:post_id/satisfy",
"responses": [
{
"uuid": "36839be9-a8aa-4a23-af73-ecdc868f5531",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated post.",
"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": "3bc787ee-b2ff-45bd-84fc-60e2f36429de",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid summary or the post is not an offer or wanted post or the post has been withdrawn or has expired.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "dc522531-7481-4162-a902-19a943bceb87",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "e9fba7e8-037c-46e7-b4de-bf1980d99838",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "a4a9ab47-a7cf-4057-b7a1-8a84da8f3305",
"documentation": "Share a post",
"method": "post",
"endpoint": "posts/:post_id/share",
"responses": [
{
"uuid": "709f7428-9983-46da-8b43-7f5028838f89",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Post shared.",
"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": "e4c918fa-013d-464a-96d0-830b95ce4be8",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "258e7626-bf0b-4beb-aa8a-9aba6bb84d67",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "1bd77ebf-5472-4046-9f67-ba0f45b08d04",
"documentation": "Unpromise an offer post",
"method": "put",
"endpoint": "posts/:post_id/unpromise",
"responses": [
{
"uuid": "81523dcf-1a78-4a1d-88ba-1e1facbc0464",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated post.",
"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": "2fdc2d5b-79d0-43d2-844d-332a67ac2f13",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "The post is not an offer post or the post has already been satisfied or withdrawn.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "a8225337-39bf-481c-8f4c-ee185ed6ae9f",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "8da9e8b5-3e45-4015-b8e8-ab34da4c88d2",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "c2b69697-4b2a-4134-b25c-4704528156b8",
"documentation": "Withdraw a post",
"method": "put",
"endpoint": "posts/:post_id/withdraw",
"responses": [
{
"uuid": "001f8910-bbda-4d62-84c2-1d87a3369c0f",
"body": "{\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated post.",
"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": "a400e95a-ad73-4c20-bacb-3e99b6f32d9f",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "The post is not an offer or wanted post or the post has already been satisfied or expired.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "bc4d2261-46cd-457a-b360-d32705bc69e8",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the post.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "78539a80-71c8-467c-b78e-db958b3343f2",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Post 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": "96f99190-93ec-4345-a607-7398e1fa315a",
"documentation": "List stories",
"method": "get",
"endpoint": "stories",
"responses": [
{
"uuid": "4025ed5a-192e-4c21-9a61-12ed7f41683a",
"body": "{\n \"stories\": [\n {\n \"content\": \"People helping people - it doesn't get better than this!\",\n \"date\": \"2020-04-25T10:26:32\",\n \"like_count\": 3,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"share_url\": \"https://trashnothing.com/story/7584\",\n \"story_id\": 7584,\n \"title\": \"Sharing is caring\",\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n }\n ]\n}",
"latency": 0,
"statusCode": 200,
"label": "The stories and paging data.",
"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": "be8a77b6-eece-4cae-bf25-0d91ccc1d085",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "657ed8e4-6601-412b-b55d-838672f4e5da",
"documentation": "Submit a story",
"method": "post",
"endpoint": "stories",
"responses": [
{
"uuid": "200eac92-de7b-49e0-b5a3-42604136fc0e",
"body": "{\n \"content\": \"People helping people - it doesn't get better than this!\",\n \"date\": \"2020-04-25T10:26:32\",\n \"like_count\": 3,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"share_url\": \"https://trashnothing.com/story/7584\",\n \"story_id\": 7584,\n \"title\": \"Sharing is caring\",\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The new story.",
"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": "99efbd49-a360-4246-821e-afa1e1a3dbbd",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "73eef329-197a-4788-b006-eb318e144b19",
"documentation": "Retrieve a story",
"method": "get",
"endpoint": "stories/:story_id",
"responses": [
{
"uuid": "20161869-b15b-4f93-9a34-ea5616978eda",
"body": "{\n \"content\": \"People helping people - it doesn't get better than this!\",\n \"date\": \"2020-04-25T10:26:32\",\n \"like_count\": 3,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"share_url\": \"https://trashnothing.com/story/7584\",\n \"story_id\": 7584,\n \"title\": \"Sharing is caring\",\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The story.",
"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": "f38789ec-1760-42e3-85c5-85af39f4c57c",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "Story is only visible to members.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "a2104af7-e2bd-4de5-a317-d5cab1c701f3",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Story 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": "f1b7b1f5-9e89-400d-b153-5c810386d64b",
"documentation": "Like a story",
"method": "put",
"endpoint": "stories/:story_id/like",
"responses": [
{
"uuid": "bc4e21db-647c-4cab-b238-308819360a75",
"body": "{\n \"content\": \"People helping people - it doesn't get better than this!\",\n \"date\": \"2020-04-25T10:26:32\",\n \"like_count\": 3,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"share_url\": \"https://trashnothing.com/story/7584\",\n \"story_id\": 7584,\n \"title\": \"Sharing is caring\",\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated story.",
"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": "d98f92b6-a70b-4a0d-8747-c037f7dcd77c",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Story 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": "151c211b-8c46-4b3b-8f9b-4c8a92b20a80",
"documentation": "Unlike a story",
"method": "put",
"endpoint": "stories/:story_id/unlike",
"responses": [
{
"uuid": "37fc87eb-0598-49d3-b224-d9ddd988587d",
"body": "{\n \"content\": \"People helping people - it doesn't get better than this!\",\n \"date\": \"2020-04-25T10:26:32\",\n \"like_count\": 3,\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"share_url\": \"https://trashnothing.com/story/7584\",\n \"story_id\": 7584,\n \"title\": \"Sharing is caring\",\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated story.",
"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": "8b8dc36f-55a9-4e9f-a6fd-79c878d5758e",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Story 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": "d3b1c016-7517-4f49-ad23-51666834fd63",
"documentation": "Record story viewed",
"method": "post",
"endpoint": "stories/:story_id/viewed",
"responses": [
{
"uuid": "ac6127af-25ef-499e-aec8-b56e2b969b11",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Story view was recorded.",
"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": "18b2fa32-f8ec-48b0-a306-3c3289d1f9b6",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Story 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": "a549e462-7b44-4af6-a80f-0a3f5bdfb789",
"documentation": "Retrieve current user",
"method": "get",
"endpoint": "users/me",
"responses": [
{
"uuid": "42b88008-a83f-4b75-ab7c-201c27bb464c",
"body": "{\n \"about_me\": \"I used to be an accountant but then I decided to become a pirate.\",\n \"country\": \"US\",\n \"digest\": \"6_hours\",\n \"digest_photos\": false,\n \"email\": {\n \"address\": \"johndoe@example.com\",\n \"bouncing\": false,\n \"spam_stop\": false,\n \"verified\": true\n },\n \"firstname\": \"Jack\",\n \"has_password\": false,\n \"last_listings_view\": \"2018-02-15T15:04:47\",\n \"lastname\": \"Carter\",\n \"location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge, CO, USA\",\n \"radius'\": 32186.88\n },\n \"member_since\": \"2009-09-25T14:20:01\",\n \"post_location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge\"\n },\n \"post_reminders\": true,\n \"profile_image\": \"https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon\",\n \"profile_image_source\": \"gravatar\",\n \"public_name\": false,\n \"public_post_sources\": [\n \"trashnothing\"\n ],\n \"show_all_group_posts\": true,\n \"signup\": \"2017-11-20T04:32:06\",\n \"special_notices\": true,\n \"user_id\": 119458,\n \"username\": \"captainjack\",\n \"uses_fair_offer_policy\": true,\n \"verified\": true\n}",
"latency": 0,
"statusCode": 200,
"label": "User data",
"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": "e8319079-6992-45c5-b162-d5d4c30a67c4",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "User 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": "124e6944-eb34-4532-a76d-ef3852677cfd",
"documentation": "Update current user",
"method": "put",
"endpoint": "users/me",
"responses": [
{
"uuid": "6ce72842-c014-4799-8447-462d6c2a4256",
"body": "{\n \"about_me\": \"I used to be an accountant but then I decided to become a pirate.\",\n \"country\": \"US\",\n \"digest\": \"6_hours\",\n \"digest_photos\": false,\n \"email\": {\n \"address\": \"johndoe@example.com\",\n \"bouncing\": false,\n \"spam_stop\": false,\n \"verified\": true\n },\n \"firstname\": \"Jack\",\n \"has_password\": false,\n \"last_listings_view\": \"2018-02-15T15:04:47\",\n \"lastname\": \"Carter\",\n \"location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge, CO, USA\",\n \"radius'\": 32186.88\n },\n \"member_since\": \"2009-09-25T14:20:01\",\n \"post_location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge\"\n },\n \"post_reminders\": true,\n \"profile_image\": \"https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon\",\n \"profile_image_source\": \"gravatar\",\n \"public_name\": false,\n \"public_post_sources\": [\n \"trashnothing\"\n ],\n \"show_all_group_posts\": true,\n \"signup\": \"2017-11-20T04:32:06\",\n \"special_notices\": true,\n \"user_id\": 119458,\n \"username\": \"captainjack\",\n \"uses_fair_offer_policy\": true,\n \"verified\": true\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated user data.",
"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": "e4dfaa7e-eb8a-4de7-875c-2052d95fbc9d",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid parameter.",
"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": "e1e12d50-3143-4eff-8c02-2b800809c068",
"documentation": "List current users' email alerts",
"method": "get",
"endpoint": "users/me/alerts",
"responses": [
{
"uuid": "a9b40fed-3a02-441e-a403-a3c570410bb8",
"body": "[\n {\n \"alert_id\": 7584,\n \"last_sent\": \"2018-02-16T12:58:51\",\n \"search\": \"table\",\n \"send_count\": 3,\n \"types\": [\n \"offer\"\n ],\n \"user_id\": 9191\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The users alerts.",
"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": "4d50673e-669f-481a-be40-0052ac8f34a0",
"documentation": "Create an email alert",
"method": "put",
"endpoint": "users/me/alerts",
"responses": [
{
"uuid": "12e5af3c-b848-4a35-ba65-9f0b09d2c32f",
"body": "{\n \"alert_id\": 7584,\n \"last_sent\": \"2018-02-16T12:58:51\",\n \"search\": \"table\",\n \"send_count\": 3,\n \"types\": [\n \"offer\"\n ],\n \"user_id\": 9191\n}",
"latency": 0,
"statusCode": 200,
"label": "The new alert.",
"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": "2a7b5bc9-1d89-4e8b-9428-fcd59d1b0ea7",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters or maximum number of alerts reached.",
"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": "8216d7ce-bf56-46ff-bc58-59ca4be48d7b",
"documentation": "Delete an email alert",
"method": "delete",
"endpoint": "users/me/alerts/:alert_id",
"responses": [
{
"uuid": "be0841ca-5f79-49e2-ac19-eadc8c7100f4",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Alert deleted.",
"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": "5ac876f6-7fb3-4c99-9f0b-19fe03c9d9b9",
"body": "",
"latency": 0,
"statusCode": 403,
"label": "The user doesn't have permission to access the alert.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "7fd98dfb-d228-41e5-8c30-397c6fccfdcb",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "Alert 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": "7c1087d4-066e-4b91-8877-1c5e815f8f37",
"documentation": "Change email address",
"method": "post",
"endpoint": "users/me/email",
"responses": [
{
"uuid": "26680c08-f763-4e07-9626-45cafffb7031",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "A verification email was sent to the new email address.",
"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": "d06622c7-bf87-4b13-b225-47cc9b107fa9",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid email address.",
"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": "2b04a448-1b0e-4c6f-96c9-c4be90c7d7a4",
"documentation": "Set users' email address as not bouncing",
"method": "put",
"endpoint": "users/me/email/not-bouncing",
"responses": [
{
"uuid": "fea9712b-07d9-44c5-891a-ca3c1a1ecd6d",
"body": "{\n \"about_me\": \"I used to be an accountant but then I decided to become a pirate.\",\n \"country\": \"US\",\n \"digest\": \"6_hours\",\n \"digest_photos\": false,\n \"email\": {\n \"address\": \"johndoe@example.com\",\n \"bouncing\": false,\n \"spam_stop\": false,\n \"verified\": true\n },\n \"firstname\": \"Jack\",\n \"has_password\": false,\n \"last_listings_view\": \"2018-02-15T15:04:47\",\n \"lastname\": \"Carter\",\n \"location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge, CO, USA\",\n \"radius'\": 32186.88\n },\n \"member_since\": \"2009-09-25T14:20:01\",\n \"post_location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge\"\n },\n \"post_reminders\": true,\n \"profile_image\": \"https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon\",\n \"profile_image_source\": \"gravatar\",\n \"public_name\": false,\n \"public_post_sources\": [\n \"trashnothing\"\n ],\n \"show_all_group_posts\": true,\n \"signup\": \"2017-11-20T04:32:06\",\n \"special_notices\": true,\n \"user_id\": 119458,\n \"username\": \"captainjack\",\n \"uses_fair_offer_policy\": true,\n \"verified\": true\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated user.",
"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": "3d8e7dfe-2aa4-46d1-8bf8-5697f90649f2",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Email not yet verified.",
"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": "99dab043-8a1e-4925-9377-3f061099ad5c",
"documentation": "List current users' groups",
"method": "get",
"endpoint": "users/me/groups",
"responses": [
{
"uuid": "8944d8c2-2153-4075-994c-e4d74962116c",
"body": "[\n {\n \"country\": {\n \"abbreviation\": \"CA\",\n \"name\": \"Canada\"\n },\n \"group_id\": 46,\n \"has_questions\": true,\n \"homepage\": \"https://trashnothing.com/OttawaReuse\",\n \"identifier\": \"OttawaReuse\",\n \"latitude\": 45.423494,\n \"longitude\": -75.697933,\n \"member_count\": 4838,\n \"membership\": {\n \"date\": \"2015-01-22T17:05:50\",\n \"questionnaire\": {\n \"message\": \"This group is only for people who live in Ottawa.\",\n \"questions\": [\n \"Where do you live?\"\n ]\n },\n \"status\": \"pending-questions\"\n },\n \"name\": \"Ottawa Reuse\",\n \"open_archives\": false,\n \"open_membership\": false,\n \"region\": {\n \"abbreviation\": \"ON\",\n \"name\": \"Ontario\"\n },\n \"timezone\": \"America/Toronto\",\n \"utc_offset\": -5\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The users groups.",
"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": "f1aff38a-b444-46e7-84c3-646fe45e4f56",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid membership parameter.",
"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": "8583b5f2-1680-4ed2-bbad-540e3192c032",
"documentation": "Update location",
"method": "put",
"endpoint": "users/me/location",
"responses": [
{
"uuid": "53a3b1bf-116e-408b-b7e9-6415cdea5b08",
"body": "{\n \"about_me\": \"I used to be an accountant but then I decided to become a pirate.\",\n \"country\": \"US\",\n \"digest\": \"6_hours\",\n \"digest_photos\": false,\n \"email\": {\n \"address\": \"johndoe@example.com\",\n \"bouncing\": false,\n \"spam_stop\": false,\n \"verified\": true\n },\n \"firstname\": \"Jack\",\n \"has_password\": false,\n \"last_listings_view\": \"2018-02-15T15:04:47\",\n \"lastname\": \"Carter\",\n \"location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge, CO, USA\",\n \"radius'\": 32186.88\n },\n \"member_since\": \"2009-09-25T14:20:01\",\n \"post_location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge\"\n },\n \"post_reminders\": true,\n \"profile_image\": \"https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon\",\n \"profile_image_source\": \"gravatar\",\n \"public_name\": false,\n \"public_post_sources\": [\n \"trashnothing\"\n ],\n \"show_all_group_posts\": true,\n \"signup\": \"2017-11-20T04:32:06\",\n \"special_notices\": true,\n \"user_id\": 119458,\n \"username\": \"captainjack\",\n \"uses_fair_offer_policy\": true,\n \"verified\": true\n}",
"latency": 0,
"statusCode": 200,
"label": "The user with the updated location.",
"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": "0dff000b-1ea4-4443-a356-d2b534b9f733",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "eff4a058-a54f-4276-8cba-5f02410585db",
"documentation": "List current users' group notices",
"method": "get",
"endpoint": "users/me/notices",
"responses": [
{
"uuid": "52bc65a3-354e-4c21-a7e1-50c6655442ed",
"body": "[\n {\n \"content\": \"Everything must be free, legal and appropriate for all ages. Repeat offenders will be banned.\",\n \"date\": \"2018-02-17T13:22:40\",\n \"group_id\": 1781,\n \"notice_id\": 81178,\n \"title\": \"Group Rules & Guidelines\"\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The users group notices.",
"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": "5694c981-8559-4d5c-ae10-50763619b19c",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid group IDs.",
"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": "5e242bdd-ebde-40dd-afa6-55daa9d2e63c",
"documentation": "List current users' post locations",
"method": "get",
"endpoint": "users/me/post-locations",
"responses": [
{
"uuid": "96e9c6be-8c1b-4ad6-b9d7-5f6936b40adb",
"body": "[\n {\n \"latitude\": {{faker 'number.int' max=99999}},\n \"longitude\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The current users' post locations.",
"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": "939dd87f-6a41-48eb-bd9f-140c6dcc2148",
"documentation": "Save a post location for the current user",
"method": "put",
"endpoint": "users/me/post-locations",
"responses": [
{
"uuid": "c0a3198d-e131-473e-adb7-aef3ad335e3c",
"body": "[\n {\n \"latitude\": {{faker 'number.int' max=99999}},\n \"longitude\": {{faker 'number.int' max=99999}},\n \"name\": \"\"\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The current users' post locations.",
"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": "6c01b5ae-b0a3-43e5-a614-038a846d9319",
"documentation": "List current users' posts",
"method": "get",
"endpoint": "users/me/posts",
"responses": [
{
"uuid": "d5caedf3-0ef0-4deb-8c95-16db1ad56a53",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"last_listings_view\": \"{{faker 'date.recent' 365}}\",\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "ba6550d0-6b45-4127-8dd7-47ee2640de5c",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "4432ffad-9ce9-49b6-9f50-0e513338729a",
"documentation": "Search current users' posts",
"method": "get",
"endpoint": "users/me/posts/search",
"responses": [
{
"uuid": "66700229-ebfd-4a29-8ab4-99333d6fa389",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"Panasonic microwave oven in good working order 800 W power and turntable inside Has all the normal microwave functions plus grill elements for browning Comes with original instructions booklet It's an old microwave and could do with a bit of a clean, but still works very well\\n\",\n \"date\": \"2018-02-18T17:11:38\",\n \"footer\": null,\n \"group_id\": 81,\n \"latitude\": 42.961404,\n \"longitude\": -88.012586,\n \"outcome\": null,\n \"photos\": null,\n \"post_id\": 25997431,\n \"search_content\": \"Panasonic microwave oven in good working order 800 W power and turntable\",\n \"search_title\": \"Microwave Oven (Greenfield)\",\n \"title\": \"Microwave Oven (Greenfield)\",\n \"type\": \"offer\",\n \"user_id\": 82928\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "1b34e9ad-b868-44e7-8ea7-df0c6b993505",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "e3d79378-f920-4d2a-b71d-e16911b423f6",
"documentation": "Set a profile image",
"method": "post",
"endpoint": "users/me/profile-image",
"responses": [
{
"uuid": "507e4889-1622-464e-a5d9-bb6813e84a95",
"body": "{\n \"photo\": {\n \"photo_id\": \"987-423\",\n \"thumbnail\": {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-02/307731-20180119_155358.90x120.jpg\",\n \"width\": 90\n }\n },\n \"user\": {\n \"about_me\": \"I used to be an accountant but then I decided to become a pirate.\",\n \"country\": \"US\",\n \"digest\": \"6_hours\",\n \"digest_photos\": false,\n \"email\": {\n \"address\": \"johndoe@example.com\",\n \"bouncing\": false,\n \"spam_stop\": false,\n \"verified\": true\n },\n \"firstname\": \"Jack\",\n \"has_password\": false,\n \"last_listings_view\": \"2018-02-15T15:04:47\",\n \"lastname\": \"Carter\",\n \"location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge, CO, USA\",\n \"radius'\": 32186.88\n },\n \"member_since\": \"2009-09-25T14:20:01\",\n \"post_location\": {\n \"latitude\": 39.766098,\n \"longitude\": -105.077206,\n \"name\": \"Wheat Ridge\"\n },\n \"post_reminders\": true,\n \"profile_image\": \"https://gravatar.com/avatar/88305a95b05b30f6cd306019ea5d88f3?s=90&r=pg&default=identicon\",\n \"profile_image_source\": \"gravatar\",\n \"public_name\": false,\n \"public_post_sources\": [\n \"trashnothing\"\n ],\n \"show_all_group_posts\": true,\n \"signup\": \"2017-11-20T04:32:06\",\n \"special_notices\": true,\n \"user_id\": 119458,\n \"username\": \"captainjack\",\n \"uses_fair_offer_policy\": true,\n \"verified\": true\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated user and the photo.",
"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": "58561233-b34f-4ed7-bcc7-334d0b8585f2",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "ffcfdaa6-4ee2-4bd2-8854-1bb37b7b6cd9",
"documentation": "List current users' profile images",
"method": "get",
"endpoint": "users/me/profile-images",
"responses": [
{
"uuid": "41b1364d-21f4-4b72-8ad8-6cd28de9cbf8",
"body": "[\n {\n \"image\": \"\",\n \"source\": \"\"\n }\n]",
"latency": 0,
"statusCode": 200,
"label": "The users profile images.",
"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": "1e7fc9b4-7364-4b40-9b24-2f70eb1b26a0",
"documentation": "Resend account verification email",
"method": "post",
"endpoint": "users/me/resend-verification",
"responses": [
{
"uuid": "16607850-aec8-4467-8ad5-4f22c3198a4e",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Verification email was resent.",
"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": "3c377891-7a27-4613-8a7d-5035b152c48a",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Account already verified.",
"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": "c3688e76-7be5-4d89-a838-2303b396d43d",
"documentation": "Send password reset email",
"method": "post",
"endpoint": "users/me/reset-password",
"responses": [
{
"uuid": "ed0b2b0c-f2ae-4fe1-a1ad-54be17c998cb",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "Password reset email was sent.",
"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": "adbb7f7e-b7d8-4f35-9442-1f97121d0d31",
"documentation": "Report a user",
"method": "post",
"endpoint": "users/report",
"responses": [
{
"uuid": "52cbc986-efd3-4409-9b06-3fb087546cae",
"body": "",
"latency": 0,
"statusCode": 200,
"label": "The user was reported.",
"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": "d4ece8bd-1862-4bd8-ae06-8be22977abf4",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters. In particular, a user cannot report themselves.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "2fc1c32e-4ee7-4015-9d2f-6a6ee288d09e",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "User or group 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": "e2c1d2c9-9265-4fd2-8913-16e7c3939dea",
"documentation": "Retrieve a user",
"method": "get",
"endpoint": "users/:user_id",
"responses": [
{
"uuid": "4909fce3-e4be-4141-8bdc-323c7855336d",
"body": "{\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"feedback\": {\n \"percent_positive\": 87.5,\n \"restriction\": \"no-recent-messages\",\n \"score\": 7\n },\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"reply_time\": 4850,\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n}",
"latency": 0,
"statusCode": 200,
"label": "User data",
"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": "befdd278-d97a-4d20-adce-aaff22614324",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "User 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": "5a90f7b4-b74e-4ad8-86f6-5e3ef8de0618",
"documentation": "Retrieve user display info",
"method": "get",
"endpoint": "users/:user_id/display",
"responses": [
{
"uuid": "7a926fd2-bed0-44ae-bdf7-9b64e1d1a7cc",
"body": "{\n \"feedback\": [\n {\n \"content\": \"Fred gave me a great antique table for my new apartment!\",\n \"date\": \"2020-03-01T12:01:22\",\n \"positive\": true,\n \"reviewer_user_id\": 9191,\n \"user_id\": 2946512\n }\n ],\n \"offer_count\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ],\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"feedback\": {\n \"percent_positive\": 87.5,\n \"restriction\": \"no-recent-messages\",\n \"score\": 7\n },\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"reply_time\": 4850,\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n },\n \"wanted_count\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The user and related data.",
"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": "c0c46dcd-77a9-44e0-9ff3-2aee58bc2bf3",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "User 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": "56f12c56-4cc3-4659-ad2b-e8e6d0abffd2",
"documentation": "Submit feedback on a user",
"method": "post",
"endpoint": "users/:user_id/feedback",
"responses": [
{
"uuid": "f44ee018-06ac-41a5-962f-ec3eff6e0457",
"body": "{\n \"feedback\": {\n \"content\": \"Fred gave me a great antique table for my new apartment!\",\n \"date\": \"2020-03-01T12:01:22\",\n \"positive\": true,\n \"reviewer_user_id\": 9191,\n \"user_id\": 2946512\n },\n \"user\": {\n \"about_me\": \"Just an old fisherman looking to reuse more.\",\n \"country\": \"GB\",\n \"feedback\": {\n \"percent_positive\": 87.5,\n \"restriction\": \"no-recent-messages\",\n \"score\": 7\n },\n \"firstname\": null,\n \"lastname\": null,\n \"member_since\": \"2017-01-27T06:35:55\",\n \"profile_image\": \"https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg\",\n \"reply_time\": 4850,\n \"user_id\": 2946512,\n \"username\": \"fred gibson\"\n }\n}",
"latency": 0,
"statusCode": 200,
"label": "The updated user and feedback.",
"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": "b9323f28-0990-4ffc-a5ba-e7f5ebf434bf",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"headers": [{ "key": "Content-Type", "value": "application/json" }],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": false,
"crudKey": "id"
},
{
"uuid": "21f999f5-9019-4079-ae7b-2b7382b10ab4",
"body": "",
"latency": 0,
"statusCode": 404,
"label": "User 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": "a49f2876-3e7b-47a7-8433-9bebfda964b2",
"documentation": "List posts by a user",
"method": "get",
"endpoint": "users/:user_id/posts",
"responses": [
{
"uuid": "3ba68567-22b0-4e51-a5dc-06d8c4551c0d",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"last_listings_view\": \"{{faker 'date.recent' 365}}\",\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.\",\n \"date\": \"2018-02-05T15:10:21\",\n \"footer\": null,\n \"group_id\": 6,\n \"latitude\": 43.653226,\n \"longitude\": -79.383184,\n \"outcome\": \"satisfied\",\n \"photos\": [\n {\n \"images\": [\n {\n \"height\": 120,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"width\": 90\n },\n {\n \"height\": 240,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg\",\n \"width\": 180\n },\n {\n \"height\": 360,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg\",\n \"width\": 270\n },\n {\n \"height\": 500,\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\",\n \"width\": 375\n }\n ],\n \"photo_id\": \"695624-768616\",\n \"thumbnail\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg\",\n \"url\": \"https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg\"\n }\n ],\n \"post_id\": 3171898,\n \"title\": \"Ultrasonic diffuser (Downtown Toronto)\",\n \"type\": \"offer\",\n \"user_id\": 2933\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "40568da6-7f3b-4b42-a980-8c652f83ccd4",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "cfa981af-49d7-46c0-b2f2-97745920c1bd",
"documentation": "Search posts by a user",
"method": "get",
"endpoint": "users/:user_id/posts/search",
"responses": [
{
"uuid": "d42580a5-27cd-4fde-b274-cc35c6449857",
"body": "{\n \"end_index\": {{faker 'number.int' max=99999}},\n \"group_ids\": [\n \"\"\n ],\n \"num_pages\": {{faker 'number.int' max=99999}},\n \"num_posts\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"per_page\": {{faker 'number.int' max=99999}},\n \"posts\": [\n {\n \"content\": \"Panasonic microwave oven in good working order 800 W power and turntable inside Has all the normal microwave functions plus grill elements for browning Comes with original instructions booklet It's an old microwave and could do with a bit of a clean, but still works very well\\n\",\n \"date\": \"2018-02-18T17:11:38\",\n \"footer\": null,\n \"group_id\": 81,\n \"latitude\": 42.961404,\n \"longitude\": -88.012586,\n \"outcome\": null,\n \"photos\": null,\n \"post_id\": 25997431,\n \"search_content\": \"Panasonic microwave oven in good working order 800 W power and turntable\",\n \"search_title\": \"Microwave Oven (Greenfield)\",\n \"title\": \"Microwave Oven (Greenfield)\",\n \"type\": \"offer\",\n \"user_id\": 82928\n }\n ],\n \"start_index\": {{faker 'number.int' max=99999}}\n}",
"latency": 0,
"statusCode": 200,
"label": "The posts and paging data.",
"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": "46f98a23-85ec-4439-87ee-41c08ccc447b",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Missing or invalid parameters.",
"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": "3988903d-9cc5-427f-803e-5c17b9ef80b4",
"documentation": "Retrieve a users' profile image",
"method": "get",
"endpoint": "users/:user_id/profile-image",
"responses": [
{
"uuid": "d4158e30-eeb0-45cb-9141-4405c3cba3d4",
"body": "",
"latency": 0,
"statusCode": 302,
"label": "This endpoint returns an HTTP redirect to a URL that hosts the image. So requests on this endpoint that automatically follow redirects (eg. most browsers) will be redirected to a valid image file.\n",
"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": "370034a1-6d9a-4c5e-ad21-eab6a4f11f85",
"body": "",
"latency": 0,
"statusCode": 400,
"label": "Invalid default parameter.",
"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": "9abe2d7b-22d9-49ab-a90a-5167c68fdc6d" },
{ "type": "route", "uuid": "671aff83-1ee7-4f9e-8120-864a71257c90" },
{ "type": "route", "uuid": "2225b69d-812d-4e88-b0d6-f611a67bb692" },
{ "type": "route", "uuid": "31df65f0-57db-4f5d-8f7f-98445a36c465" },
{ "type": "route", "uuid": "7c4774bf-c255-4432-b5fe-c5054f79d291" },
{ "type": "route", "uuid": "a27ebd48-f426-4c8c-89f6-0256ec10be30" },
{ "type": "route", "uuid": "85fb819a-ffe5-4351-8a71-842f7945262a" },
{ "type": "route", "uuid": "b2149c8b-fe7a-41aa-8a2c-6edd2807c2a3" },
{ "type": "route", "uuid": "d276e90b-ffe2-4e7d-9ac6-3f8294a2da0e" },
{ "type": "route", "uuid": "06a77b1a-7f1c-48fd-a155-0f0ce2a654a9" },
{ "type": "route", "uuid": "dd320e2e-af12-4f1e-940b-183d10a50714" },
{ "type": "route", "uuid": "ca693a61-3e06-45b6-9738-6b89b745648b" },
{ "type": "route", "uuid": "6c9601a1-98cb-4aac-8115-073b069eb458" },
{ "type": "route", "uuid": "96eb4c29-e308-49f0-bec5-97888efff39b" },
{ "type": "route", "uuid": "9260e91e-5ce0-4dc0-b1c2-5b587b56bab2" },
{ "type": "route", "uuid": "ed1d0600-5ada-4ea3-bc57-697c106d04e0" },
{ "type": "route", "uuid": "3f47e349-c185-4a61-94c7-66ee26271010" },
{ "type": "route", "uuid": "aaa08fba-1a75-4e49-afa7-9d74539d4ed8" },
{ "type": "route", "uuid": "b62fc383-6c7c-4d43-aa93-a7ef40858fae" },
{ "type": "route", "uuid": "87f2b807-8b36-4292-a9be-ae4c821cff1d" },
{ "type": "route", "uuid": "998ca48b-7bcd-44c0-9bd3-618be886ffe3" },
{ "type": "route", "uuid": "2fb6c8ed-8eb6-43a2-85ed-8e4d20353d4b" },
{ "type": "route", "uuid": "49c92c9f-dcaf-4bd5-98a5-e9e8c9a377f9" },
{ "type": "route", "uuid": "bf1f3a3f-dd99-4d22-8745-818258f4ec7a" },
{ "type": "route", "uuid": "82093f1f-ed19-4d90-b1da-1e58290edd56" },
{ "type": "route", "uuid": "7ce4c7e4-3840-49c4-883a-353b5c655350" },
{ "type": "route", "uuid": "12027c31-0927-4602-9e86-9814771c4ae9" },
{ "type": "route", "uuid": "92bb99d7-acd0-42ed-9c45-01bf6e4dd3bc" },
{ "type": "route", "uuid": "730f01eb-5140-4d57-941f-e9c29a4d0b1a" },
{ "type": "route", "uuid": "b5645a79-4ae8-48a1-af97-84e3a4786b03" },
{ "type": "route", "uuid": "0ca8c3df-49e1-41f4-be82-41f968cdad19" },
{ "type": "route", "uuid": "6db6cae5-023b-428d-b000-ffb31299b8fc" },
{ "type": "route", "uuid": "bcb9cff9-c750-4593-85be-1a3104a65ffa" },
{ "type": "route", "uuid": "5e86d987-f1ce-4c09-b505-05ca228ecf74" },
{ "type": "route", "uuid": "e1adeeb6-ae86-4169-8e11-a4cb382b06a4" },
{ "type": "route", "uuid": "0e198d0e-3898-440e-91a6-f763b0bd4400" },
{ "type": "route", "uuid": "2b66abf1-78ae-41c5-b302-28ff9845e57b" },
{ "type": "route", "uuid": "50fa97c8-1215-482d-8d71-65bcfe3c37bc" },
{ "type": "route", "uuid": "405c4b3c-5153-46c3-9cb9-67e2e2dfa7f5" },
{ "type": "route", "uuid": "8e40c924-1558-4f5a-b32f-94850e8a9bc3" },
{ "type": "route", "uuid": "c2d5a60e-a87d-40ba-b472-8edc11602952" },
{ "type": "route", "uuid": "a4a9ab47-a7cf-4057-b7a1-8a84da8f3305" },
{ "type": "route", "uuid": "1bd77ebf-5472-4046-9f67-ba0f45b08d04" },
{ "type": "route", "uuid": "c2b69697-4b2a-4134-b25c-4704528156b8" },
{ "type": "route", "uuid": "96f99190-93ec-4345-a607-7398e1fa315a" },
{ "type": "route", "uuid": "657ed8e4-6601-412b-b55d-838672f4e5da" },
{ "type": "route", "uuid": "73eef329-197a-4788-b006-eb318e144b19" },
{ "type": "route", "uuid": "f1b7b1f5-9e89-400d-b153-5c810386d64b" },
{ "type": "route", "uuid": "151c211b-8c46-4b3b-8f9b-4c8a92b20a80" },
{ "type": "route", "uuid": "d3b1c016-7517-4f49-ad23-51666834fd63" },
{ "type": "route", "uuid": "a549e462-7b44-4af6-a80f-0a3f5bdfb789" },
{ "type": "route", "uuid": "124e6944-eb34-4532-a76d-ef3852677cfd" },
{ "type": "route", "uuid": "e1e12d50-3143-4eff-8c02-2b800809c068" },
{ "type": "route", "uuid": "4d50673e-669f-481a-be40-0052ac8f34a0" },
{ "type": "route", "uuid": "8216d7ce-bf56-46ff-bc58-59ca4be48d7b" },
{ "type": "route", "uuid": "7c1087d4-066e-4b91-8877-1c5e815f8f37" },
{ "type": "route", "uuid": "2b04a448-1b0e-4c6f-96c9-c4be90c7d7a4" },
{ "type": "route", "uuid": "99dab043-8a1e-4925-9377-3f061099ad5c" },
{ "type": "route", "uuid": "8583b5f2-1680-4ed2-bbad-540e3192c032" },
{ "type": "route", "uuid": "eff4a058-a54f-4276-8cba-5f02410585db" },
{ "type": "route", "uuid": "5e242bdd-ebde-40dd-afa6-55daa9d2e63c" },
{ "type": "route", "uuid": "939dd87f-6a41-48eb-bd9f-140c6dcc2148" },
{ "type": "route", "uuid": "6c01b5ae-b0a3-43e5-a614-038a846d9319" },
{ "type": "route", "uuid": "4432ffad-9ce9-49b6-9f50-0e513338729a" },
{ "type": "route", "uuid": "e3d79378-f920-4d2a-b71d-e16911b423f6" },
{ "type": "route", "uuid": "ffcfdaa6-4ee2-4bd2-8854-1bb37b7b6cd9" },
{ "type": "route", "uuid": "1e7fc9b4-7364-4b40-9b24-2f70eb1b26a0" },
{ "type": "route", "uuid": "c3688e76-7be5-4d89-a838-2303b396d43d" },
{ "type": "route", "uuid": "adbb7f7e-b7d8-4f35-9442-1f97121d0d31" },
{ "type": "route", "uuid": "e2c1d2c9-9265-4fd2-8913-16e7c3939dea" },
{ "type": "route", "uuid": "5a90f7b4-b74e-4ad8-86f6-5e3ef8de0618" },
{ "type": "route", "uuid": "56f12c56-4cc3-4659-ad2b-e8e6d0abffd2" },
{ "type": "route", "uuid": "a49f2876-3e7b-47a7-8433-9bebfda964b2" },
{ "type": "route", "uuid": "cfa981af-49d7-46c0-b2f2-97745920c1bd" },
{ "type": "route", "uuid": "3988903d-9cc5-427f-803e-5c17b9ef80b4" }
]
}