{ "uuid": "aac15af1-86a8-47d4-b7c0-6cae2b49e06c", "lastMigration": 29, "name": "Importer-Exporter Details API", "endpointPrefix": "dgft", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "90df84ef-bcfb-433a-9ca4-b9025147dbe3", "documentation": "Importer-Exporter Code (IEC) Verification API.", "method": "get", "endpoint": "v1/iec/:iec", "responses": [ { "uuid": "349e16e5-d0ba-4b5b-8447-7b47b5c3aa09", "body": "{\n \"addressLine1\": \"Noida\",\n \"addressLine2\": \"\",\n \"branch\": [\n {\n \"badd1\": \"Bokaro\",\n \"badd2\": \"\",\n \"branchCode\": 1,\n \"city\": \"Bokaro\",\n \"pin\": 827012,\n \"state\": \"JHARKHAND\"\n }\n ],\n \"city\": \"Bokaro\",\n \"dataAsOn\": \"{{faker 'date.recent' 365}}\",\n \"directors\": [\n {\n \"name\": \"Mukund's IEC\"\n }\n ],\n \"entityName\": \"Mukund's IEC\",\n \"exporterType\": 1,\n \"iec\": \"CGRPK3746C\",\n \"iecIssueDate\": 8062020,\n \"iecModificationDate\": \"\",\n \"iecStatus\": \"\",\n \"natureOfConcern\": 1,\n \"pan\": \"CGRPK3746CFT001\",\n \"pin\": 827012,\n \"state\": \"JHARKHAND\"\n}", "latency": 0, "statusCode": 200, "label": "successful operation", "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": "1e6f1802-c5ff-49c2-becf-4fbf2757d25c", "body": "{\n \"error\": \"{{oneOf (array 'invalid parameter' 'missing parameter')}}\",\n \"errorDescription\": \"{{oneOf (array 'Bad request' 'Please provide all mandatory parameters.')}}\"\n}", "latency": 0, "statusCode": 400, "label": "Bad Request", "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": "9c2351a4-81a7-409a-9bc0-5378e66232c3", "body": "{\n \"error\": \"{{oneOf (array 'invalid_authentication' 'invalid_authorization')}}\",\n \"errorDescription\": \"{{oneOf (array 'Authentication failed' 'You are not authorized to use this API')}}\"\n}", "latency": 0, "statusCode": 401, "label": "Authentication 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" }, { "uuid": "c48353cb-7a4d-4d54-9cf1-3f93690fb3e4", "body": "{\n \"error\": \"{{oneOf (array 'record_not_found' 'Url not found')}}\",\n \"errorDescription\": \"{{oneOf (array 'No record found' 'Your API url or path is incorrect.')}}\"\n}", "latency": 0, "statusCode": 404, "label": "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" }, { "uuid": "b1bd4f9a-8625-4cef-a08a-3d536842dd45", "body": "{\n \"error\": \"{{oneOf (array 'internal_server_error')}}\",\n \"errorDescription\": \"{{oneOf (array 'Internal server error')}}\"\n}", "latency": 0, "statusCode": 500, "label": "Internal Server Error", "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": "9e03a0e6-d66a-4712-b34c-3c629e556d98", "body": "{\n \"error\": \"{{oneOf (array 'bad gateway')}}\",\n \"errorDescription\": \"{{oneOf (array 'Publisher service returned an invalid response.')}}\"\n}", "latency": 0, "statusCode": 502, "label": "Bad Gateway", "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": "2f8bea51-ff65-45c6-b86d-e934fb4e82cf", "body": "{\n \"error\": \"{{oneOf (array 'service_unavailable')}}\",\n \"errorDescription\": \"{{oneOf (array 'Publisher service is temporarily unavailable')}}\"\n}", "latency": 0, "statusCode": 503, "label": "Service Unavailable", "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": "747c37fe-6e72-48f0-8284-250bae601b0c", "body": "{\n \"error\": \"{{oneOf (array 'gateway_timeout')}}\",\n \"errorDescription\": \"{{oneOf (array 'Publisher service did not respond in time')}}\"\n}", "latency": 0, "statusCode": 504, "label": "Gateway Timeout", "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": "90df84ef-bcfb-433a-9ca4-b9025147dbe3" } ] }