{ "uuid": "2b86b8da-26f6-4c38-8cb1-b9da16a93138", "lastMigration": 29, "name": "Tweets and Users", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "87cc9319-db24-4923-8495-4cbc5ea1f0c7", "documentation": "Returns the open api spec document.", "method": "get", "endpoint": "labs/2/openapi.json", "responses": [ { "uuid": "e8dea94e-319d-49e3-a63c-eb29f4bbc681", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "e7661186-8474-49db-b6c8-32b7c6a668f8", "documentation": "Returns hydrated Tweet objects", "method": "get", "endpoint": "labs/2/tweets", "responses": [ { "uuid": "714080b7-c35f-402d-a8dd-f46765e2da83", "body": "{\n \"data\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "41c661d5-de8c-4e9a-a6fa-e00793fa97ae", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "10cec873-7282-4276-a38c-5b1ba4c7dc1b", "documentation": "Returns hydrated Tweet objects", "method": "get", "endpoint": "labs/2/tweets/:id", "responses": [ { "uuid": "90981fea-62b6-4f99-af46-f84682b4f69d", "body": "{\n \"data\": {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n },\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "b41b9ed3-6bdd-417c-acdd-7c4fc6587133", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "e778a77f-5279-4161-a526-838494026bcb", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users", "responses": [ { "uuid": "1679f388-bafb-42dd-b05a-f756751b3306", "body": "{\n \"data\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ],\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "c3ad3553-a30f-47ef-ba01-268c93218a45", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "9a0bdb9d-f841-43ff-bcbc-4abb82b28191", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/by", "responses": [ { "uuid": "58f198cb-ea08-4b7d-8b92-95e068d1572e", "body": "{\n \"data\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ],\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "f6a705d9-f9d1-4dab-b849-689e8aee6afd", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "9a97aa6f-933d-449e-855c-dfe6b98609bb", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/by/username/:username", "responses": [ { "uuid": "9fd6114c-784c-4339-b153-07542f2d09bf", "body": "{\n \"data\": {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n },\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "c38820f4-f364-438e-ae58-eeedd61b7c77", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "5cba7fb0-6094-4644-abd3-5d1dd59e0830", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/:id", "responses": [ { "uuid": "6bc59e33-9f8c-4dfb-bbef-c4cb9ba3a2da", "body": "{\n \"data\": {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n },\n \"errors\": [\n {\n \"status\": {{faker 'number.int' max=99999}},\n \"type\": \"{{oneOf (array 'about:blank')}}\"\n }\n ],\n \"includes\": {\n \"media\": [\n {\n \"type\": \"{{oneOf (array 'photo')}}\",\n \"url\": \"\"\n }\n ],\n \"places\": [\n {\n \"contained_within\": [\n \"\"\n ],\n \"country\": \"\",\n \"country_code\": \"\",\n \"full_name\": \"\",\n \"geo\": {\n \"bbox\": [\n {{faker 'number.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'number.int' max=99999}}\n ],\n \"type\": \"{{oneOf (array 'Point')}}\"\n },\n \"properties\": {},\n \"type\": \"{{oneOf (array 'Feature')}}\"\n },\n \"id\": \"\",\n \"name\": \"\",\n \"place_type\": \"{{oneOf (array 'poi' 'neighborhood' 'city' 'admin' 'country' 'unknown')}}\"\n }\n ],\n \"polls\": [\n {\n \"duration_minutes\": {{faker 'number.int' max=99999}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'number.int' max=99999}},\n \"votes\": {{faker 'number.int' max=99999}}\n }\n ],\n \"voting_status\": \"{{oneOf (array 'open' 'closed')}}\"\n }\n ],\n \"tweets\": [\n {\n \"author_id\": \"712089797812\",\n \"created_at\": \"Wed Jun 20 16:53:49 +0000 2018\",\n \"id\": \"12234\",\n \"text\": \"Some great insight into the human condition.\"\n }\n ],\n \"users\": [\n {\n \"created_at\": \"2017-10-09T17:16:24Z\",\n \"id\": \"1234\",\n \"name\": \"Twitter API\",\n \"protected\": false,\n \"username\": \"twitterapi\"\n }\n ]\n }\n}", "latency": 0, "statusCode": 200, "label": "The request was successful", "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": "99f7225c-14a5-4857-8828-0bf4e062861d", "body": "{\n \"code\": {{faker 'number.int' max=99999}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "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": "87cc9319-db24-4923-8495-4cbc5ea1f0c7" }, { "type": "route", "uuid": "e7661186-8474-49db-b6c8-32b7c6a668f8" }, { "type": "route", "uuid": "10cec873-7282-4276-a38c-5b1ba4c7dc1b" }, { "type": "route", "uuid": "e778a77f-5279-4161-a526-838494026bcb" }, { "type": "route", "uuid": "9a0bdb9d-f841-43ff-bcbc-4abb82b28191" }, { "type": "route", "uuid": "9a97aa6f-933d-449e-855c-dfe6b98609bb" }, { "type": "route", "uuid": "5cba7fb0-6094-4644-abd3-5d1dd59e0830" } ] }