{ "uuid": "3f2839d0-36bf-43cc-8ae4-d3431460a8ad", "lastMigration": 29, "name": "TransitFeeds API", "endpointPrefix": "v1", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "9621461b-f373-4358-bde5-a084a5fa9f67", "documentation": "Retrieve a list of versions of specified (or all) feeds.", "method": "get", "endpoint": "getFeedVersions", "responses": [ { "uuid": "a5a6351f-56f3-4e5b-9f95-528ec87adda8", "body": "{\n \"msg\": \"\",\n \"results\": {\n \"feeds\": [\n {\n \"d\": {\n \"f\": \"\",\n \"s\": \"\"\n },\n \"err\": [\n {\n \"c\": \"\",\n \"f\": \"\",\n \"l\": \"\",\n \"m\": \"\"\n }\n ],\n \"f\": {\n \"id\": \"\",\n \"l\": {\n \"id\": {{faker 'number.int' max=99999}},\n \"lat\": {{faker 'number.float'}},\n \"lng\": {{faker 'number.float'}},\n \"n\": \"\",\n \"pid\": {{faker 'number.int' max=99999}},\n \"t\": \"\"\n },\n \"latest\": {\n \"ts\": {{faker 'number.int' max=99999}}\n },\n \"t\": \"\",\n \"ty\": \"{{oneOf (array 'gtfs' 'gtfsrealtime')}}\",\n \"u\": {\n \"d\": \"\",\n \"i\": \"\"\n }\n },\n \"id\": \"\",\n \"size\": {{faker 'number.int' max=99999}},\n \"ts\": {{faker 'number.int' max=99999}},\n \"url\": \"\",\n \"warn\": [\n {\n \"c\": \"\",\n \"f\": \"\",\n \"l\": \"\",\n \"m\": \"\"\n }\n ]\n }\n ],\n \"input\": \"\",\n \"limit\": {{faker 'number.int' max=99999}},\n \"numPages\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"status\": \"{{oneOf (array 'OK' 'DEPRECATED' 'EMPTYKEY' 'MISSINGINPUT' 'INVALIDINPUT')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The response for a valid `/getFeedVersions` API call.", "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": "72755ff8-31fd-48a9-9ca4-75142528ba43", "documentation": "Retrieve a list of feeds.", "method": "get", "endpoint": "getFeeds", "responses": [ { "uuid": "65e3cba9-24a4-48b5-b881-b7bc5082488d", "body": "{\n \"msg\": \"\",\n \"results\": {\n \"feeds\": [\n {\n \"id\": \"\",\n \"l\": {\n \"id\": {{faker 'number.int' max=99999}},\n \"lat\": {{faker 'number.float'}},\n \"lng\": {{faker 'number.float'}},\n \"n\": \"\",\n \"pid\": {{faker 'number.int' max=99999}},\n \"t\": \"\"\n },\n \"latest\": {\n \"ts\": {{faker 'number.int' max=99999}}\n },\n \"t\": \"\",\n \"ty\": \"{{oneOf (array 'gtfs' 'gtfsrealtime')}}\",\n \"u\": {\n \"d\": \"\",\n \"i\": \"\"\n }\n }\n ],\n \"input\": \"\",\n \"limit\": 10,\n \"numPages\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"status\": \"{{oneOf (array 'OK' 'EMPTYKEY' 'MISSINGINPUT' 'INVALIDINPUT')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The response for a valid `/getFeeds` API call.", "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": "bdc7749e-03b4-44e0-a58f-da75cc7924dd", "documentation": "Retrieve the download URL for the latest version of a feed.", "method": "get", "endpoint": "getLatestFeedVersion", "responses": [ { "uuid": "57e71e3b-4829-4395-adb9-02680cea6b9c", "body": "{\n \"msg\": \"\",\n \"results\": {\n \"feeds\": [\n {\n \"d\": {\n \"f\": \"\",\n \"s\": \"\"\n },\n \"err\": [\n {\n \"c\": \"\",\n \"f\": \"\",\n \"l\": \"\",\n \"m\": \"\"\n }\n ],\n \"f\": {\n \"id\": \"\",\n \"l\": {\n \"id\": {{faker 'number.int' max=99999}},\n \"lat\": {{faker 'number.float'}},\n \"lng\": {{faker 'number.float'}},\n \"n\": \"\",\n \"pid\": {{faker 'number.int' max=99999}},\n \"t\": \"\"\n },\n \"latest\": {\n \"ts\": {{faker 'number.int' max=99999}}\n },\n \"t\": \"\",\n \"ty\": \"{{oneOf (array 'gtfs' 'gtfsrealtime')}}\",\n \"u\": {\n \"d\": \"\",\n \"i\": \"\"\n }\n },\n \"id\": \"\",\n \"size\": {{faker 'number.int' max=99999}},\n \"ts\": {{faker 'number.int' max=99999}},\n \"url\": \"\",\n \"warn\": [\n {\n \"c\": \"\",\n \"f\": \"\",\n \"l\": \"\",\n \"m\": \"\"\n }\n ]\n }\n ],\n \"input\": \"\",\n \"limit\": 10,\n \"numPages\": {{faker 'number.int' max=99999}},\n \"page\": {{faker 'number.int' max=99999}},\n \"total\": {{faker 'number.int' max=99999}}\n },\n \"status\": \"{{oneOf (array 'OK' 'DEPRECATED' 'EMPTYKEY' 'MISSINGINPUT' 'INVALIDINPUT' 'OTHER')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The response for a `/getLatestFeedVersion` API call that includes invalid request parameters.", "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": "6c47d909-ebb5-440a-aab3-3d1ca70a4ae4", "body": "", "latency": 0, "statusCode": 302, "label": "If a `/getLatestFeedVersion` request is valid, then a HTTP 302 Temporary Redirect is issued to the download location.\nFor example, if the requested feed is a GTFS feed, then this will redirect to the URL of the latest zip file for\nthis feed.\n", "headers": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Location", "value": "" } ], "bodyType": "INLINE", "filePath": "", "databucketID": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false, "default": false, "crudKey": "id" } ], "enabled": true, "responseMode": null, "type": "http" }, { "uuid": "377289ee-8d72-4a92-8613-9773c6b974d7", "documentation": "Retrieve a list of locations.", "method": "get", "endpoint": "getLocations", "responses": [ { "uuid": "97109427-331e-4daf-85b9-7c0fce23d046", "body": "{\n \"msg\": \"\",\n \"results\": {\n \"input\": \"\",\n \"locations\": [\n {\n \"id\": {{faker 'number.int' max=99999}},\n \"lat\": {{faker 'number.float'}},\n \"lng\": {{faker 'number.float'}},\n \"n\": \"\",\n \"pid\": {{faker 'number.int' max=99999}},\n \"t\": \"\"\n }\n ]\n },\n \"status\": \"{{oneOf (array 'OK' 'EMPTYKEY' 'MISSINGINPUT' 'INVALIDINPUT')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 200, "label": "The response for a valid `getLocations` API call.", "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": "083ee513-13ef-4eba-86d5-cfe4ebb5b3fe", "body": "{\n \"msg\": \"\",\n \"status\": \"{{oneOf (array 'INVALIDKEY' 'PERMISSIONDENIED')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 401, "label": "The response for invalid key or permission denied.", "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": "98917142-9633-4557-ad1a-0ced39c8f076", "body": "{\n \"msg\": \"\",\n \"status\": \"{{oneOf (array 'INVALIDMETHOD')}}\",\n \"ts\": {{faker 'number.int' max=99999}}\n}", "latency": 0, "statusCode": 404, "label": "The response for invalid API method.", "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": "9621461b-f373-4358-bde5-a084a5fa9f67" }, { "type": "route", "uuid": "72755ff8-31fd-48a9-9ca4-75142528ba43" }, { "type": "route", "uuid": "bdc7749e-03b4-44e0-a58f-da75cc7924dd" }, { "type": "route", "uuid": "377289ee-8d72-4a92-8613-9773c6b974d7" } ] }