{ "uuid": "4df35689-b9ff-4d8b-86c3-9a8ecd2f6509", "lastMigration": 19, "name": "Tweets and Users", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "cfd3c279-3bad-4321-8d68-e26724f6d1c2", "documentation": "Returns the open api spec document.", "method": "get", "endpoint": "labs/2/openapi.json", "responses": [ { "uuid": "2d8ee1ab-f951-49eb-bea0-421b2ad7efe0", "body": "\"\"", "latency": 0, "statusCode": 200, "label": "The request was successful", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "38e48a5e-59e8-443b-b6db-626ff2c0ef62", "documentation": "Returns hydrated Tweet objects", "method": "get", "endpoint": "labs/2/tweets", "responses": [ { "uuid": "af2f28da-83c8-488e-b728-7adf968e5455", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f171593c-ad3c-48d8-8783-a8fc948b1821", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "3604c282-3cd7-49ad-bc37-f4fc7424ee54", "documentation": "Returns hydrated Tweet objects", "method": "get", "endpoint": "labs/2/tweets/:id", "responses": [ { "uuid": "a1be1141-e550-49c8-859d-0616bf00a4f6", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "974bceda-6a17-4270-ab7f-5ec2224c5413", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "c3086760-ee7e-4814-a9a9-4be7a8849f9b", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users", "responses": [ { "uuid": "54ef25e7-bfc1-495b-9c22-e3aa32a079fc", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "adc07a35-fdfd-451d-90f8-78088fb97d0d", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "8f533f1e-7ba2-426a-a111-bedd2beffce5", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/by", "responses": [ { "uuid": "dc6c785c-d4e7-49c3-967a-a554336b67a6", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "81d9e6f9-b08c-4271-9aff-5deaf379dfa6", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "64948d10-0ce8-4b10-a21b-d6a376b09744", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/by/username/:username", "responses": [ { "uuid": "b9fd0685-6d18-4baa-9d39-51fe82c233f7", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "41d8b8fe-6689-4f1b-8186-1f0d08637d4d", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "fd4bafd3-edb7-4774-b173-797d9db6b202", "documentation": "Return details for the specified users", "method": "get", "endpoint": "labs/2/users/:id", "responses": [ { "uuid": "eb21b9c4-4117-4f37-bac1-9df310e84b3a", "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 'random.number'}},\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 'random.float'}}\n ],\n \"geometry\": {\n \"coordinates\": [\n {{faker 'random.number'}}\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 'random.number'}},\n \"end_datetime\": \"{{faker 'date.recent' 365}}\",\n \"id\": \"\",\n \"options\": [\n {\n \"label\": \"\",\n \"position\": {{faker 'random.number'}},\n \"votes\": {{faker 'random.number'}}\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" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f28d7bca-cdff-4fe8-9b3b-ce66a4f0f721", "body": "{\n \"code\": {{faker 'random.number'}},\n \"message\": \"\"\n}", "latency": 0, "statusCode": 200, "label": "The request has failed.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false } ], "proxyMode": false, "proxyHost": "", "proxyRemovePrefix": false, "tlsOptions": { "enabled": false, "type": "CERT", "pfxPath": "", "certPath": "", "keyPath": "", "caPath": "", "passphrase": "" }, "cors": true, "headers": [], "proxyReqHeaders": [ { "key": "", "value": "" } ], "proxyResHeaders": [ { "key": "", "value": "" } ] }