From 5a1fcd6077537be0e563123ccf14832d9ec5def5 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Mon, 24 Jul 2023 14:28:45 +0200 Subject: [PATCH] add exports postman api calls --- .../com-app-bo-v2.0.postman_collection.json | 260 ++++++++++++++++ .../com-app-bo-v2.1.postman_collection.json | 286 ++++++++++++++++++ 2 files changed, 546 insertions(+) create mode 100644 tests/Api/Exports/com-app-bo-v2.0.postman_collection.json create mode 100644 tests/Api/Exports/com-app-bo-v2.1.postman_collection.json diff --git a/tests/Api/Exports/com-app-bo-v2.0.postman_collection.json b/tests/Api/Exports/com-app-bo-v2.0.postman_collection.json new file mode 100644 index 0000000..fc81d62 --- /dev/null +++ b/tests/Api/Exports/com-app-bo-v2.0.postman_collection.json @@ -0,0 +1,260 @@ +{ + "info": { + "_postman_id": "14822885-c98d-45cd-aa9d-3aaabd619c25", + "name": "com-app-bo-v2.0", + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json", + "_exporter_id": "27033893" + }, + "item": [ + { + "name": "Settings", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/settings?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "settings" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "App", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/app?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "app" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "AppUsers", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/users?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "users" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Directories", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/directories?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "directories" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Documents", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/documents?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "documents" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Version", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/version?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "version" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Contacts", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"userId\": 1,\r\n \"contacts\": [{\r\n \"uniq_id\": \"3213211354dsdfsdf4654\",\r\n \"user_id\": 1,\r\n \"email\": \"john.doe@ldc.fr\",\r\n \"type\": \"other\",\r\n \"other\": \"Production publicitaire\",\r\n \"select1\": \"pole-sable\",\r\n \"select2\": \"grossiste-distributeur-cash\",\r\n \"lastname\": \"John\",\r\n \"firstname\": \"Doe\",\r\n \"company\": \"Avigros\",\r\n \"address\": \"37 rue laugier 75017 paris\",\r\n \"phone\": \"0634609299\",\r\n \"products\": [true,null,null,null,null,null,null,true],\r\n \"card_url\": null,\r\n \"notes\": \"Poulet crapaudine sans le pour rotissoire - Idéalement France - Travail avec média France toute en frais\",\r\n \"visits\": \"[{'title':'21/01/2023','note':'Échange concernant le book volaille découpe\\n\\n'}]\",\r\n \"to_delete\": false\r\n }]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{$domain}}/api/contacts?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "contacts" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "SendBrochure", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"emails\": {\r\n \"app_user_id\": 1,\r\n \"subject\": \"mail test\",\r\n \"email\": \"john.doe@ldc.fr\",\r\n \"message\": \"Bonjour, ceci est un message !\",\r\n \"documents\": [{\r\n \"uuid\": \"96f03105-63dd-4ee6-8d44-460af5215328\",\r\n \"type\": \"pdf\",\r\n \"title\": \"test\"\r\n }]\r\n }\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{$domain}}/api/sendBrochure?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "sendBrochure" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "$domain", + "value": "com-app-bo-old.s-web.test", + "type": "string" + }, + { + "key": "$token", + "value": "toto", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/tests/Api/Exports/com-app-bo-v2.1.postman_collection.json b/tests/Api/Exports/com-app-bo-v2.1.postman_collection.json new file mode 100644 index 0000000..2dbda2f --- /dev/null +++ b/tests/Api/Exports/com-app-bo-v2.1.postman_collection.json @@ -0,0 +1,286 @@ +{ + "info": { + "_postman_id": "88ecfee1-af91-4215-8906-3c904fd261a9", + "name": "com-app-bo-v2.1", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "27033893" + }, + "item": [ + { + "name": "Settings", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/settings?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "settings" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Formulary settings", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/settings/form?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "settings", + "form" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "App", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/app?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "app" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "AppUsers", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/users?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "users" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Directories", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/directories?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "directories" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Documents", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/documents?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "documents" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Version", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "https://{{$domain}}/api/version?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "version" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "Contacts", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"userId\": 1,\r\n \"contacts\": [{\r\n \"uniq_id\": \"3213211354dsdfsdf4654\",\r\n \"app_user_id\": 1,\r\n \"email\": \"john.doe@ldc.fr\",\r\n \"type\": \"other\",\r\n \"other\": \"Production publicitaire\",\r\n \"select1\": \"pole-sable\",\r\n \"select2\": \"grossiste-distributeur-cash\",\r\n \"firstname\": \"John\",\r\n \"lastname\": \"Doe\",\r\n \"company\": \"Avigros\",\r\n \"address\": \"37 rue laugier 75017 paris\",\r\n \"phone\": \"0634609299\",\r\n \"products\": [true,null,null,null,null,null,null,true],\r\n \"card_url\": null,\r\n \"notes\": \"Poulet crapaudine sans le pour rotissoire - Idéalement France - Travail avec média France toute en frais\",\r\n \"visits\": \"[{'title':'21/01/2023','note':'Échange concernant le book volaille découpe\\n\\n'}]\",\r\n \"to_delete\": false\r\n }]\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{$domain}}/api/contacts?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "contacts" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + }, + { + "name": "SendBrochure", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\r\n \"emails\": {\r\n \"app_user_id\": 1,\r\n \"subject\": \"mail test\",\r\n \"email\": \"john.doe@ldc.fr\",\r\n \"message\": \"Bonjour, ceci est un message !\",\r\n \"documents\": [{\r\n \"uuid\": \"354474ff-0419-4ecc-b245-9a7936caeedb\",\r\n \"type\": \"pdf\",\r\n \"title\": \"test\"\r\n }]\r\n }\r\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "https://{{$domain}}/api/sendBrochure?token={{$token}}", + "protocol": "https", + "host": [ + "{{$domain}}" + ], + "path": [ + "api", + "sendBrochure" + ], + "query": [ + { + "key": "token", + "value": "{{$token}}" + } + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "$domain", + "value": "com-app-bo.s-web.test", + "type": "string" + }, + { + "key": "$token", + "value": "toto", + "type": "string" + } + ] +} \ No newline at end of file