{ "uuid": "aa705de8-408c-4103-a3b5-24f2b5f86303", "lastMigration": 19, "name": "NPR Sponsorship Service", "endpointPrefix": "", "latency": 0, "port": 3000, "hostname": "0.0.0.0", "routes": [ { "uuid": "52263b5a-6e49-44ab-9cff-1cf514d213bb", "documentation": "Request VAST sponsorship units", "method": "get", "endpoint": "v2/ads", "responses": [ { "uuid": "c4e7c60a-fb30-41c9-820f-0b59aca748d7", "body": "", "latency": 0, "statusCode": 200, "label": "Request completed successfully; a VAST XML document is returned. Note that this response will only be returned if either `force=true` was passed in the querystring, or a call to get sponsorship was previously made, and ads now exist in the cache for this user; otherwise, the 202 response is returned.", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "2ef7f719-22b6-4bb3-bf6e-8173f9084446", "body": "", "latency": 0, "statusCode": 202, "label": "Request accepted. Check back later for actual ads.", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "05f60a11-45a5-4ec8-b070-350da3b840c5", "body": "", "latency": 0, "statusCode": 400, "label": "A bad request; generally, one or more parameters passed in were incorrect or missing", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "5e7a0f03-63e7-44c8-a524-1b20ae49847f", "body": "", "latency": 0, "statusCode": 500, "label": "A server error", "headers": [ { "key": "Content-Type", "value": "application/xml" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false } ], "enabled": true, "randomResponse": false, "sequentialResponse": false }, { "uuid": "90ac1add-eabb-4b0e-942d-41a3c340145e", "documentation": "Record tracking data for VAST sponsorship units", "method": "post", "endpoint": "v2/ads", "responses": [ { "uuid": "ec23ad90-7ae9-4668-b110-47c414c31b4a", "body": "", "latency": 0, "statusCode": 204, "label": "Request completed successfully, but there is nothing that we need to return to the caller.", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "271795f7-a1f5-4d07-9e97-2ce8587319b0", "body": "{\n \"code\": {{faker 'random.number'}},\n \"debug\": \"\",\n \"text\": \"\"\n}", "latency": 0, "statusCode": 400, "label": "A bad request; generally, one or more parameters passed in were incorrect or missing", "headers": [ { "key": "Content-Type", "value": "application/json" } ], "filePath": "", "sendFileAsBody": false, "rules": [], "rulesOperator": "OR", "disableTemplating": false, "fallbackTo404": false }, { "uuid": "f85da4c8-1f1a-411c-a35b-c830e40e9c15", "body": "{\n \"code\": {{faker 'random.number'}},\n \"debug\": \"\",\n \"text\": \"\"\n}", "latency": 0, "statusCode": 500, "label": "A server error", "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": "" } ] }