{ "uuid": "84acf769-d88c-4445-84fe-5a7d360c98a2", "lastMigration": 29, "name": "koomalooma Partner API", "endpointPrefix": "api", "latency": 0, "port": 3000, "hostname": "", "routes": [ { "uuid": "8caf06dc-8cbc-4bdb-9ee6-08a1f758f875", "documentation": "Create a User", "method": "post", "endpoint": "users", "responses": [ { "uuid": "3967e3cc-269a-4a6b-8a32-539657e89406", "body": "{\n \"partner_id\": \"\",\n \"partner_user_id\": \"\",\n \"user_session_id\": \"\"\n}", "latency": 0, "statusCode": 201, "label": "Created", "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": "a0845439-0365-4fe2-9bfe-ea5ff0ad4964", "body": "", "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": "d0ec49e7-a8e8-468f-a8c2-bcaa797f88d7", "body": "", "latency": 0, "statusCode": 403, "label": "Forbidden", "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": "583a429e-4369-4a86-ae43-a516b3ca34c6", "documentation": "Assign points to a User", "method": "post", "endpoint": "users/:user_id/commitments", "responses": [ { "uuid": "abf0609d-436e-4b7f-8b27-023d63e48c6d", "body": "{\n \"confirmation_status\": \"{{oneOf (array 'pending' 'confirmed')}}\",\n \"created_at\": \"2016-12-31T12:34:56+00:00\",\n \"free_loyalty_units\": {{faker 'number.int' max=99999}},\n \"goal\": {\n \"type\": \"\",\n \"value\": \"\"\n },\n \"id\": \"\",\n \"loyalty_accumulation_value\": \"\",\n \"loyalty_units\": {{faker 'number.int' max=99999}},\n \"partner_id\": \"\",\n \"promotion_goal_category\": \"\",\n \"promotion_goal_description\": \"\",\n \"redeemable_loyalty_units\": {{faker 'number.int' max=99999}},\n \"redeemed\": {{faker 'datatype.boolean'}},\n \"redeemed_loyalty_units\": {{faker 'number.int' max=99999}},\n \"updated_at\": \"2016-12-31T12:34:56+00:00\",\n \"user_id\": \"\"\n}", "latency": 0, "statusCode": 201, "label": "Created", "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": "20dee75e-bedf-4635-9f63-8843388e0943", "body": "", "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": "e4b1a782-6f8d-499d-bcec-4925014261f6", "body": "", "latency": 0, "statusCode": 403, "label": "Forbidden", "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": "8caf06dc-8cbc-4bdb-9ee6-08a1f758f875" }, { "type": "route", "uuid": "583a429e-4369-4a86-ae43-a516b3ca34c6" } ] }