Skip to content

Commit

Permalink
Add mocks (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezerozen authored May 29, 2023
1 parent 645971b commit 5caaac3
Showing 1 changed file with 338 additions and 0 deletions.
338 changes: 338 additions & 0 deletions mocks/conekta_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -10287,6 +10287,344 @@
],
"enabled": true,
"responseMode": null
},
{
"uuid": "98377ded-9d35-49fc-abc7-2ebd899a4741",
"documentation": "get all apikeys",
"method": "get",
"endpoint": "api_keys",
"responses": [
{
"uuid": "c582302b-4024-4a37-ba72-ce6efc2400a6",
"body": "{\"next_page_url\":\"\",\"previous_page_url\":\"\",\"has_more\":false,\"object\":\"\",\"data\":[{\"active\":true,\"created_at\":1684167881,\"description\":\"online store\",\"id\":\"64625cc9f3e02c00163f5e4d\",\"livemode\":true,\"object\":\"api_key\",\"prefix\":\"key_rp\",\"role\":\"private\"}]}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "query",
"modifier": "limit",
"value": "20",
"invert": false,
"operator": "equals"
},
{
"target": "header",
"modifier": "Accept-Language",
"value": "es",
"invert": false,
"operator": "equals"
}
],
"rulesOperator": "AND",
"disableTemplating": false,
"fallbackTo404": false,
"default": false
},
{
"uuid": "1c413da0-70a4-468d-aae4-46fea2629098",
"body": "{\n \"details\": [\n {\n \"debug_message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"param\": null,\n \"code\": \"conekta.errors.api.system.general_failure\"\n }\n ],\n \"object\": \"error\",\n \"type\": \"api_error\",\n \"log_id\": \"641b6f2b3cd9a50001515098\"\n}",
"latency": 0,
"statusCode": 500,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "c6908799-fa45-4384-926a-5eb53bfe0608",
"documentation": "get apikey",
"method": "get",
"endpoint": "api_keys/:id",
"responses": [
{
"uuid": "c582302b-4024-4a37-ba72-ce6efc2400a6",
"body": "{\"active\":true,\"created_at\":1684167881,\"description\":\"online store\",\"id\":\"64625cc9f3e02c00163f5e4d\",\"livemode\":true,\"object\":\"api_key\",\"prefix\":\"key_rp\",\"role\":\"private\"}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "params",
"modifier": "id",
"value": "64625cc9f3e02c00163f5e4d",
"invert": false,
"operator": "equals"
},
{
"target": "header",
"modifier": "Accept-Language",
"value": "es",
"invert": false,
"operator": "equals"
}
],
"rulesOperator": "AND",
"disableTemplating": false,
"fallbackTo404": false,
"default": false
},
{
"uuid": "1c413da0-70a4-468d-aae4-46fea2629098",
"body": "{\n \"details\": [\n {\n \"debug_message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"param\": null,\n \"code\": \"conekta.errors.api.system.general_failure\"\n }\n ],\n \"object\": \"error\",\n \"type\": \"api_error\",\n \"log_id\": \"641b6f2b3cd9a50001515098\"\n}",
"latency": 0,
"statusCode": 500,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "8d6ea9d5-1d8b-4088-acbb-06e03f2f0407",
"documentation": "get apikey",
"method": "delete",
"endpoint": "api_keys/:id",
"responses": [
{
"uuid": "c582302b-4024-4a37-ba72-ce6efc2400a6",
"body": "{\"active\":true,\"created_at\":1684167881,\"description\":\"online store\",\"id\":\"64625cc9f3e02c00163f5e4d\",\"livemode\":true,\"object\":\"api_key\",\"prefix\":\"key_rp\",\"role\":\"private\",\"deleted\":true}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "params",
"modifier": "id",
"value": "64625cc9f3e02c00163f5e4d",
"invert": false,
"operator": "equals"
},
{
"target": "header",
"modifier": "Accept-Language",
"value": "es",
"invert": false,
"operator": "equals"
}
],
"rulesOperator": "AND",
"disableTemplating": false,
"fallbackTo404": false,
"default": false
},
{
"uuid": "1c413da0-70a4-468d-aae4-46fea2629098",
"body": "{\n \"details\": [\n {\n \"debug_message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"param\": null,\n \"code\": \"conekta.errors.api.system.general_failure\"\n }\n ],\n \"object\": \"error\",\n \"type\": \"api_error\",\n \"log_id\": \"641b6f2b3cd9a50001515098\"\n}",
"latency": 0,
"statusCode": 500,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "b9ac8488-4cd1-434e-9833-aec37db60650",
"documentation": "update apikey",
"method": "put",
"endpoint": "api_keys/:id",
"responses": [
{
"uuid": "c582302b-4024-4a37-ba72-ce6efc2400a6",
"body": "{\"active\":true,\"created_at\":1684167881,\"description\":\"online store\",\"id\":\"64625cc9f3e02c00163f5e4d\",\"livemode\":true,\"object\":\"api_key\",\"prefix\":\"key_rp\",\"role\":\"private\"}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "params",
"modifier": "id",
"value": "64625cc9f3e02c00163f5e4d",
"invert": false,
"operator": "equals"
},
{
"target": "header",
"modifier": "Accept-Language",
"value": "es",
"invert": false,
"operator": "equals"
}
],
"rulesOperator": "AND",
"disableTemplating": false,
"fallbackTo404": false,
"default": false
},
{
"uuid": "1c413da0-70a4-468d-aae4-46fea2629098",
"body": "{\n \"details\": [\n {\n \"debug_message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"param\": null,\n \"code\": \"conekta.errors.api.system.general_failure\"\n }\n ],\n \"object\": \"error\",\n \"type\": \"api_error\",\n \"log_id\": \"641b6f2b3cd9a50001515098\"\n}",
"latency": 0,
"statusCode": 500,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
},
{
"uuid": "2a74f846-2e1b-403a-b12f-1f6a0aea4252",
"documentation": "create apikey",
"method": "post",
"endpoint": "api_keys",
"responses": [
{
"uuid": "c582302b-4024-4a37-ba72-ce6efc2400a6",
"body": "{\"authentication_token\":\"key_rpHzxufNgjFCdprEEFZRTKi\",\"active\":true,\"created_at\":1684167881,\"description\":\"online store\",\"id\":\"64625cc9f3e02c00163f5e4d\",\"livemode\":true,\"object\":\"api_key\",\"prefix\":\"key_rp\",\"role\":\"private\"}",
"latency": 0,
"statusCode": 200,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [
{
"target": "header",
"modifier": "Accept-Language",
"value": "es",
"invert": false,
"operator": "equals"
}
],
"rulesOperator": "AND",
"disableTemplating": false,
"fallbackTo404": false,
"default": false
},
{
"uuid": "1c413da0-70a4-468d-aae4-46fea2629098",
"body": "{\n \"details\": [\n {\n \"debug_message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"message\": \"There was a runtime error and Conekta engineers have been notified.\",\n \"param\": null,\n \"code\": \"conekta.errors.api.system.general_failure\"\n }\n ],\n \"object\": \"error\",\n \"type\": \"api_error\",\n \"log_id\": \"641b6f2b3cd9a50001515098\"\n}",
"latency": 0,
"statusCode": 500,
"label": "",
"headers": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"bodyType": "INLINE",
"filePath": "",
"databucketID": "",
"sendFileAsBody": false,
"rules": [],
"rulesOperator": "OR",
"disableTemplating": false,
"fallbackTo404": false,
"default": true
}
],
"enabled": true,
"responseMode": null
}
],
"rootChildren": [
Expand Down

0 comments on commit 5caaac3

Please sign in to comment.