From c3593a9a345fd655990167790e8de727ed1aa618 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 13 Dec 2023 11:30:30 +0100 Subject: [PATCH 1/9] refs #6451 extension approach --- .vscode/settings.json | 24 ++++++-- api/Api/Account/login.bru | 24 ++++++++ api/Api/Buy/-Buys -packaging.bru | 19 +++++++ api/Api/Chat/-chats-getServiceAuth.bru | 11 ++++ api/Api/Chat/-chats-send.bru | 16 ++++++ api/Api/Chat/-chats-sendCheckingPresence.bru | 26 +++++++++ api/Api/Client/-clients--id.bru | 17 ++++++ api/Api/Client/-clients-findOne.bru | 15 +++++ api/Api/Client/-clients.bru | 22 ++++++++ api/Api/Client/-consumptionSendQueued.bru | 11 ++++ .../-collection_getTickets TEST.bru | 21 +++++++ api/Api/Collection/-collection_getTickets.bru | 21 +++++++ api/Api/Collection/-collections.bru | 15 +++++ api/Api/Collection/-items--id.bru | 17 ++++++ api/Api/Collection/-items-findOne.bru | 15 +++++ api/Api/Collection/-items.bru | 25 +++++++++ api/Api/Edi/-edi-updateData.bru | 11 ++++ api/Api/EmailUser/EmailUser.bru | 25 +++++++++ api/Api/Entry/-Entries- Add-packaging.bru | 20 +++++++ api/Api/Entry/-Entries--listPackaging.bru | 19 +++++++ api/Api/Entry/-Entries--packaging Notes.bru | 19 +++++++ api/Api/Entry/-Entries--packaging.bru | 19 +++++++ .../Entry/-Entries-addFromBuy -packaging.bru | 19 +++++++ .../Item/-item setVisibleDiscard Local.bru | 25 +++++++++ api/Api/Item/-item setVisibleDiscard TEST.bru | 25 +++++++++ api/Api/Item/-item setVisibleDiscard.bru | 21 +++++++ api/Api/Item/-items--id.bru | 17 ++++++ api/Api/Item/-items-findOne.bru | 15 +++++ api/Api/Item/-items.bru | 25 +++++++++ .../ItemBarCodes--id-toItem Copy.bru | 15 +++++ .../ItemBarCode/ItemBarCodes--id-toItem.bru | 11 ++++ api/Api/ItemBarCode/ItemBarCodes.bru | 23 ++++++++ .../-itemImageQueues-downloadImages.bru | 19 +++++++ api/Api/ItemImageQueue/-itemImageQueues.bru | 11 ++++ api/Api/ItemPackingType/ItemPackingTypes.bru | 15 +++++ api/Api/ItemShelvings/-itemShelvings-id.bru | 26 +++++++++ .../-itemShelvings-update TEST.bru | 28 ++++++++++ .../ItemShelvings/-itemShelvings-update.bru | 28 ++++++++++ api/Api/Notifications/Send.bru | 11 ++++ api/Api/ShelvingLog/ShelvingLogs.bru | 18 ++++++ api/Api/ShelvingLog/Shelvings.bru | 25 +++++++++ .../-Supplier--id--getItemsPackaging.bru | 19 +++++++ api/Api/Ticket/--id-delivery-note.bru | 15 +++++ api/Api/Ticket/-tickets Advanced.bru | 27 +++++++++ api/Api/Ticket/-tickets--id Notes.bru | 33 +++++++++++ api/Api/Ticket/-tickets--id.bru | 17 ++++++ api/Api/Ticket/-tickets-client.bru | 15 +++++ api/Api/Ticket/-tickets-findOne.bru | 15 +++++ api/Api/Ticket/-tickets-saveSign.bru | 15 +++++ api/Api/Ticket/-tickets-transferSales.bru | 15 +++++ api/Api/Ticket/-tickets.bru | 21 +++++++ .../-ExpeditionStates-addState Copy.bru | 27 +++++++++ .../-ExpeditionStates-addState.bru | 31 +++++++++++ .../-Operators- get sector - labeler Copy.bru | 25 +++++++++ .../-Operators- get sector - labeler.bru | 25 +++++++++ api/Api/operator/-Operators- get.bru | 26 +++++++++ api/Api/operator/-Operators- labeler.bru | 25 +++++++++ api/Api/operator/-Operators- sector Copy.bru | 23 ++++++++ api/Api/operator/-Operators- sector.bru | 26 +++++++++ api/bruno.json | 5 ++ api/environments/test.bru | 4 ++ api/result.json | 55 +++++++++++++++++++ api/test.http | 7 +++ 63 files changed, 1256 insertions(+), 4 deletions(-) create mode 100644 api/Api/Account/login.bru create mode 100644 api/Api/Buy/-Buys -packaging.bru create mode 100644 api/Api/Chat/-chats-getServiceAuth.bru create mode 100644 api/Api/Chat/-chats-send.bru create mode 100644 api/Api/Chat/-chats-sendCheckingPresence.bru create mode 100644 api/Api/Client/-clients--id.bru create mode 100644 api/Api/Client/-clients-findOne.bru create mode 100644 api/Api/Client/-clients.bru create mode 100644 api/Api/Client/-consumptionSendQueued.bru create mode 100644 api/Api/Collection/-collection_getTickets TEST.bru create mode 100644 api/Api/Collection/-collection_getTickets.bru create mode 100644 api/Api/Collection/-collections.bru create mode 100644 api/Api/Collection/-items--id.bru create mode 100644 api/Api/Collection/-items-findOne.bru create mode 100644 api/Api/Collection/-items.bru create mode 100644 api/Api/Edi/-edi-updateData.bru create mode 100644 api/Api/EmailUser/EmailUser.bru create mode 100644 api/Api/Entry/-Entries- Add-packaging.bru create mode 100644 api/Api/Entry/-Entries--listPackaging.bru create mode 100644 api/Api/Entry/-Entries--packaging Notes.bru create mode 100644 api/Api/Entry/-Entries--packaging.bru create mode 100644 api/Api/Entry/-Entries-addFromBuy -packaging.bru create mode 100644 api/Api/Item/-item setVisibleDiscard Local.bru create mode 100644 api/Api/Item/-item setVisibleDiscard TEST.bru create mode 100644 api/Api/Item/-item setVisibleDiscard.bru create mode 100644 api/Api/Item/-items--id.bru create mode 100644 api/Api/Item/-items-findOne.bru create mode 100644 api/Api/Item/-items.bru create mode 100644 api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru create mode 100644 api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru create mode 100644 api/Api/ItemBarCode/ItemBarCodes.bru create mode 100644 api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru create mode 100644 api/Api/ItemImageQueue/-itemImageQueues.bru create mode 100644 api/Api/ItemPackingType/ItemPackingTypes.bru create mode 100644 api/Api/ItemShelvings/-itemShelvings-id.bru create mode 100644 api/Api/ItemShelvings/-itemShelvings-update TEST.bru create mode 100644 api/Api/ItemShelvings/-itemShelvings-update.bru create mode 100644 api/Api/Notifications/Send.bru create mode 100644 api/Api/ShelvingLog/ShelvingLogs.bru create mode 100644 api/Api/ShelvingLog/Shelvings.bru create mode 100644 api/Api/Supplier/-Supplier--id--getItemsPackaging.bru create mode 100644 api/Api/Ticket/--id-delivery-note.bru create mode 100644 api/Api/Ticket/-tickets Advanced.bru create mode 100644 api/Api/Ticket/-tickets--id Notes.bru create mode 100644 api/Api/Ticket/-tickets--id.bru create mode 100644 api/Api/Ticket/-tickets-client.bru create mode 100644 api/Api/Ticket/-tickets-findOne.bru create mode 100644 api/Api/Ticket/-tickets-saveSign.bru create mode 100644 api/Api/Ticket/-tickets-transferSales.bru create mode 100644 api/Api/Ticket/-tickets.bru create mode 100644 api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru create mode 100644 api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru create mode 100644 api/Api/operator/-Operators- get sector - labeler Copy.bru create mode 100644 api/Api/operator/-Operators- get sector - labeler.bru create mode 100644 api/Api/operator/-Operators- get.bru create mode 100644 api/Api/operator/-Operators- labeler.bru create mode 100644 api/Api/operator/-Operators- sector Copy.bru create mode 100644 api/Api/operator/-Operators- sector.bru create mode 100644 api/bruno.json create mode 100644 api/environments/test.bru create mode 100644 api/result.json create mode 100644 api/test.http diff --git a/.vscode/settings.json b/.vscode/settings.json index 899dfc788..e778aa5ce 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,8 +11,24 @@ "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, - "cSpell.words": [ - "salix", - "fdescribe" - ] + "cSpell.words": ["salix", "fdescribe"], + "rest-client.previewOption": "body", + "rest-client.environmentVariables": { + "$shared": { + "version": "v1", + "prodToken": "foo", + "nonProdToken": "bar" + }, + "local": { + "version": "v2", + "host": "localhost:3000", + "token": "{{$shared nonProdToken}}", + "secretKey": "devSecret" + }, + "production": { + "host": "example.com", + "token": "{{$shared prodToken}}", + "secretKey": "prodSecret" + } + } } diff --git a/api/Api/Account/login.bru b/api/Api/Account/login.bru new file mode 100644 index 000000000..f216a2659 --- /dev/null +++ b/api/Api/Account/login.bru @@ -0,0 +1,24 @@ +meta { + name: login + type: http + seq: 1 +} + +post { + url: {{URL}}/api/VnUsers/sign-in + body: json + auth: none +} + +body:json { + {"user":"developer", "password": "nightmare"} +} + +body:multipart-form { + user: developer + password: nightmare +} + +script:post-response { + bru.setEnvVar('TOKEN', res.body.token) +} diff --git a/api/Api/Buy/-Buys -packaging.bru b/api/Api/Buy/-Buys -packaging.bru new file mode 100644 index 000000000..183654b06 --- /dev/null +++ b/api/Api/Buy/-Buys -packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Buys -packaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Chat/-chats-getServiceAuth.bru b/api/Api/Chat/-chats-getServiceAuth.bru new file mode 100644 index 000000000..676380a04 --- /dev/null +++ b/api/Api/Chat/-chats-getServiceAuth.bru @@ -0,0 +1,11 @@ +meta { + name: -chats-getServiceAuth + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/chats/getServiceAuth + body: none + auth: none +} diff --git a/api/Api/Chat/-chats-send.bru b/api/Api/Chat/-chats-send.bru new file mode 100644 index 000000000..99af4ca0f --- /dev/null +++ b/api/Api/Chat/-chats-send.bru @@ -0,0 +1,16 @@ +meta { + name: -chats-send + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/chats/send?to=@joan&message=Test message + body: none + auth: none +} + +query { + to: @joan + message: Test message +} diff --git a/api/Api/Chat/-chats-sendCheckingPresence.bru b/api/Api/Chat/-chats-sendCheckingPresence.bru new file mode 100644 index 000000000..dd175fe9a --- /dev/null +++ b/api/Api/Chat/-chats-sendCheckingPresence.bru @@ -0,0 +1,26 @@ +meta { + name: -chats-sendCheckingPresence + type: http + seq: 3 +} + +post { + url: https://salix.verdnatura.es/api/chats/sendCheckingPresence?recipientId=19069&message=Check Offline Status + body: json + auth: none +} + +query { + recipientId: 19069 + message: Check Offline Status +} + +headers { + Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY +} + +body:json { + { + "workerId":19591 + } +} diff --git a/api/Api/Client/-clients--id.bru b/api/Api/Client/-clients--id.bru new file mode 100644 index 000000000..4053ea818 --- /dev/null +++ b/api/Api/Client/-clients--id.bru @@ -0,0 +1,17 @@ +meta { + name: -clients--id + type: http + seq: 5 +} + +patch { + url: http://localhost:5000/api/clients/1101 + body: json + auth: none +} + +body:json { + { + "name": "Test client" + } +} diff --git a/api/Api/Client/-clients-findOne.bru b/api/Api/Client/-clients-findOne.bru new file mode 100644 index 000000000..638e7e7fc --- /dev/null +++ b/api/Api/Client/-clients-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -clients-findOne + type: http + seq: 6 +} + +get { + url: http://localhost:5000/api/clients/findOne?filter={"where": {"id": 1101}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1101}} +} diff --git a/api/Api/Client/-clients.bru b/api/Api/Client/-clients.bru new file mode 100644 index 000000000..3b339dd33 --- /dev/null +++ b/api/Api/Client/-clients.bru @@ -0,0 +1,22 @@ +meta { + name: -clients + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/clients?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 1300, + "name": "Customer name" + } +} diff --git a/api/Api/Client/-consumptionSendQueued.bru b/api/Api/Client/-consumptionSendQueued.bru new file mode 100644 index 000000000..9074bc4ba --- /dev/null +++ b/api/Api/Client/-consumptionSendQueued.bru @@ -0,0 +1,11 @@ +meta { + name: -consumptionSendQueued + type: http + seq: 7 +} + +post { + url: http://localhost:5000/api/clients/consumption-send-queued + body: none + auth: none +} diff --git a/api/Api/Collection/-collection_getTickets TEST.bru b/api/Api/Collection/-collection_getTickets TEST.bru new file mode 100644 index 000000000..49c686d3c --- /dev/null +++ b/api/Api/Collection/-collection_getTickets TEST.bru @@ -0,0 +1,21 @@ +meta { + name: -collection_getTickets TEST + type: http + seq: 3 +} + +post { + url: https://test-salix.verdnatura.es/api/Collections/999999/getTickets?print=false + body: multipartForm + auth: none +} + +query { + print: false + ~id: 1 +} + +headers { + Authorization: nEaXBUSjeC9FXvyfpl3qGbcBHlDiCqwbPmZyIICdUPCUYYMN3pSE8QlJRMNa10rK + ~Authorization: DEFAULT_TOKEN +} diff --git a/api/Api/Collection/-collection_getTickets.bru b/api/Api/Collection/-collection_getTickets.bru new file mode 100644 index 000000000..edf61d9e9 --- /dev/null +++ b/api/Api/Collection/-collection_getTickets.bru @@ -0,0 +1,21 @@ +meta { + name: -collection_getTickets + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/Collections/3/getTickets?print=false + body: multipartForm + auth: none +} + +query { + print: false + ~id: 1 +} + +headers { + Authorization: DEFAULT_TOKEN + ~Authorization: 6ZYlDCvAsZTPrSB8t7nNjySuEifhPACnBFIMy1gjgLHyOpahGKBtIdjNhR3DwiJC +} diff --git a/api/Api/Collection/-collections.bru b/api/Api/Collection/-collections.bru new file mode 100644 index 000000000..6ec61d3d8 --- /dev/null +++ b/api/Api/Collection/-collections.bru @@ -0,0 +1,15 @@ +meta { + name: -collections + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/collections?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Collection/-items--id.bru b/api/Api/Collection/-items--id.bru new file mode 100644 index 000000000..346387ed3 --- /dev/null +++ b/api/Api/Collection/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 7 +} + +patch { + url: http://localhost:5000/api/tickets/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Api/Collection/-items-findOne.bru b/api/Api/Collection/-items-findOne.bru new file mode 100644 index 000000000..46294662b --- /dev/null +++ b/api/Api/Collection/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 8 +} + +get { + url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Collection/-items.bru b/api/Api/Collection/-items.bru new file mode 100644 index 000000000..8207221b7 --- /dev/null +++ b/api/Api/Collection/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/items?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" + } +} diff --git a/api/Api/Edi/-edi-updateData.bru b/api/Api/Edi/-edi-updateData.bru new file mode 100644 index 000000000..7d2191a50 --- /dev/null +++ b/api/Api/Edi/-edi-updateData.bru @@ -0,0 +1,11 @@ +meta { + name: -edi-updateData + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/edis/updateData + body: none + auth: none +} diff --git a/api/Api/EmailUser/EmailUser.bru b/api/Api/EmailUser/EmailUser.bru new file mode 100644 index 000000000..373f6b924 --- /dev/null +++ b/api/Api/EmailUser/EmailUser.bru @@ -0,0 +1,25 @@ +meta { + name: EmailUser + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + body: json + auth: none +} + +query { + filter: {"where":{"code":"BBB"}} + ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] + ~where: [object Object] + ~limit: 20 + ~access_token: DEFAULT_TOKEN + ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} + ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D +} + +headers { + ~Content-Type: text/plain +} diff --git a/api/Api/Entry/-Entries- Add-packaging.bru b/api/Api/Entry/-Entries- Add-packaging.bru new file mode 100644 index 000000000..69c58589d --- /dev/null +++ b/api/Api/Entry/-Entries- Add-packaging.bru @@ -0,0 +1,20 @@ +meta { + name: -Entries- Add-packaging + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/Entries/addFromPackaging?supplier=1&isTravelReception=false + body: none + auth: none +} + +query { + supplier: 1 + isTravelReception: false +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Entry/-Entries--listPackaging.bru b/api/Api/Entry/-Entries--listPackaging.bru new file mode 100644 index 000000000..a52a21ed8 --- /dev/null +++ b/api/Api/Entry/-Entries--listPackaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--listPackaging + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Entry/-Entries--packaging Notes.bru b/api/Api/Entry/-Entries--packaging Notes.bru new file mode 100644 index 000000000..39df75f94 --- /dev/null +++ b/api/Api/Entry/-Entries--packaging Notes.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--packaging Notes + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Entry/-Entries--packaging.bru b/api/Api/Entry/-Entries--packaging.bru new file mode 100644 index 000000000..c9428f875 --- /dev/null +++ b/api/Api/Entry/-Entries--packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--packaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Api/Entry/-Entries-addFromBuy -packaging.bru new file mode 100644 index 000000000..da90a407f --- /dev/null +++ b/api/Api/Entry/-Entries-addFromBuy -packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries-addFromBuy -packaging + type: http + seq: 4 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Item/-item setVisibleDiscard Local.bru b/api/Api/Item/-item setVisibleDiscard Local.bru new file mode 100644 index 000000000..681546f39 --- /dev/null +++ b/api/Api/Item/-item setVisibleDiscard Local.bru @@ -0,0 +1,25 @@ +meta { + name: -item setVisibleDiscard Local + type: http + seq: 3 +} + +post { + url: http://localhost:5000/api/items/setVisibleDiscard + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":null + } + +} diff --git a/api/Api/Item/-item setVisibleDiscard TEST.bru b/api/Api/Item/-item setVisibleDiscard TEST.bru new file mode 100644 index 000000000..1b68c426c --- /dev/null +++ b/api/Api/Item/-item setVisibleDiscard TEST.bru @@ -0,0 +1,25 @@ +meta { + name: -item setVisibleDiscard TEST + type: http + seq: 4 +} + +post { + url: https://test-salix.verdnatura.es/api/items/setVisibleDiscard + body: json + auth: none +} + +headers { + Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn +} + +body:json { + { + "addressFk": 77, + "itemFk": 10, + "quantity": 1, + "warehouseFk": 60 + } + +} diff --git a/api/Api/Item/-item setVisibleDiscard.bru b/api/Api/Item/-item setVisibleDiscard.bru new file mode 100644 index 000000000..24e1a1591 --- /dev/null +++ b/api/Api/Item/-item setVisibleDiscard.bru @@ -0,0 +1,21 @@ +meta { + name: -item setVisibleDiscard + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/items/setVisibleDiscard + body: json + auth: none +} + +body:json { + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":1 + } + +} diff --git a/api/Api/Item/-items--id.bru b/api/Api/Item/-items--id.bru new file mode 100644 index 000000000..18a74500b --- /dev/null +++ b/api/Api/Item/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 8 +} + +patch { + url: http://localhost:5000/api/tickets/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Api/Item/-items-findOne.bru b/api/Api/Item/-items-findOne.bru new file mode 100644 index 000000000..1e76b1fff --- /dev/null +++ b/api/Api/Item/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 9 +} + +get { + url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Item/-items.bru b/api/Api/Item/-items.bru new file mode 100644 index 000000000..a5e582511 --- /dev/null +++ b/api/Api/Item/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/items?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" + } +} diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru new file mode 100644 index 000000000..5c7a296fd --- /dev/null +++ b/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru @@ -0,0 +1,15 @@ +meta { + name: ItemBarCodes--id-toItem Copy + type: http + seq: 4 +} + +get { + url: https://test-salix.verdnatura.es/api/ItemBarCodes/1/toItem + body: json + auth: none +} + +headers { + Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB +} diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru new file mode 100644 index 000000000..c2b7f9be4 --- /dev/null +++ b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru @@ -0,0 +1,11 @@ +meta { + name: ItemBarCodes--id-toItem + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/ItemBarCodes/1111111111/toItem + body: json + auth: none +} diff --git a/api/Api/ItemBarCode/ItemBarCodes.bru b/api/Api/ItemBarCode/ItemBarCodes.bru new file mode 100644 index 000000000..2d74419b3 --- /dev/null +++ b/api/Api/ItemBarCode/ItemBarCodes.bru @@ -0,0 +1,23 @@ +meta { + name: ItemBarCodes + type: http + seq: 2 +} + +delete { + url: http://localhost:5000/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}} + body: json + auth: none +} + +query { + filter: {"where": {"itemFk": 1,"code":"ASDDD"}} + ~update: {"where": {"itemFk": 1,"code":"ASDDD"}} +} + +body:json { + + + + NO ES POT FER DELETE AMB UN FILTRE de item i code, és necessari el id. +} diff --git a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru new file mode 100644 index 000000000..24c947a68 --- /dev/null +++ b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru @@ -0,0 +1,19 @@ +meta { + name: -itemImageQueues-downloadImages + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/itemImageQueues/download + body: none + auth: none +} + +headers { + Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz +} + +script:pre-request { + // +} diff --git a/api/Api/ItemImageQueue/-itemImageQueues.bru b/api/Api/ItemImageQueue/-itemImageQueues.bru new file mode 100644 index 000000000..e1262e77e --- /dev/null +++ b/api/Api/ItemImageQueue/-itemImageQueues.bru @@ -0,0 +1,11 @@ +meta { + name: -itemImageQueues + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/itemImageQueues + body: none + auth: none +} diff --git a/api/Api/ItemPackingType/ItemPackingTypes.bru b/api/Api/ItemPackingType/ItemPackingTypes.bru new file mode 100644 index 000000000..e5ec7eb91 --- /dev/null +++ b/api/Api/ItemPackingType/ItemPackingTypes.bru @@ -0,0 +1,15 @@ +meta { + name: ItemPackingTypes + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/ItemPackingTypes?filter={"where": {"isActive": true}} + body: none + auth: none +} + +query { + filter: {"where": {"isActive": true}} +} diff --git a/api/Api/ItemShelvings/-itemShelvings-id.bru b/api/Api/ItemShelvings/-itemShelvings-id.bru new file mode 100644 index 000000000..cc483a51d --- /dev/null +++ b/api/Api/ItemShelvings/-itemShelvings-id.bru @@ -0,0 +1,26 @@ +meta { + name: -itemShelvings-id + type: http + seq: 1 +} + +patch { + url: https://salix.verdnatura.es/api/itemShelvings/1352756 + body: json + auth: none +} + +query { + ~visible: 2 +} + +headers { + Authorization: MkgxUVLzf04VnaoHtQOqPdE5kTISOhfgB8ypHZmAaamOzPKkVZsz5gOovbVQ4O7j + ~Authorization: DEFAULT_TOKEN +} + +body:json { + { + "userFk":19591 + } +} diff --git a/api/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/Api/ItemShelvings/-itemShelvings-update TEST.bru new file mode 100644 index 000000000..69938ad71 --- /dev/null +++ b/api/Api/ItemShelvings/-itemShelvings-update TEST.bru @@ -0,0 +1,28 @@ +meta { + name: -itemShelvings-update TEST + type: http + seq: 3 +} + +post { + url: https://test-salix.verdnatura.es/api/ItemShelvings/update?where={"id": {"inq": [141461,141046]}} + body: json + auth: none +} + +query { + where: {"id": {"inq": [141461,141046]}} + ~filter: {"where": {"id": 1}} + ~where: {"id": {"in": [1, 3]}} + ~where: {"id": {"inq": [141461,141046]}} +} + +headers { + Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG +} + +body:json { + { + "isChecked":null + } +} diff --git a/api/Api/ItemShelvings/-itemShelvings-update.bru b/api/Api/ItemShelvings/-itemShelvings-update.bru new file mode 100644 index 000000000..4b0438f5f --- /dev/null +++ b/api/Api/ItemShelvings/-itemShelvings-update.bru @@ -0,0 +1,28 @@ +meta { + name: -itemShelvings-update + type: http + seq: 2 +} + +post { + url: http://localhost:3000/api/itemShelvings/update?where={"id": {"inq": [1,3]}} + body: json + auth: none +} + +query { + where: {"id": {"inq": [1,3]}} + ~filter: {"where": {"id": 1}} + ~filter: {"id": {"in": [1, 3]}} + ~where: {"id": {"in": [1, 3]}} +} + +headers { + Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY +} + +body:json { + { + "isChecked":null + } +} diff --git a/api/Api/Notifications/Send.bru b/api/Api/Notifications/Send.bru new file mode 100644 index 000000000..fe0d850a9 --- /dev/null +++ b/api/Api/Notifications/Send.bru @@ -0,0 +1,11 @@ +meta { + name: Send + type: http + seq: 1 +} + +get { + url: + body: none + auth: none +} diff --git a/api/Api/ShelvingLog/ShelvingLogs.bru b/api/Api/ShelvingLog/ShelvingLogs.bru new file mode 100644 index 000000000..a97cbce22 --- /dev/null +++ b/api/Api/ShelvingLog/ShelvingLogs.bru @@ -0,0 +1,18 @@ +meta { + name: ShelvingLogs + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} + body: json + auth: none +} + +query { + filter: {"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} + ~include: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"],"include":{"relation":"worker","scope":{"fields":["id"]}}}}],"where":{"originFk":"5"},"limit":20} + ~where: [object Object] + ~limit: 20 +} diff --git a/api/Api/ShelvingLog/Shelvings.bru b/api/Api/ShelvingLog/Shelvings.bru new file mode 100644 index 000000000..1248d2ee1 --- /dev/null +++ b/api/Api/ShelvingLog/Shelvings.bru @@ -0,0 +1,25 @@ +meta { + name: Shelvings + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + body: json + auth: none +} + +query { + filter: {"where":{"code":"BBB"}} + ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] + ~where: [object Object] + ~limit: 20 + ~access_token: DEFAULT_TOKEN + ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} + ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D +} + +headers { + ~Content-Type: text/plain +} diff --git a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru new file mode 100644 index 000000000..188c2c8fc --- /dev/null +++ b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Supplier--id--getItemsPackaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Api/Ticket/--id-delivery-note.bru b/api/Api/Ticket/--id-delivery-note.bru new file mode 100644 index 000000000..9c6a209b9 --- /dev/null +++ b/api/Api/Ticket/--id-delivery-note.bru @@ -0,0 +1,15 @@ +meta { + name: --id-delivery-note + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/tickets/delivery-note?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Ticket/-tickets Advanced.bru b/api/Api/Ticket/-tickets Advanced.bru new file mode 100644 index 000000000..2cdf36214 --- /dev/null +++ b/api/Api/Ticket/-tickets Advanced.bru @@ -0,0 +1,27 @@ +meta { + name: -tickets Advanced + type: http + seq: 5 +} + +post { + url: http://localhost:3000/api/packingSiteAdvanceds + body: json + auth: none +} + +query { + ~workerFk: 1 + ~ticketFk: 2 +} + +headers { + Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP +} + +body:json { + { + "workerFk": 1, + "ticketFk":2 + } +} diff --git a/api/Api/Ticket/-tickets--id Notes.bru b/api/Api/Ticket/-tickets--id Notes.bru new file mode 100644 index 000000000..7284b6582 --- /dev/null +++ b/api/Api/Ticket/-tickets--id Notes.bru @@ -0,0 +1,33 @@ +meta { + name: -tickets--id Notes + type: http + seq: 10 +} + +post { + url: https://test-salix.verdnatura.es/api/TicketObservations/crud?ticketFk=4379408 + body: json + auth: none +} + +query { + ticketFk: 4379408 +} + +headers { + Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg +} + +body:json { + { + { + "ticketFk": "4379408", + "$orgIndex": null, + "$oldData": null, + "$isNew": true, + "observationTypeFk": 3, + "description": "fdas asd as" + } + + } +} diff --git a/api/Api/Ticket/-tickets--id.bru b/api/Api/Ticket/-tickets--id.bru new file mode 100644 index 000000000..d617fd377 --- /dev/null +++ b/api/Api/Ticket/-tickets--id.bru @@ -0,0 +1,17 @@ +meta { + name: -tickets--id + type: http + seq: 9 +} + +patch { + url: http://localhost:5000/api/items/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Api/Ticket/-tickets-client.bru b/api/Api/Ticket/-tickets-client.bru new file mode 100644 index 000000000..e5612c0cf --- /dev/null +++ b/api/Api/Ticket/-tickets-client.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-client + type: http + seq: 6 +} + +get { + url: http://localhost:5000/api/tickets/1/client?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Ticket/-tickets-findOne.bru b/api/Api/Ticket/-tickets-findOne.bru new file mode 100644 index 000000000..79b1eaa01 --- /dev/null +++ b/api/Api/Ticket/-tickets-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-findOne + type: http + seq: 11 +} + +get { + url: http://localhost:5000/api/tickets/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Ticket/-tickets-saveSign.bru b/api/Api/Ticket/-tickets-saveSign.bru new file mode 100644 index 000000000..5c5bc4dc3 --- /dev/null +++ b/api/Api/Ticket/-tickets-saveSign.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-saveSign + type: http + seq: 12 +} + +get { + url: http://localhost:5000/api/tickets/saveSign?tickets= + body: none + auth: none +} + +query { + tickets: +} diff --git a/api/Api/Ticket/-tickets-transferSales.bru b/api/Api/Ticket/-tickets-transferSales.bru new file mode 100644 index 000000000..1c136d850 --- /dev/null +++ b/api/Api/Ticket/-tickets-transferSales.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-transferSales + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/tickets?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Ticket/-tickets.bru b/api/Api/Ticket/-tickets.bru new file mode 100644 index 000000000..6ad2a15e9 --- /dev/null +++ b/api/Api/Ticket/-tickets.bru @@ -0,0 +1,21 @@ +meta { + name: -tickets + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/tickets?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 30 + } +} diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru new file mode 100644 index 000000000..637127f15 --- /dev/null +++ b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru @@ -0,0 +1,27 @@ +meta { + name: -ExpeditionStates-addState Copy + type: http + seq: 2 +} + +post { + url: https://test-salix.verdnatura.es/api/ExpeditionStates/addExpeditionState + body: json + auth: none +} + +headers { + Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB +} + +body:json { + { + "expeditions": [ + { + "expeditionFk": 7437897, + "stateCode": "LOST" + } + + ] + } +} diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru new file mode 100644 index 000000000..251b4c7ea --- /dev/null +++ b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru @@ -0,0 +1,31 @@ +meta { + name: -ExpeditionStates-addState + type: http + seq: 1 +} + +post { + url: http://localhost:5000/api/ExpeditionStates/addExpeditionState + body: json + auth: none +} + +headers { + Authorization: V75Nc9jxXSIyT5VpnPSXCtnFaaczzJ54oLRas2CbVbzUDmvaLHTp6VIGt5j0aFZt + ~Authorization: DEFAULT_TOKEN +} + +body:json { + { + "expeditions": [ + { + "expeditionFk": 1, + "stateCode": "ON DELIVERY" + }, + { + "expeditionFk": 2, + "stateCode": "LOST" + } + ] + } +} diff --git a/api/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Api/operator/-Operators- get sector - labeler Copy.bru new file mode 100644 index 000000000..ec111ad82 --- /dev/null +++ b/api/Api/operator/-Operators- get sector - labeler Copy.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- get sector - labeler Copy + type: http + seq: 6 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Api/operator/-Operators- get sector - labeler.bru b/api/Api/operator/-Operators- get sector - labeler.bru new file mode 100644 index 000000000..0ea6814e3 --- /dev/null +++ b/api/Api/operator/-Operators- get sector - labeler.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- get sector - labeler + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Api/operator/-Operators- get.bru b/api/Api/operator/-Operators- get.bru new file mode 100644 index 000000000..6ea1faab1 --- /dev/null +++ b/api/Api/operator/-Operators- get.bru @@ -0,0 +1,26 @@ +meta { + name: -Operators- get + type: http + seq: 2 +} + +get { + url: http://test-salix.verdnatura.es/api/Operators/19591?filter={"include":"sector"} + body: json + auth: none +} + +query { + filter: {"include":"sector"} +} + +headers { + Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy +} + +body:json { + { + "sectorFk":2, + "labelerFk":null + } +} diff --git a/api/Api/operator/-Operators- labeler.bru b/api/Api/operator/-Operators- labeler.bru new file mode 100644 index 000000000..901a7ed5c --- /dev/null +++ b/api/Api/operator/-Operators- labeler.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- labeler + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Api/operator/-Operators- sector Copy.bru b/api/Api/operator/-Operators- sector Copy.bru new file mode 100644 index 000000000..0b2911a3d --- /dev/null +++ b/api/Api/operator/-Operators- sector Copy.bru @@ -0,0 +1,23 @@ +meta { + name: -Operators- sector Copy + type: http + seq: 3 +} + +patch { + url: https://salix.verdnatura.es/api/Operators/19591 + body: json + auth: none +} + +headers { + Authorization: sccVCOzCIqNvEUZtjf9FYJfxkCQImjcecS8xHzvjAxYW9pt34lngc8dcgLft5Kyn + ~Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp +} + +body:json { + { + "sectorFk":31, + "labelerFk":null + } +} diff --git a/api/Api/operator/-Operators- sector.bru b/api/Api/operator/-Operators- sector.bru new file mode 100644 index 000000000..936f9936d --- /dev/null +++ b/api/Api/operator/-Operators- sector.bru @@ -0,0 +1,26 @@ +meta { + name: -Operators- sector + type: http + seq: 1 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFK]=9 + body: json + auth: none +} + +query { + where[workerFK]: 9 +} + +headers { + Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp +} + +body:json { + { + "sectorFk":2, + "labelerFk":null + } +} diff --git a/api/bruno.json b/api/bruno.json new file mode 100644 index 000000000..4096dba7e --- /dev/null +++ b/api/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "Salix", + "type": "collection" +} \ No newline at end of file diff --git a/api/environments/test.bru b/api/environments/test.bru new file mode 100644 index 000000000..39721f394 --- /dev/null +++ b/api/environments/test.bru @@ -0,0 +1,4 @@ +vars { + URL: http://localhost:3000 + TOKEN: +} diff --git a/api/result.json b/api/result.json new file mode 100644 index 000000000..c056dd9c8 --- /dev/null +++ b/api/result.json @@ -0,0 +1,55 @@ +{ + "summary": { + "totalRequests": 1, + "passedRequests": 1, + "failedRequests": 0, + "totalAssertions": 0, + "passedAssertions": 0, + "failedAssertions": 0, + "totalTests": 0, + "passedTests": 0, + "failedTests": 0 + }, + "results": [ + { + "request": { + "method": "POST", + "url": "http://localhost:3000/api/VnUsers/sign-in", + "headers": { + "content-type": "application/json" + }, + "data": { + "user": "developer", + "password": "nightmare" + } + }, + "response": { + "status": 200, + "statusText": "OK", + "headers": { + "x-xss-protection": "1; mode=block", + "x-frame-options": "SAMEORIGIN", + "strict-transport-security": "max-age=0; includeSubDomains", + "x-download-options": "noopen", + "x-content-type-options": "nosniff", + "salix-version": "23.52.01", + "content-type": "application/json; charset=utf-8", + "content-length": "90", + "etag": "W/\"5a-zZa5o8ppwlY0gujzj8JC8aqHkyg\"", + "vary": "Accept-Encoding", + "date": "Wed, 13 Dec 2023 09:58:36 GMT", + "connection": "keep-alive", + "keep-alive": "timeout=5" + }, + "data": { + "token": "xeA1FERKLiqoCAmP3j1WHawFn71o5Nb4vITv6kYRWjzhiTlurXLfOEmBoiVMugKa", + "ttl": 1209600 + }, + "responseTime": 164 + }, + "error": null, + "assertionResults": [], + "testResults": [] + } + ] +} \ No newline at end of file diff --git a/api/test.http b/api/test.http new file mode 100644 index 000000000..682f957a4 --- /dev/null +++ b/api/test.http @@ -0,0 +1,7 @@ +POST /api/VnUsers/sign-in HTTP/1.1 +Content-Type: application/json +Host: {{host}} +Content-Length: 45 + +{"user":"developer", "password": "nightmare"} + -- 2.40.1 From d6f283738fef6344b1b2f52ee8f8b5829224e15e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 13 Dec 2023 11:32:01 +0100 Subject: [PATCH 2/9] refs #6451 bruno approach --- api/Salix/Api/Account/asd.bru | 11 +++++++ api/Salix/Api/Account/login.bru | 16 +++++++++ api/Salix/Api/Buy/-Buys -packaging.bru | 19 +++++++++++ api/Salix/Api/Chat/-chats-getServiceAuth.bru | 11 +++++++ api/Salix/Api/Chat/-chats-send.bru | 16 +++++++++ .../Api/Chat/-chats-sendCheckingPresence.bru | 26 +++++++++++++++ api/Salix/Api/Client/-clients--id.bru | 17 ++++++++++ api/Salix/Api/Client/-clients-findOne.bru | 15 +++++++++ api/Salix/Api/Client/-clients.bru | 22 +++++++++++++ .../Api/Client/-consumptionSendQueued.bru | 11 +++++++ .../-collection_getTickets TEST.bru | 21 ++++++++++++ .../Api/Collection/-collection_getTickets.bru | 21 ++++++++++++ api/Salix/Api/Collection/-collections.bru | 15 +++++++++ api/Salix/Api/Collection/-items--id.bru | 17 ++++++++++ api/Salix/Api/Collection/-items-findOne.bru | 15 +++++++++ api/Salix/Api/Collection/-items.bru | 25 ++++++++++++++ api/Salix/Api/Edi/-edi-updateData.bru | 11 +++++++ api/Salix/Api/EmailUser/EmailUser.bru | 25 ++++++++++++++ .../Api/Entry/-Entries- Add-packaging.bru | 20 +++++++++++ .../Api/Entry/-Entries--listPackaging.bru | 19 +++++++++++ .../Api/Entry/-Entries--packaging Notes.bru | 19 +++++++++++ api/Salix/Api/Entry/-Entries--packaging.bru | 19 +++++++++++ .../Entry/-Entries-addFromBuy -packaging.bru | 19 +++++++++++ .../Item/-item setVisibleDiscard Local.bru | 25 ++++++++++++++ .../Api/Item/-item setVisibleDiscard TEST.bru | 25 ++++++++++++++ .../Api/Item/-item setVisibleDiscard.bru | 21 ++++++++++++ api/Salix/Api/Item/-items--id.bru | 17 ++++++++++ api/Salix/Api/Item/-items-findOne.bru | 15 +++++++++ api/Salix/Api/Item/-items.bru | 25 ++++++++++++++ .../ItemBarCodes--id-toItem Copy.bru | 15 +++++++++ .../ItemBarCode/ItemBarCodes--id-toItem.bru | 11 +++++++ api/Salix/Api/ItemBarCode/ItemBarCodes.bru | 23 +++++++++++++ .../-itemImageQueues-downloadImages.bru | 19 +++++++++++ .../Api/ItemImageQueue/-itemImageQueues.bru | 11 +++++++ .../Api/ItemPackingType/ItemPackingTypes.bru | 15 +++++++++ .../Api/ItemShelvings/-itemShelvings-id.bru | 26 +++++++++++++++ .../-itemShelvings-update TEST.bru | 28 ++++++++++++++++ .../ItemShelvings/-itemShelvings-update.bru | 28 ++++++++++++++++ api/Salix/Api/Notifications/Send.bru | 11 +++++++ api/Salix/Api/ShelvingLog/ShelvingLogs.bru | 18 ++++++++++ api/Salix/Api/ShelvingLog/Shelvings.bru | 25 ++++++++++++++ .../-Supplier--id--getItemsPackaging.bru | 19 +++++++++++ api/Salix/Api/Ticket/--id-delivery-note.bru | 15 +++++++++ api/Salix/Api/Ticket/-tickets Advanced.bru | 27 +++++++++++++++ api/Salix/Api/Ticket/-tickets--id Notes.bru | 33 +++++++++++++++++++ api/Salix/Api/Ticket/-tickets--id.bru | 17 ++++++++++ api/Salix/Api/Ticket/-tickets-client.bru | 15 +++++++++ api/Salix/Api/Ticket/-tickets-findOne.bru | 15 +++++++++ api/Salix/Api/Ticket/-tickets-saveSign.bru | 15 +++++++++ .../Api/Ticket/-tickets-transferSales.bru | 15 +++++++++ api/Salix/Api/Ticket/-tickets.bru | 21 ++++++++++++ .../-ExpeditionStates-addState Copy.bru | 27 +++++++++++++++ .../-ExpeditionStates-addState.bru | 31 +++++++++++++++++ .../-Operators- get sector - labeler Copy.bru | 25 ++++++++++++++ .../-Operators- get sector - labeler.bru | 25 ++++++++++++++ api/Salix/Api/operator/-Operators- get.bru | 26 +++++++++++++++ .../Api/operator/-Operators- labeler.bru | 25 ++++++++++++++ .../Api/operator/-Operators- sector Copy.bru | 23 +++++++++++++ api/Salix/Api/operator/-Operators- sector.bru | 26 +++++++++++++++ api/Salix/bruno.json | 5 +++ api/Salix/environments/test.bru | 3 ++ api/bruno.json | 4 +-- api/test.bru | 24 ++++++++++++++ 63 files changed, 1202 insertions(+), 2 deletions(-) create mode 100644 api/Salix/Api/Account/asd.bru create mode 100644 api/Salix/Api/Account/login.bru create mode 100644 api/Salix/Api/Buy/-Buys -packaging.bru create mode 100644 api/Salix/Api/Chat/-chats-getServiceAuth.bru create mode 100644 api/Salix/Api/Chat/-chats-send.bru create mode 100644 api/Salix/Api/Chat/-chats-sendCheckingPresence.bru create mode 100644 api/Salix/Api/Client/-clients--id.bru create mode 100644 api/Salix/Api/Client/-clients-findOne.bru create mode 100644 api/Salix/Api/Client/-clients.bru create mode 100644 api/Salix/Api/Client/-consumptionSendQueued.bru create mode 100644 api/Salix/Api/Collection/-collection_getTickets TEST.bru create mode 100644 api/Salix/Api/Collection/-collection_getTickets.bru create mode 100644 api/Salix/Api/Collection/-collections.bru create mode 100644 api/Salix/Api/Collection/-items--id.bru create mode 100644 api/Salix/Api/Collection/-items-findOne.bru create mode 100644 api/Salix/Api/Collection/-items.bru create mode 100644 api/Salix/Api/Edi/-edi-updateData.bru create mode 100644 api/Salix/Api/EmailUser/EmailUser.bru create mode 100644 api/Salix/Api/Entry/-Entries- Add-packaging.bru create mode 100644 api/Salix/Api/Entry/-Entries--listPackaging.bru create mode 100644 api/Salix/Api/Entry/-Entries--packaging Notes.bru create mode 100644 api/Salix/Api/Entry/-Entries--packaging.bru create mode 100644 api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru create mode 100644 api/Salix/Api/Item/-item setVisibleDiscard Local.bru create mode 100644 api/Salix/Api/Item/-item setVisibleDiscard TEST.bru create mode 100644 api/Salix/Api/Item/-item setVisibleDiscard.bru create mode 100644 api/Salix/Api/Item/-items--id.bru create mode 100644 api/Salix/Api/Item/-items-findOne.bru create mode 100644 api/Salix/Api/Item/-items.bru create mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru create mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru create mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes.bru create mode 100644 api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru create mode 100644 api/Salix/Api/ItemImageQueue/-itemImageQueues.bru create mode 100644 api/Salix/Api/ItemPackingType/ItemPackingTypes.bru create mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-id.bru create mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru create mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-update.bru create mode 100644 api/Salix/Api/Notifications/Send.bru create mode 100644 api/Salix/Api/ShelvingLog/ShelvingLogs.bru create mode 100644 api/Salix/Api/ShelvingLog/Shelvings.bru create mode 100644 api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru create mode 100644 api/Salix/Api/Ticket/--id-delivery-note.bru create mode 100644 api/Salix/Api/Ticket/-tickets Advanced.bru create mode 100644 api/Salix/Api/Ticket/-tickets--id Notes.bru create mode 100644 api/Salix/Api/Ticket/-tickets--id.bru create mode 100644 api/Salix/Api/Ticket/-tickets-client.bru create mode 100644 api/Salix/Api/Ticket/-tickets-findOne.bru create mode 100644 api/Salix/Api/Ticket/-tickets-saveSign.bru create mode 100644 api/Salix/Api/Ticket/-tickets-transferSales.bru create mode 100644 api/Salix/Api/Ticket/-tickets.bru create mode 100644 api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru create mode 100644 api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru create mode 100644 api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru create mode 100644 api/Salix/Api/operator/-Operators- get sector - labeler.bru create mode 100644 api/Salix/Api/operator/-Operators- get.bru create mode 100644 api/Salix/Api/operator/-Operators- labeler.bru create mode 100644 api/Salix/Api/operator/-Operators- sector Copy.bru create mode 100644 api/Salix/Api/operator/-Operators- sector.bru create mode 100644 api/Salix/bruno.json create mode 100644 api/Salix/environments/test.bru create mode 100644 api/test.bru diff --git a/api/Salix/Api/Account/asd.bru b/api/Salix/Api/Account/asd.bru new file mode 100644 index 000000000..a348a38c4 --- /dev/null +++ b/api/Salix/Api/Account/asd.bru @@ -0,0 +1,11 @@ +meta { + name: asd + type: http + seq: 1 +} + +get { + url: + body: none + auth: none +} diff --git a/api/Salix/Api/Account/login.bru b/api/Salix/Api/Account/login.bru new file mode 100644 index 000000000..1f0af5335 --- /dev/null +++ b/api/Salix/Api/Account/login.bru @@ -0,0 +1,16 @@ +meta { + name: login + type: http + seq: 1 +} + +post { + url: {{URL}}/api/VnUsers/sign-in + body: json + auth: none +} + +body:json { + {"user":"developer", "password": "nightmare"} +} + diff --git a/api/Salix/Api/Buy/-Buys -packaging.bru b/api/Salix/Api/Buy/-Buys -packaging.bru new file mode 100644 index 000000000..183654b06 --- /dev/null +++ b/api/Salix/Api/Buy/-Buys -packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Buys -packaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Chat/-chats-getServiceAuth.bru b/api/Salix/Api/Chat/-chats-getServiceAuth.bru new file mode 100644 index 000000000..676380a04 --- /dev/null +++ b/api/Salix/Api/Chat/-chats-getServiceAuth.bru @@ -0,0 +1,11 @@ +meta { + name: -chats-getServiceAuth + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/chats/getServiceAuth + body: none + auth: none +} diff --git a/api/Salix/Api/Chat/-chats-send.bru b/api/Salix/Api/Chat/-chats-send.bru new file mode 100644 index 000000000..99af4ca0f --- /dev/null +++ b/api/Salix/Api/Chat/-chats-send.bru @@ -0,0 +1,16 @@ +meta { + name: -chats-send + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/chats/send?to=@joan&message=Test message + body: none + auth: none +} + +query { + to: @joan + message: Test message +} diff --git a/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru b/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru new file mode 100644 index 000000000..dd175fe9a --- /dev/null +++ b/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru @@ -0,0 +1,26 @@ +meta { + name: -chats-sendCheckingPresence + type: http + seq: 3 +} + +post { + url: https://salix.verdnatura.es/api/chats/sendCheckingPresence?recipientId=19069&message=Check Offline Status + body: json + auth: none +} + +query { + recipientId: 19069 + message: Check Offline Status +} + +headers { + Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY +} + +body:json { + { + "workerId":19591 + } +} diff --git a/api/Salix/Api/Client/-clients--id.bru b/api/Salix/Api/Client/-clients--id.bru new file mode 100644 index 000000000..4053ea818 --- /dev/null +++ b/api/Salix/Api/Client/-clients--id.bru @@ -0,0 +1,17 @@ +meta { + name: -clients--id + type: http + seq: 5 +} + +patch { + url: http://localhost:5000/api/clients/1101 + body: json + auth: none +} + +body:json { + { + "name": "Test client" + } +} diff --git a/api/Salix/Api/Client/-clients-findOne.bru b/api/Salix/Api/Client/-clients-findOne.bru new file mode 100644 index 000000000..638e7e7fc --- /dev/null +++ b/api/Salix/Api/Client/-clients-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -clients-findOne + type: http + seq: 6 +} + +get { + url: http://localhost:5000/api/clients/findOne?filter={"where": {"id": 1101}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1101}} +} diff --git a/api/Salix/Api/Client/-clients.bru b/api/Salix/Api/Client/-clients.bru new file mode 100644 index 000000000..3b339dd33 --- /dev/null +++ b/api/Salix/Api/Client/-clients.bru @@ -0,0 +1,22 @@ +meta { + name: -clients + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/clients?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 1300, + "name": "Customer name" + } +} diff --git a/api/Salix/Api/Client/-consumptionSendQueued.bru b/api/Salix/Api/Client/-consumptionSendQueued.bru new file mode 100644 index 000000000..9074bc4ba --- /dev/null +++ b/api/Salix/Api/Client/-consumptionSendQueued.bru @@ -0,0 +1,11 @@ +meta { + name: -consumptionSendQueued + type: http + seq: 7 +} + +post { + url: http://localhost:5000/api/clients/consumption-send-queued + body: none + auth: none +} diff --git a/api/Salix/Api/Collection/-collection_getTickets TEST.bru b/api/Salix/Api/Collection/-collection_getTickets TEST.bru new file mode 100644 index 000000000..49c686d3c --- /dev/null +++ b/api/Salix/Api/Collection/-collection_getTickets TEST.bru @@ -0,0 +1,21 @@ +meta { + name: -collection_getTickets TEST + type: http + seq: 3 +} + +post { + url: https://test-salix.verdnatura.es/api/Collections/999999/getTickets?print=false + body: multipartForm + auth: none +} + +query { + print: false + ~id: 1 +} + +headers { + Authorization: nEaXBUSjeC9FXvyfpl3qGbcBHlDiCqwbPmZyIICdUPCUYYMN3pSE8QlJRMNa10rK + ~Authorization: DEFAULT_TOKEN +} diff --git a/api/Salix/Api/Collection/-collection_getTickets.bru b/api/Salix/Api/Collection/-collection_getTickets.bru new file mode 100644 index 000000000..edf61d9e9 --- /dev/null +++ b/api/Salix/Api/Collection/-collection_getTickets.bru @@ -0,0 +1,21 @@ +meta { + name: -collection_getTickets + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/Collections/3/getTickets?print=false + body: multipartForm + auth: none +} + +query { + print: false + ~id: 1 +} + +headers { + Authorization: DEFAULT_TOKEN + ~Authorization: 6ZYlDCvAsZTPrSB8t7nNjySuEifhPACnBFIMy1gjgLHyOpahGKBtIdjNhR3DwiJC +} diff --git a/api/Salix/Api/Collection/-collections.bru b/api/Salix/Api/Collection/-collections.bru new file mode 100644 index 000000000..6ec61d3d8 --- /dev/null +++ b/api/Salix/Api/Collection/-collections.bru @@ -0,0 +1,15 @@ +meta { + name: -collections + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/collections?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Collection/-items--id.bru b/api/Salix/Api/Collection/-items--id.bru new file mode 100644 index 000000000..346387ed3 --- /dev/null +++ b/api/Salix/Api/Collection/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 7 +} + +patch { + url: http://localhost:5000/api/tickets/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Salix/Api/Collection/-items-findOne.bru b/api/Salix/Api/Collection/-items-findOne.bru new file mode 100644 index 000000000..46294662b --- /dev/null +++ b/api/Salix/Api/Collection/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 8 +} + +get { + url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Collection/-items.bru b/api/Salix/Api/Collection/-items.bru new file mode 100644 index 000000000..8207221b7 --- /dev/null +++ b/api/Salix/Api/Collection/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/items?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" + } +} diff --git a/api/Salix/Api/Edi/-edi-updateData.bru b/api/Salix/Api/Edi/-edi-updateData.bru new file mode 100644 index 000000000..7d2191a50 --- /dev/null +++ b/api/Salix/Api/Edi/-edi-updateData.bru @@ -0,0 +1,11 @@ +meta { + name: -edi-updateData + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/edis/updateData + body: none + auth: none +} diff --git a/api/Salix/Api/EmailUser/EmailUser.bru b/api/Salix/Api/EmailUser/EmailUser.bru new file mode 100644 index 000000000..373f6b924 --- /dev/null +++ b/api/Salix/Api/EmailUser/EmailUser.bru @@ -0,0 +1,25 @@ +meta { + name: EmailUser + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + body: json + auth: none +} + +query { + filter: {"where":{"code":"BBB"}} + ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] + ~where: [object Object] + ~limit: 20 + ~access_token: DEFAULT_TOKEN + ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} + ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D +} + +headers { + ~Content-Type: text/plain +} diff --git a/api/Salix/Api/Entry/-Entries- Add-packaging.bru b/api/Salix/Api/Entry/-Entries- Add-packaging.bru new file mode 100644 index 000000000..69c58589d --- /dev/null +++ b/api/Salix/Api/Entry/-Entries- Add-packaging.bru @@ -0,0 +1,20 @@ +meta { + name: -Entries- Add-packaging + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/Entries/addFromPackaging?supplier=1&isTravelReception=false + body: none + auth: none +} + +query { + supplier: 1 + isTravelReception: false +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Entry/-Entries--listPackaging.bru b/api/Salix/Api/Entry/-Entries--listPackaging.bru new file mode 100644 index 000000000..a52a21ed8 --- /dev/null +++ b/api/Salix/Api/Entry/-Entries--listPackaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--listPackaging + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Entry/-Entries--packaging Notes.bru b/api/Salix/Api/Entry/-Entries--packaging Notes.bru new file mode 100644 index 000000000..39df75f94 --- /dev/null +++ b/api/Salix/Api/Entry/-Entries--packaging Notes.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--packaging Notes + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Entry/-Entries--packaging.bru b/api/Salix/Api/Entry/-Entries--packaging.bru new file mode 100644 index 000000000..c9428f875 --- /dev/null +++ b/api/Salix/Api/Entry/-Entries--packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--packaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru new file mode 100644 index 000000000..da90a407f --- /dev/null +++ b/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries-addFromBuy -packaging + type: http + seq: 4 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard Local.bru b/api/Salix/Api/Item/-item setVisibleDiscard Local.bru new file mode 100644 index 000000000..681546f39 --- /dev/null +++ b/api/Salix/Api/Item/-item setVisibleDiscard Local.bru @@ -0,0 +1,25 @@ +meta { + name: -item setVisibleDiscard Local + type: http + seq: 3 +} + +post { + url: http://localhost:5000/api/items/setVisibleDiscard + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":null + } + +} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru b/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru new file mode 100644 index 000000000..1b68c426c --- /dev/null +++ b/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru @@ -0,0 +1,25 @@ +meta { + name: -item setVisibleDiscard TEST + type: http + seq: 4 +} + +post { + url: https://test-salix.verdnatura.es/api/items/setVisibleDiscard + body: json + auth: none +} + +headers { + Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn +} + +body:json { + { + "addressFk": 77, + "itemFk": 10, + "quantity": 1, + "warehouseFk": 60 + } + +} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard.bru b/api/Salix/Api/Item/-item setVisibleDiscard.bru new file mode 100644 index 000000000..24e1a1591 --- /dev/null +++ b/api/Salix/Api/Item/-item setVisibleDiscard.bru @@ -0,0 +1,21 @@ +meta { + name: -item setVisibleDiscard + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/items/setVisibleDiscard + body: json + auth: none +} + +body:json { + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":1 + } + +} diff --git a/api/Salix/Api/Item/-items--id.bru b/api/Salix/Api/Item/-items--id.bru new file mode 100644 index 000000000..18a74500b --- /dev/null +++ b/api/Salix/Api/Item/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 8 +} + +patch { + url: http://localhost:5000/api/tickets/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Salix/Api/Item/-items-findOne.bru b/api/Salix/Api/Item/-items-findOne.bru new file mode 100644 index 000000000..1e76b1fff --- /dev/null +++ b/api/Salix/Api/Item/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 9 +} + +get { + url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Item/-items.bru b/api/Salix/Api/Item/-items.bru new file mode 100644 index 000000000..a5e582511 --- /dev/null +++ b/api/Salix/Api/Item/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/items?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" + } +} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru new file mode 100644 index 000000000..5c7a296fd --- /dev/null +++ b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru @@ -0,0 +1,15 @@ +meta { + name: ItemBarCodes--id-toItem Copy + type: http + seq: 4 +} + +get { + url: https://test-salix.verdnatura.es/api/ItemBarCodes/1/toItem + body: json + auth: none +} + +headers { + Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB +} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru new file mode 100644 index 000000000..c2b7f9be4 --- /dev/null +++ b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru @@ -0,0 +1,11 @@ +meta { + name: ItemBarCodes--id-toItem + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/ItemBarCodes/1111111111/toItem + body: json + auth: none +} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes.bru new file mode 100644 index 000000000..2d74419b3 --- /dev/null +++ b/api/Salix/Api/ItemBarCode/ItemBarCodes.bru @@ -0,0 +1,23 @@ +meta { + name: ItemBarCodes + type: http + seq: 2 +} + +delete { + url: http://localhost:5000/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}} + body: json + auth: none +} + +query { + filter: {"where": {"itemFk": 1,"code":"ASDDD"}} + ~update: {"where": {"itemFk": 1,"code":"ASDDD"}} +} + +body:json { + + + + NO ES POT FER DELETE AMB UN FILTRE de item i code, és necessari el id. +} diff --git a/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru new file mode 100644 index 000000000..24c947a68 --- /dev/null +++ b/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru @@ -0,0 +1,19 @@ +meta { + name: -itemImageQueues-downloadImages + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/itemImageQueues/download + body: none + auth: none +} + +headers { + Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz +} + +script:pre-request { + // +} diff --git a/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru b/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru new file mode 100644 index 000000000..e1262e77e --- /dev/null +++ b/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru @@ -0,0 +1,11 @@ +meta { + name: -itemImageQueues + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/itemImageQueues + body: none + auth: none +} diff --git a/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru b/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru new file mode 100644 index 000000000..e5ec7eb91 --- /dev/null +++ b/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru @@ -0,0 +1,15 @@ +meta { + name: ItemPackingTypes + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/ItemPackingTypes?filter={"where": {"isActive": true}} + body: none + auth: none +} + +query { + filter: {"where": {"isActive": true}} +} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru new file mode 100644 index 000000000..cc483a51d --- /dev/null +++ b/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru @@ -0,0 +1,26 @@ +meta { + name: -itemShelvings-id + type: http + seq: 1 +} + +patch { + url: https://salix.verdnatura.es/api/itemShelvings/1352756 + body: json + auth: none +} + +query { + ~visible: 2 +} + +headers { + Authorization: MkgxUVLzf04VnaoHtQOqPdE5kTISOhfgB8ypHZmAaamOzPKkVZsz5gOovbVQ4O7j + ~Authorization: DEFAULT_TOKEN +} + +body:json { + { + "userFk":19591 + } +} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru new file mode 100644 index 000000000..69938ad71 --- /dev/null +++ b/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru @@ -0,0 +1,28 @@ +meta { + name: -itemShelvings-update TEST + type: http + seq: 3 +} + +post { + url: https://test-salix.verdnatura.es/api/ItemShelvings/update?where={"id": {"inq": [141461,141046]}} + body: json + auth: none +} + +query { + where: {"id": {"inq": [141461,141046]}} + ~filter: {"where": {"id": 1}} + ~where: {"id": {"in": [1, 3]}} + ~where: {"id": {"inq": [141461,141046]}} +} + +headers { + Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG +} + +body:json { + { + "isChecked":null + } +} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru new file mode 100644 index 000000000..4b0438f5f --- /dev/null +++ b/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru @@ -0,0 +1,28 @@ +meta { + name: -itemShelvings-update + type: http + seq: 2 +} + +post { + url: http://localhost:3000/api/itemShelvings/update?where={"id": {"inq": [1,3]}} + body: json + auth: none +} + +query { + where: {"id": {"inq": [1,3]}} + ~filter: {"where": {"id": 1}} + ~filter: {"id": {"in": [1, 3]}} + ~where: {"id": {"in": [1, 3]}} +} + +headers { + Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY +} + +body:json { + { + "isChecked":null + } +} diff --git a/api/Salix/Api/Notifications/Send.bru b/api/Salix/Api/Notifications/Send.bru new file mode 100644 index 000000000..fe0d850a9 --- /dev/null +++ b/api/Salix/Api/Notifications/Send.bru @@ -0,0 +1,11 @@ +meta { + name: Send + type: http + seq: 1 +} + +get { + url: + body: none + auth: none +} diff --git a/api/Salix/Api/ShelvingLog/ShelvingLogs.bru b/api/Salix/Api/ShelvingLog/ShelvingLogs.bru new file mode 100644 index 000000000..a97cbce22 --- /dev/null +++ b/api/Salix/Api/ShelvingLog/ShelvingLogs.bru @@ -0,0 +1,18 @@ +meta { + name: ShelvingLogs + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} + body: json + auth: none +} + +query { + filter: {"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} + ~include: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"],"include":{"relation":"worker","scope":{"fields":["id"]}}}}],"where":{"originFk":"5"},"limit":20} + ~where: [object Object] + ~limit: 20 +} diff --git a/api/Salix/Api/ShelvingLog/Shelvings.bru b/api/Salix/Api/ShelvingLog/Shelvings.bru new file mode 100644 index 000000000..1248d2ee1 --- /dev/null +++ b/api/Salix/Api/ShelvingLog/Shelvings.bru @@ -0,0 +1,25 @@ +meta { + name: Shelvings + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + body: json + auth: none +} + +query { + filter: {"where":{"code":"BBB"}} + ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] + ~where: [object Object] + ~limit: 20 + ~access_token: DEFAULT_TOKEN + ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} + ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D +} + +headers { + ~Content-Type: text/plain +} diff --git a/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru new file mode 100644 index 000000000..188c2c8fc --- /dev/null +++ b/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Supplier--id--getItemsPackaging + type: http + seq: 1 +} + +get { + url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN +} diff --git a/api/Salix/Api/Ticket/--id-delivery-note.bru b/api/Salix/Api/Ticket/--id-delivery-note.bru new file mode 100644 index 000000000..9c6a209b9 --- /dev/null +++ b/api/Salix/Api/Ticket/--id-delivery-note.bru @@ -0,0 +1,15 @@ +meta { + name: --id-delivery-note + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/tickets/delivery-note?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Ticket/-tickets Advanced.bru b/api/Salix/Api/Ticket/-tickets Advanced.bru new file mode 100644 index 000000000..2cdf36214 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets Advanced.bru @@ -0,0 +1,27 @@ +meta { + name: -tickets Advanced + type: http + seq: 5 +} + +post { + url: http://localhost:3000/api/packingSiteAdvanceds + body: json + auth: none +} + +query { + ~workerFk: 1 + ~ticketFk: 2 +} + +headers { + Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP +} + +body:json { + { + "workerFk": 1, + "ticketFk":2 + } +} diff --git a/api/Salix/Api/Ticket/-tickets--id Notes.bru b/api/Salix/Api/Ticket/-tickets--id Notes.bru new file mode 100644 index 000000000..7284b6582 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets--id Notes.bru @@ -0,0 +1,33 @@ +meta { + name: -tickets--id Notes + type: http + seq: 10 +} + +post { + url: https://test-salix.verdnatura.es/api/TicketObservations/crud?ticketFk=4379408 + body: json + auth: none +} + +query { + ticketFk: 4379408 +} + +headers { + Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg +} + +body:json { + { + { + "ticketFk": "4379408", + "$orgIndex": null, + "$oldData": null, + "$isNew": true, + "observationTypeFk": 3, + "description": "fdas asd as" + } + + } +} diff --git a/api/Salix/Api/Ticket/-tickets--id.bru b/api/Salix/Api/Ticket/-tickets--id.bru new file mode 100644 index 000000000..d617fd377 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets--id.bru @@ -0,0 +1,17 @@ +meta { + name: -tickets--id + type: http + seq: 9 +} + +patch { + url: http://localhost:5000/api/items/1 + body: json + auth: none +} + +body:json { + { + "name": "Test item" + } +} diff --git a/api/Salix/Api/Ticket/-tickets-client.bru b/api/Salix/Api/Ticket/-tickets-client.bru new file mode 100644 index 000000000..e5612c0cf --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets-client.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-client + type: http + seq: 6 +} + +get { + url: http://localhost:5000/api/tickets/1/client?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Ticket/-tickets-findOne.bru b/api/Salix/Api/Ticket/-tickets-findOne.bru new file mode 100644 index 000000000..79b1eaa01 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-findOne + type: http + seq: 11 +} + +get { + url: http://localhost:5000/api/tickets/findOne?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Ticket/-tickets-saveSign.bru b/api/Salix/Api/Ticket/-tickets-saveSign.bru new file mode 100644 index 000000000..5c5bc4dc3 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets-saveSign.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-saveSign + type: http + seq: 12 +} + +get { + url: http://localhost:5000/api/tickets/saveSign?tickets= + body: none + auth: none +} + +query { + tickets: +} diff --git a/api/Salix/Api/Ticket/-tickets-transferSales.bru b/api/Salix/Api/Ticket/-tickets-transferSales.bru new file mode 100644 index 000000000..1c136d850 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets-transferSales.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-transferSales + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/tickets?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Salix/Api/Ticket/-tickets.bru b/api/Salix/Api/Ticket/-tickets.bru new file mode 100644 index 000000000..6ad2a15e9 --- /dev/null +++ b/api/Salix/Api/Ticket/-tickets.bru @@ -0,0 +1,21 @@ +meta { + name: -tickets + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/tickets?filter={} + body: json + auth: none +} + +query { + filter: {} +} + +body:json { + { + "id": 30 + } +} diff --git a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru new file mode 100644 index 000000000..637127f15 --- /dev/null +++ b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru @@ -0,0 +1,27 @@ +meta { + name: -ExpeditionStates-addState Copy + type: http + seq: 2 +} + +post { + url: https://test-salix.verdnatura.es/api/ExpeditionStates/addExpeditionState + body: json + auth: none +} + +headers { + Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB +} + +body:json { + { + "expeditions": [ + { + "expeditionFk": 7437897, + "stateCode": "LOST" + } + + ] + } +} diff --git a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru new file mode 100644 index 000000000..251b4c7ea --- /dev/null +++ b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru @@ -0,0 +1,31 @@ +meta { + name: -ExpeditionStates-addState + type: http + seq: 1 +} + +post { + url: http://localhost:5000/api/ExpeditionStates/addExpeditionState + body: json + auth: none +} + +headers { + Authorization: V75Nc9jxXSIyT5VpnPSXCtnFaaczzJ54oLRas2CbVbzUDmvaLHTp6VIGt5j0aFZt + ~Authorization: DEFAULT_TOKEN +} + +body:json { + { + "expeditions": [ + { + "expeditionFk": 1, + "stateCode": "ON DELIVERY" + }, + { + "expeditionFk": 2, + "stateCode": "LOST" + } + ] + } +} diff --git a/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru new file mode 100644 index 000000000..ec111ad82 --- /dev/null +++ b/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- get sector - labeler Copy + type: http + seq: 6 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Salix/Api/operator/-Operators- get sector - labeler.bru b/api/Salix/Api/operator/-Operators- get sector - labeler.bru new file mode 100644 index 000000000..0ea6814e3 --- /dev/null +++ b/api/Salix/Api/operator/-Operators- get sector - labeler.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- get sector - labeler + type: http + seq: 5 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Salix/Api/operator/-Operators- get.bru b/api/Salix/Api/operator/-Operators- get.bru new file mode 100644 index 000000000..6ea1faab1 --- /dev/null +++ b/api/Salix/Api/operator/-Operators- get.bru @@ -0,0 +1,26 @@ +meta { + name: -Operators- get + type: http + seq: 2 +} + +get { + url: http://test-salix.verdnatura.es/api/Operators/19591?filter={"include":"sector"} + body: json + auth: none +} + +query { + filter: {"include":"sector"} +} + +headers { + Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy +} + +body:json { + { + "sectorFk":2, + "labelerFk":null + } +} diff --git a/api/Salix/Api/operator/-Operators- labeler.bru b/api/Salix/Api/operator/-Operators- labeler.bru new file mode 100644 index 000000000..901a7ed5c --- /dev/null +++ b/api/Salix/Api/operator/-Operators- labeler.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- labeler + type: http + seq: 4 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 +} + +body:json { + { + "labelerFk":2 + } +} diff --git a/api/Salix/Api/operator/-Operators- sector Copy.bru b/api/Salix/Api/operator/-Operators- sector Copy.bru new file mode 100644 index 000000000..0b2911a3d --- /dev/null +++ b/api/Salix/Api/operator/-Operators- sector Copy.bru @@ -0,0 +1,23 @@ +meta { + name: -Operators- sector Copy + type: http + seq: 3 +} + +patch { + url: https://salix.verdnatura.es/api/Operators/19591 + body: json + auth: none +} + +headers { + Authorization: sccVCOzCIqNvEUZtjf9FYJfxkCQImjcecS8xHzvjAxYW9pt34lngc8dcgLft5Kyn + ~Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp +} + +body:json { + { + "sectorFk":31, + "labelerFk":null + } +} diff --git a/api/Salix/Api/operator/-Operators- sector.bru b/api/Salix/Api/operator/-Operators- sector.bru new file mode 100644 index 000000000..936f9936d --- /dev/null +++ b/api/Salix/Api/operator/-Operators- sector.bru @@ -0,0 +1,26 @@ +meta { + name: -Operators- sector + type: http + seq: 1 +} + +post { + url: http://localhost:5000/api/Operators/update?where[workerFK]=9 + body: json + auth: none +} + +query { + where[workerFK]: 9 +} + +headers { + Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp +} + +body:json { + { + "sectorFk":2, + "labelerFk":null + } +} diff --git a/api/Salix/bruno.json b/api/Salix/bruno.json new file mode 100644 index 000000000..4096dba7e --- /dev/null +++ b/api/Salix/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "Salix", + "type": "collection" +} \ No newline at end of file diff --git a/api/Salix/environments/test.bru b/api/Salix/environments/test.bru new file mode 100644 index 000000000..ffa131c6e --- /dev/null +++ b/api/Salix/environments/test.bru @@ -0,0 +1,3 @@ +vars { + URL: http://localhost:3000 +} diff --git a/api/bruno.json b/api/bruno.json index 4096dba7e..c37803e07 100644 --- a/api/bruno.json +++ b/api/bruno.json @@ -1,5 +1,5 @@ { "version": "1", - "name": "Salix", + "name": "apiSalix", "type": "collection" -} \ No newline at end of file +} diff --git a/api/test.bru b/api/test.bru new file mode 100644 index 000000000..f216a2659 --- /dev/null +++ b/api/test.bru @@ -0,0 +1,24 @@ +meta { + name: login + type: http + seq: 1 +} + +post { + url: {{URL}}/api/VnUsers/sign-in + body: json + auth: none +} + +body:json { + {"user":"developer", "password": "nightmare"} +} + +body:multipart-form { + user: developer + password: nightmare +} + +script:post-response { + bru.setEnvVar('TOKEN', res.body.token) +} -- 2.40.1 From b7b5abbf530a58e5f32f964f29bec389a9e58fc7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 13 Dec 2023 11:33:02 +0100 Subject: [PATCH 3/9] refs #6451 extension approach --- .vscode/settings.json | 13 ++++++++----- api/apiSalix/items.http | 5 +++++ api/apiSalix/sign-in.http | 11 +++++++++++ 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 api/apiSalix/items.http create mode 100644 api/apiSalix/sign-in.http diff --git a/.vscode/settings.json b/.vscode/settings.json index e778aa5ce..a255cddb5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -11,24 +11,27 @@ "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, - "cSpell.words": ["salix", "fdescribe"], + "cSpell.words": [ + "salix", + "fdescribe" + ], "rest-client.previewOption": "body", "rest-client.environmentVariables": { "$shared": { "version": "v1", - "prodToken": "foo", - "nonProdToken": "bar" + "prodToken": "verdnatura", + "nonProdToken": "verdnatura" }, "local": { "version": "v2", - "host": "localhost:3000", + "host": "http://localhost:3000", "token": "{{$shared nonProdToken}}", "secretKey": "devSecret" }, "production": { "host": "example.com", "token": "{{$shared prodToken}}", - "secretKey": "prodSecret" + "secretKey" : "prodSecret" } } } diff --git a/api/apiSalix/items.http b/api/apiSalix/items.http new file mode 100644 index 000000000..b0a6d9cc8 --- /dev/null +++ b/api/apiSalix/items.http @@ -0,0 +1,5 @@ + +GET /api/items/findOne?filter=%7B%22where%22%3A%20%7B%22id%22%3A%201%7D%7D HTTP/1.1 +Authorization: {{token}} +Content-Type: application/json +Host: localhost:5000 diff --git a/api/apiSalix/sign-in.http b/api/apiSalix/sign-in.http new file mode 100644 index 000000000..068a1c218 --- /dev/null +++ b/api/apiSalix/sign-in.http @@ -0,0 +1,11 @@ + + +# @name login +POST /api/VnUsers/sign-in HTTP/1.1 +Content-Type: application/json +Host: localhost:3000 +Content-Length: 45 + +{"user":"developer", "password": "nightmare"} + + -- 2.40.1 From 441b0498009810abcf3766a15f80ffba5d6aab28 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 13 Dec 2023 11:35:19 +0100 Subject: [PATCH 4/9] refs #6451 restructure folders --- api/Salix/Api/Account/asd.bru | 11 ---- api/Salix/Api/Account/login.bru | 16 ------ api/Salix/Api/Buy/-Buys -packaging.bru | 19 ------- api/Salix/Api/Chat/-chats-getServiceAuth.bru | 11 ---- api/Salix/Api/Chat/-chats-send.bru | 16 ------ .../Api/Chat/-chats-sendCheckingPresence.bru | 26 --------- api/Salix/Api/Client/-clients--id.bru | 17 ------ api/Salix/Api/Client/-clients-findOne.bru | 15 ----- api/Salix/Api/Client/-clients.bru | 22 -------- .../Api/Client/-consumptionSendQueued.bru | 11 ---- .../-collection_getTickets TEST.bru | 21 ------- .../Api/Collection/-collection_getTickets.bru | 21 ------- api/Salix/Api/Collection/-collections.bru | 15 ----- api/Salix/Api/Collection/-items--id.bru | 17 ------ api/Salix/Api/Collection/-items-findOne.bru | 15 ----- api/Salix/Api/Collection/-items.bru | 25 --------- api/Salix/Api/Edi/-edi-updateData.bru | 11 ---- api/Salix/Api/EmailUser/EmailUser.bru | 25 --------- .../Api/Entry/-Entries- Add-packaging.bru | 20 ------- .../Api/Entry/-Entries--listPackaging.bru | 19 ------- .../Api/Entry/-Entries--packaging Notes.bru | 19 ------- api/Salix/Api/Entry/-Entries--packaging.bru | 19 ------- .../Entry/-Entries-addFromBuy -packaging.bru | 19 ------- .../Item/-item setVisibleDiscard Local.bru | 25 --------- .../Api/Item/-item setVisibleDiscard TEST.bru | 25 --------- .../Api/Item/-item setVisibleDiscard.bru | 21 ------- api/Salix/Api/Item/-items--id.bru | 17 ------ api/Salix/Api/Item/-items-findOne.bru | 15 ----- api/Salix/Api/Item/-items.bru | 25 --------- .../ItemBarCodes--id-toItem Copy.bru | 15 ----- .../ItemBarCode/ItemBarCodes--id-toItem.bru | 11 ---- api/Salix/Api/ItemBarCode/ItemBarCodes.bru | 23 -------- .../-itemImageQueues-downloadImages.bru | 19 ------- .../Api/ItemImageQueue/-itemImageQueues.bru | 11 ---- .../Api/ItemPackingType/ItemPackingTypes.bru | 15 ----- .../Api/ItemShelvings/-itemShelvings-id.bru | 26 --------- .../-itemShelvings-update TEST.bru | 28 ---------- .../ItemShelvings/-itemShelvings-update.bru | 28 ---------- api/Salix/Api/Notifications/Send.bru | 11 ---- api/Salix/Api/ShelvingLog/ShelvingLogs.bru | 18 ------ api/Salix/Api/ShelvingLog/Shelvings.bru | 25 --------- .../-Supplier--id--getItemsPackaging.bru | 19 ------- api/Salix/Api/Ticket/--id-delivery-note.bru | 15 ----- api/Salix/Api/Ticket/-tickets Advanced.bru | 27 --------- api/Salix/Api/Ticket/-tickets--id Notes.bru | 33 ----------- api/Salix/Api/Ticket/-tickets--id.bru | 17 ------ api/Salix/Api/Ticket/-tickets-client.bru | 15 ----- api/Salix/Api/Ticket/-tickets-findOne.bru | 15 ----- api/Salix/Api/Ticket/-tickets-saveSign.bru | 15 ----- .../Api/Ticket/-tickets-transferSales.bru | 15 ----- api/Salix/Api/Ticket/-tickets.bru | 21 ------- .../-ExpeditionStates-addState Copy.bru | 27 --------- .../-ExpeditionStates-addState.bru | 31 ----------- .../-Operators- get sector - labeler Copy.bru | 25 --------- .../-Operators- get sector - labeler.bru | 25 --------- api/Salix/Api/operator/-Operators- get.bru | 26 --------- .../Api/operator/-Operators- labeler.bru | 25 --------- .../Api/operator/-Operators- sector Copy.bru | 23 -------- api/Salix/Api/operator/-Operators- sector.bru | 26 --------- api/Salix/bruno.json | 5 -- api/Salix/environments/test.bru | 3 - api/{ => bruno}/Api/Account/login.bru | 0 api/{ => bruno}/Api/Buy/-Buys -packaging.bru | 0 .../Api/Chat/-chats-getServiceAuth.bru | 0 api/{ => bruno}/Api/Chat/-chats-send.bru | 0 .../Api/Chat/-chats-sendCheckingPresence.bru | 0 api/{ => bruno}/Api/Client/-clients--id.bru | 0 .../Api/Client/-clients-findOne.bru | 0 api/{ => bruno}/Api/Client/-clients.bru | 0 .../Api/Client/-consumptionSendQueued.bru | 0 .../-collection_getTickets TEST.bru | 0 .../Api/Collection/-collection_getTickets.bru | 0 .../Api/Collection/-collections.bru | 0 api/{ => bruno}/Api/Collection/-items--id.bru | 0 .../Api/Collection/-items-findOne.bru | 0 api/{ => bruno}/Api/Collection/-items.bru | 0 api/{ => bruno}/Api/Edi/-edi-updateData.bru | 0 api/{ => bruno}/Api/EmailUser/EmailUser.bru | 0 .../Api/Entry/-Entries- Add-packaging.bru | 0 .../Api/Entry/-Entries--listPackaging.bru | 0 .../Api/Entry/-Entries--packaging Notes.bru | 0 .../Api/Entry/-Entries--packaging.bru | 0 .../Entry/-Entries-addFromBuy -packaging.bru | 0 .../Item/-item setVisibleDiscard Local.bru | 0 .../Api/Item/-item setVisibleDiscard TEST.bru | 0 .../Api/Item/-item setVisibleDiscard.bru | 0 api/{ => bruno}/Api/Item/-items--id.bru | 0 api/{ => bruno}/Api/Item/-items-findOne.bru | 0 api/{ => bruno}/Api/Item/-items.bru | 0 .../ItemBarCodes--id-toItem Copy.bru | 0 .../ItemBarCode/ItemBarCodes--id-toItem.bru | 0 .../Api/ItemBarCode/ItemBarCodes.bru | 0 .../-itemImageQueues-downloadImages.bru | 0 .../Api/ItemImageQueue/-itemImageQueues.bru | 0 .../Api/ItemPackingType/ItemPackingTypes.bru | 0 .../Api/ItemShelvings/-itemShelvings-id.bru | 0 .../-itemShelvings-update TEST.bru | 0 .../ItemShelvings/-itemShelvings-update.bru | 0 api/{ => bruno}/Api/Notifications/Send.bru | 0 .../Api/ShelvingLog/ShelvingLogs.bru | 0 api/{ => bruno}/Api/ShelvingLog/Shelvings.bru | 0 .../-Supplier--id--getItemsPackaging.bru | 0 .../Api/Ticket/--id-delivery-note.bru | 0 .../Api/Ticket/-tickets Advanced.bru | 0 .../Api/Ticket/-tickets--id Notes.bru | 0 api/{ => bruno}/Api/Ticket/-tickets--id.bru | 0 .../Api/Ticket/-tickets-client.bru | 0 .../Api/Ticket/-tickets-findOne.bru | 0 .../Api/Ticket/-tickets-saveSign.bru | 0 .../Api/Ticket/-tickets-transferSales.bru | 0 api/{ => bruno}/Api/Ticket/-tickets.bru | 0 .../-ExpeditionStates-addState Copy.bru | 0 .../-ExpeditionStates-addState.bru | 0 .../-Operators- get sector - labeler Copy.bru | 0 .../-Operators- get sector - labeler.bru | 0 .../Api/operator/-Operators- get.bru | 0 .../Api/operator/-Operators- labeler.bru | 0 .../Api/operator/-Operators- sector Copy.bru | 0 .../Api/operator/-Operators- sector.bru | 0 api/{ => bruno}/bruno.json | 0 api/{ => bruno}/environments/test.bru | 0 api/{apiSalix => http}/items.http | 0 api/{apiSalix => http}/sign-in.http | 0 api/{ => http}/test.http | 0 api/result.json | 55 ------------------- api/test.bru | 24 -------- 126 files changed, 1255 deletions(-) delete mode 100644 api/Salix/Api/Account/asd.bru delete mode 100644 api/Salix/Api/Account/login.bru delete mode 100644 api/Salix/Api/Buy/-Buys -packaging.bru delete mode 100644 api/Salix/Api/Chat/-chats-getServiceAuth.bru delete mode 100644 api/Salix/Api/Chat/-chats-send.bru delete mode 100644 api/Salix/Api/Chat/-chats-sendCheckingPresence.bru delete mode 100644 api/Salix/Api/Client/-clients--id.bru delete mode 100644 api/Salix/Api/Client/-clients-findOne.bru delete mode 100644 api/Salix/Api/Client/-clients.bru delete mode 100644 api/Salix/Api/Client/-consumptionSendQueued.bru delete mode 100644 api/Salix/Api/Collection/-collection_getTickets TEST.bru delete mode 100644 api/Salix/Api/Collection/-collection_getTickets.bru delete mode 100644 api/Salix/Api/Collection/-collections.bru delete mode 100644 api/Salix/Api/Collection/-items--id.bru delete mode 100644 api/Salix/Api/Collection/-items-findOne.bru delete mode 100644 api/Salix/Api/Collection/-items.bru delete mode 100644 api/Salix/Api/Edi/-edi-updateData.bru delete mode 100644 api/Salix/Api/EmailUser/EmailUser.bru delete mode 100644 api/Salix/Api/Entry/-Entries- Add-packaging.bru delete mode 100644 api/Salix/Api/Entry/-Entries--listPackaging.bru delete mode 100644 api/Salix/Api/Entry/-Entries--packaging Notes.bru delete mode 100644 api/Salix/Api/Entry/-Entries--packaging.bru delete mode 100644 api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru delete mode 100644 api/Salix/Api/Item/-item setVisibleDiscard Local.bru delete mode 100644 api/Salix/Api/Item/-item setVisibleDiscard TEST.bru delete mode 100644 api/Salix/Api/Item/-item setVisibleDiscard.bru delete mode 100644 api/Salix/Api/Item/-items--id.bru delete mode 100644 api/Salix/Api/Item/-items-findOne.bru delete mode 100644 api/Salix/Api/Item/-items.bru delete mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru delete mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru delete mode 100644 api/Salix/Api/ItemBarCode/ItemBarCodes.bru delete mode 100644 api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru delete mode 100644 api/Salix/Api/ItemImageQueue/-itemImageQueues.bru delete mode 100644 api/Salix/Api/ItemPackingType/ItemPackingTypes.bru delete mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-id.bru delete mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru delete mode 100644 api/Salix/Api/ItemShelvings/-itemShelvings-update.bru delete mode 100644 api/Salix/Api/Notifications/Send.bru delete mode 100644 api/Salix/Api/ShelvingLog/ShelvingLogs.bru delete mode 100644 api/Salix/Api/ShelvingLog/Shelvings.bru delete mode 100644 api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru delete mode 100644 api/Salix/Api/Ticket/--id-delivery-note.bru delete mode 100644 api/Salix/Api/Ticket/-tickets Advanced.bru delete mode 100644 api/Salix/Api/Ticket/-tickets--id Notes.bru delete mode 100644 api/Salix/Api/Ticket/-tickets--id.bru delete mode 100644 api/Salix/Api/Ticket/-tickets-client.bru delete mode 100644 api/Salix/Api/Ticket/-tickets-findOne.bru delete mode 100644 api/Salix/Api/Ticket/-tickets-saveSign.bru delete mode 100644 api/Salix/Api/Ticket/-tickets-transferSales.bru delete mode 100644 api/Salix/Api/Ticket/-tickets.bru delete mode 100644 api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru delete mode 100644 api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru delete mode 100644 api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru delete mode 100644 api/Salix/Api/operator/-Operators- get sector - labeler.bru delete mode 100644 api/Salix/Api/operator/-Operators- get.bru delete mode 100644 api/Salix/Api/operator/-Operators- labeler.bru delete mode 100644 api/Salix/Api/operator/-Operators- sector Copy.bru delete mode 100644 api/Salix/Api/operator/-Operators- sector.bru delete mode 100644 api/Salix/bruno.json delete mode 100644 api/Salix/environments/test.bru rename api/{ => bruno}/Api/Account/login.bru (100%) rename api/{ => bruno}/Api/Buy/-Buys -packaging.bru (100%) rename api/{ => bruno}/Api/Chat/-chats-getServiceAuth.bru (100%) rename api/{ => bruno}/Api/Chat/-chats-send.bru (100%) rename api/{ => bruno}/Api/Chat/-chats-sendCheckingPresence.bru (100%) rename api/{ => bruno}/Api/Client/-clients--id.bru (100%) rename api/{ => bruno}/Api/Client/-clients-findOne.bru (100%) rename api/{ => bruno}/Api/Client/-clients.bru (100%) rename api/{ => bruno}/Api/Client/-consumptionSendQueued.bru (100%) rename api/{ => bruno}/Api/Collection/-collection_getTickets TEST.bru (100%) rename api/{ => bruno}/Api/Collection/-collection_getTickets.bru (100%) rename api/{ => bruno}/Api/Collection/-collections.bru (100%) rename api/{ => bruno}/Api/Collection/-items--id.bru (100%) rename api/{ => bruno}/Api/Collection/-items-findOne.bru (100%) rename api/{ => bruno}/Api/Collection/-items.bru (100%) rename api/{ => bruno}/Api/Edi/-edi-updateData.bru (100%) rename api/{ => bruno}/Api/EmailUser/EmailUser.bru (100%) rename api/{ => bruno}/Api/Entry/-Entries- Add-packaging.bru (100%) rename api/{ => bruno}/Api/Entry/-Entries--listPackaging.bru (100%) rename api/{ => bruno}/Api/Entry/-Entries--packaging Notes.bru (100%) rename api/{ => bruno}/Api/Entry/-Entries--packaging.bru (100%) rename api/{ => bruno}/Api/Entry/-Entries-addFromBuy -packaging.bru (100%) rename api/{ => bruno}/Api/Item/-item setVisibleDiscard Local.bru (100%) rename api/{ => bruno}/Api/Item/-item setVisibleDiscard TEST.bru (100%) rename api/{ => bruno}/Api/Item/-item setVisibleDiscard.bru (100%) rename api/{ => bruno}/Api/Item/-items--id.bru (100%) rename api/{ => bruno}/Api/Item/-items-findOne.bru (100%) rename api/{ => bruno}/Api/Item/-items.bru (100%) rename api/{ => bruno}/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru (100%) rename api/{ => bruno}/Api/ItemBarCode/ItemBarCodes--id-toItem.bru (100%) rename api/{ => bruno}/Api/ItemBarCode/ItemBarCodes.bru (100%) rename api/{ => bruno}/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru (100%) rename api/{ => bruno}/Api/ItemImageQueue/-itemImageQueues.bru (100%) rename api/{ => bruno}/Api/ItemPackingType/ItemPackingTypes.bru (100%) rename api/{ => bruno}/Api/ItemShelvings/-itemShelvings-id.bru (100%) rename api/{ => bruno}/Api/ItemShelvings/-itemShelvings-update TEST.bru (100%) rename api/{ => bruno}/Api/ItemShelvings/-itemShelvings-update.bru (100%) rename api/{ => bruno}/Api/Notifications/Send.bru (100%) rename api/{ => bruno}/Api/ShelvingLog/ShelvingLogs.bru (100%) rename api/{ => bruno}/Api/ShelvingLog/Shelvings.bru (100%) rename api/{ => bruno}/Api/Supplier/-Supplier--id--getItemsPackaging.bru (100%) rename api/{ => bruno}/Api/Ticket/--id-delivery-note.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets Advanced.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets--id Notes.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets--id.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets-client.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets-findOne.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets-saveSign.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets-transferSales.bru (100%) rename api/{ => bruno}/Api/Ticket/-tickets.bru (100%) rename api/{ => bruno}/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru (100%) rename api/{ => bruno}/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- get sector - labeler Copy.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- get sector - labeler.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- get.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- labeler.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- sector Copy.bru (100%) rename api/{ => bruno}/Api/operator/-Operators- sector.bru (100%) rename api/{ => bruno}/bruno.json (100%) rename api/{ => bruno}/environments/test.bru (100%) rename api/{apiSalix => http}/items.http (100%) rename api/{apiSalix => http}/sign-in.http (100%) rename api/{ => http}/test.http (100%) delete mode 100644 api/result.json delete mode 100644 api/test.bru diff --git a/api/Salix/Api/Account/asd.bru b/api/Salix/Api/Account/asd.bru deleted file mode 100644 index a348a38c4..000000000 --- a/api/Salix/Api/Account/asd.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: asd - type: http - seq: 1 -} - -get { - url: - body: none - auth: none -} diff --git a/api/Salix/Api/Account/login.bru b/api/Salix/Api/Account/login.bru deleted file mode 100644 index 1f0af5335..000000000 --- a/api/Salix/Api/Account/login.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: login - type: http - seq: 1 -} - -post { - url: {{URL}}/api/VnUsers/sign-in - body: json - auth: none -} - -body:json { - {"user":"developer", "password": "nightmare"} -} - diff --git a/api/Salix/Api/Buy/-Buys -packaging.bru b/api/Salix/Api/Buy/-Buys -packaging.bru deleted file mode 100644 index 183654b06..000000000 --- a/api/Salix/Api/Buy/-Buys -packaging.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Buys -packaging - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Chat/-chats-getServiceAuth.bru b/api/Salix/Api/Chat/-chats-getServiceAuth.bru deleted file mode 100644 index 676380a04..000000000 --- a/api/Salix/Api/Chat/-chats-getServiceAuth.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: -chats-getServiceAuth - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/chats/getServiceAuth - body: none - auth: none -} diff --git a/api/Salix/Api/Chat/-chats-send.bru b/api/Salix/Api/Chat/-chats-send.bru deleted file mode 100644 index 99af4ca0f..000000000 --- a/api/Salix/Api/Chat/-chats-send.bru +++ /dev/null @@ -1,16 +0,0 @@ -meta { - name: -chats-send - type: http - seq: 2 -} - -post { - url: http://localhost:5000/api/chats/send?to=@joan&message=Test message - body: none - auth: none -} - -query { - to: @joan - message: Test message -} diff --git a/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru b/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru deleted file mode 100644 index dd175fe9a..000000000 --- a/api/Salix/Api/Chat/-chats-sendCheckingPresence.bru +++ /dev/null @@ -1,26 +0,0 @@ -meta { - name: -chats-sendCheckingPresence - type: http - seq: 3 -} - -post { - url: https://salix.verdnatura.es/api/chats/sendCheckingPresence?recipientId=19069&message=Check Offline Status - body: json - auth: none -} - -query { - recipientId: 19069 - message: Check Offline Status -} - -headers { - Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY -} - -body:json { - { - "workerId":19591 - } -} diff --git a/api/Salix/Api/Client/-clients--id.bru b/api/Salix/Api/Client/-clients--id.bru deleted file mode 100644 index 4053ea818..000000000 --- a/api/Salix/Api/Client/-clients--id.bru +++ /dev/null @@ -1,17 +0,0 @@ -meta { - name: -clients--id - type: http - seq: 5 -} - -patch { - url: http://localhost:5000/api/clients/1101 - body: json - auth: none -} - -body:json { - { - "name": "Test client" - } -} diff --git a/api/Salix/Api/Client/-clients-findOne.bru b/api/Salix/Api/Client/-clients-findOne.bru deleted file mode 100644 index 638e7e7fc..000000000 --- a/api/Salix/Api/Client/-clients-findOne.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -clients-findOne - type: http - seq: 6 -} - -get { - url: http://localhost:5000/api/clients/findOne?filter={"where": {"id": 1101}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1101}} -} diff --git a/api/Salix/Api/Client/-clients.bru b/api/Salix/Api/Client/-clients.bru deleted file mode 100644 index 3b339dd33..000000000 --- a/api/Salix/Api/Client/-clients.bru +++ /dev/null @@ -1,22 +0,0 @@ -meta { - name: -clients - type: http - seq: 2 -} - -post { - url: http://localhost:5000/api/clients?filter={} - body: json - auth: none -} - -query { - filter: {} -} - -body:json { - { - "id": 1300, - "name": "Customer name" - } -} diff --git a/api/Salix/Api/Client/-consumptionSendQueued.bru b/api/Salix/Api/Client/-consumptionSendQueued.bru deleted file mode 100644 index 9074bc4ba..000000000 --- a/api/Salix/Api/Client/-consumptionSendQueued.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: -consumptionSendQueued - type: http - seq: 7 -} - -post { - url: http://localhost:5000/api/clients/consumption-send-queued - body: none - auth: none -} diff --git a/api/Salix/Api/Collection/-collection_getTickets TEST.bru b/api/Salix/Api/Collection/-collection_getTickets TEST.bru deleted file mode 100644 index 49c686d3c..000000000 --- a/api/Salix/Api/Collection/-collection_getTickets TEST.bru +++ /dev/null @@ -1,21 +0,0 @@ -meta { - name: -collection_getTickets TEST - type: http - seq: 3 -} - -post { - url: https://test-salix.verdnatura.es/api/Collections/999999/getTickets?print=false - body: multipartForm - auth: none -} - -query { - print: false - ~id: 1 -} - -headers { - Authorization: nEaXBUSjeC9FXvyfpl3qGbcBHlDiCqwbPmZyIICdUPCUYYMN3pSE8QlJRMNa10rK - ~Authorization: DEFAULT_TOKEN -} diff --git a/api/Salix/Api/Collection/-collection_getTickets.bru b/api/Salix/Api/Collection/-collection_getTickets.bru deleted file mode 100644 index edf61d9e9..000000000 --- a/api/Salix/Api/Collection/-collection_getTickets.bru +++ /dev/null @@ -1,21 +0,0 @@ -meta { - name: -collection_getTickets - type: http - seq: 2 -} - -post { - url: http://localhost:5000/api/Collections/3/getTickets?print=false - body: multipartForm - auth: none -} - -query { - print: false - ~id: 1 -} - -headers { - Authorization: DEFAULT_TOKEN - ~Authorization: 6ZYlDCvAsZTPrSB8t7nNjySuEifhPACnBFIMy1gjgLHyOpahGKBtIdjNhR3DwiJC -} diff --git a/api/Salix/Api/Collection/-collections.bru b/api/Salix/Api/Collection/-collections.bru deleted file mode 100644 index 6ec61d3d8..000000000 --- a/api/Salix/Api/Collection/-collections.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -collections - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/collections?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Collection/-items--id.bru b/api/Salix/Api/Collection/-items--id.bru deleted file mode 100644 index 346387ed3..000000000 --- a/api/Salix/Api/Collection/-items--id.bru +++ /dev/null @@ -1,17 +0,0 @@ -meta { - name: -items--id - type: http - seq: 7 -} - -patch { - url: http://localhost:5000/api/tickets/1 - body: json - auth: none -} - -body:json { - { - "name": "Test item" - } -} diff --git a/api/Salix/Api/Collection/-items-findOne.bru b/api/Salix/Api/Collection/-items-findOne.bru deleted file mode 100644 index 46294662b..000000000 --- a/api/Salix/Api/Collection/-items-findOne.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -items-findOne - type: http - seq: 8 -} - -get { - url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Collection/-items.bru b/api/Salix/Api/Collection/-items.bru deleted file mode 100644 index 8207221b7..000000000 --- a/api/Salix/Api/Collection/-items.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -items - type: http - seq: 4 -} - -post { - url: http://localhost:5000/api/items?filter={} - body: json - auth: none -} - -query { - filter: {} -} - -body:json { - { - "id": 999, - "name": "Ranged weapon longbow 5m", - "typeFk": 1, - "originFk": 1, - "intrastatFk": "5080000" - } -} diff --git a/api/Salix/Api/Edi/-edi-updateData.bru b/api/Salix/Api/Edi/-edi-updateData.bru deleted file mode 100644 index 7d2191a50..000000000 --- a/api/Salix/Api/Edi/-edi-updateData.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: -edi-updateData - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/edis/updateData - body: none - auth: none -} diff --git a/api/Salix/Api/EmailUser/EmailUser.bru b/api/Salix/Api/EmailUser/EmailUser.bru deleted file mode 100644 index 373f6b924..000000000 --- a/api/Salix/Api/EmailUser/EmailUser.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: EmailUser - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} - body: json - auth: none -} - -query { - filter: {"where":{"code":"BBB"}} - ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] - ~where: [object Object] - ~limit: 20 - ~access_token: DEFAULT_TOKEN - ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} - ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D -} - -headers { - ~Content-Type: text/plain -} diff --git a/api/Salix/Api/Entry/-Entries- Add-packaging.bru b/api/Salix/Api/Entry/-Entries- Add-packaging.bru deleted file mode 100644 index 69c58589d..000000000 --- a/api/Salix/Api/Entry/-Entries- Add-packaging.bru +++ /dev/null @@ -1,20 +0,0 @@ -meta { - name: -Entries- Add-packaging - type: http - seq: 5 -} - -post { - url: http://localhost:5000/api/Entries/addFromPackaging?supplier=1&isTravelReception=false - body: none - auth: none -} - -query { - supplier: 1 - isTravelReception: false -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Entry/-Entries--listPackaging.bru b/api/Salix/Api/Entry/-Entries--listPackaging.bru deleted file mode 100644 index a52a21ed8..000000000 --- a/api/Salix/Api/Entry/-Entries--listPackaging.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Entries--listPackaging - type: http - seq: 2 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Entry/-Entries--packaging Notes.bru b/api/Salix/Api/Entry/-Entries--packaging Notes.bru deleted file mode 100644 index 39df75f94..000000000 --- a/api/Salix/Api/Entry/-Entries--packaging Notes.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Entries--packaging Notes - type: http - seq: 3 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Entry/-Entries--packaging.bru b/api/Salix/Api/Entry/-Entries--packaging.bru deleted file mode 100644 index c9428f875..000000000 --- a/api/Salix/Api/Entry/-Entries--packaging.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Entries--packaging - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru deleted file mode 100644 index da90a407f..000000000 --- a/api/Salix/Api/Entry/-Entries-addFromBuy -packaging.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Entries-addFromBuy -packaging - type: http - seq: 4 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard Local.bru b/api/Salix/Api/Item/-item setVisibleDiscard Local.bru deleted file mode 100644 index 681546f39..000000000 --- a/api/Salix/Api/Item/-item setVisibleDiscard Local.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -item setVisibleDiscard Local - type: http - seq: 3 -} - -post { - url: http://localhost:5000/api/items/setVisibleDiscard - body: json - auth: none -} - -headers { - Authorization: DEFAULT_TOKEN -} - -body:json { - { - "itemFk":1, - "warehouseFk":1, - "quantity":10, - "addressFk":null - } - -} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru b/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru deleted file mode 100644 index 1b68c426c..000000000 --- a/api/Salix/Api/Item/-item setVisibleDiscard TEST.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -item setVisibleDiscard TEST - type: http - seq: 4 -} - -post { - url: https://test-salix.verdnatura.es/api/items/setVisibleDiscard - body: json - auth: none -} - -headers { - Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn -} - -body:json { - { - "addressFk": 77, - "itemFk": 10, - "quantity": 1, - "warehouseFk": 60 - } - -} diff --git a/api/Salix/Api/Item/-item setVisibleDiscard.bru b/api/Salix/Api/Item/-item setVisibleDiscard.bru deleted file mode 100644 index 24e1a1591..000000000 --- a/api/Salix/Api/Item/-item setVisibleDiscard.bru +++ /dev/null @@ -1,21 +0,0 @@ -meta { - name: -item setVisibleDiscard - type: http - seq: 2 -} - -post { - url: http://localhost:5000/api/items/setVisibleDiscard - body: json - auth: none -} - -body:json { - { - "itemFk":1, - "warehouseFk":1, - "quantity":10, - "addressFk":1 - } - -} diff --git a/api/Salix/Api/Item/-items--id.bru b/api/Salix/Api/Item/-items--id.bru deleted file mode 100644 index 18a74500b..000000000 --- a/api/Salix/Api/Item/-items--id.bru +++ /dev/null @@ -1,17 +0,0 @@ -meta { - name: -items--id - type: http - seq: 8 -} - -patch { - url: http://localhost:5000/api/tickets/1 - body: json - auth: none -} - -body:json { - { - "name": "Test item" - } -} diff --git a/api/Salix/Api/Item/-items-findOne.bru b/api/Salix/Api/Item/-items-findOne.bru deleted file mode 100644 index 1e76b1fff..000000000 --- a/api/Salix/Api/Item/-items-findOne.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -items-findOne - type: http - seq: 9 -} - -get { - url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Item/-items.bru b/api/Salix/Api/Item/-items.bru deleted file mode 100644 index a5e582511..000000000 --- a/api/Salix/Api/Item/-items.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -items - type: http - seq: 5 -} - -post { - url: http://localhost:5000/api/items?filter={} - body: json - auth: none -} - -query { - filter: {} -} - -body:json { - { - "id": 999, - "name": "Ranged weapon longbow 5m", - "typeFk": 1, - "originFk": 1, - "intrastatFk": "5080000" - } -} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru deleted file mode 100644 index 5c7a296fd..000000000 --- a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: ItemBarCodes--id-toItem Copy - type: http - seq: 4 -} - -get { - url: https://test-salix.verdnatura.es/api/ItemBarCodes/1/toItem - body: json - auth: none -} - -headers { - Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB -} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru deleted file mode 100644 index c2b7f9be4..000000000 --- a/api/Salix/Api/ItemBarCode/ItemBarCodes--id-toItem.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: ItemBarCodes--id-toItem - type: http - seq: 3 -} - -get { - url: http://localhost:5000/api/ItemBarCodes/1111111111/toItem - body: json - auth: none -} diff --git a/api/Salix/Api/ItemBarCode/ItemBarCodes.bru b/api/Salix/Api/ItemBarCode/ItemBarCodes.bru deleted file mode 100644 index 2d74419b3..000000000 --- a/api/Salix/Api/ItemBarCode/ItemBarCodes.bru +++ /dev/null @@ -1,23 +0,0 @@ -meta { - name: ItemBarCodes - type: http - seq: 2 -} - -delete { - url: http://localhost:5000/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}} - body: json - auth: none -} - -query { - filter: {"where": {"itemFk": 1,"code":"ASDDD"}} - ~update: {"where": {"itemFk": 1,"code":"ASDDD"}} -} - -body:json { - - - - NO ES POT FER DELETE AMB UN FILTRE de item i code, és necessari el id. -} diff --git a/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru deleted file mode 100644 index 24c947a68..000000000 --- a/api/Salix/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -itemImageQueues-downloadImages - type: http - seq: 2 -} - -post { - url: http://localhost:5000/api/itemImageQueues/download - body: none - auth: none -} - -headers { - Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz -} - -script:pre-request { - // -} diff --git a/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru b/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru deleted file mode 100644 index e1262e77e..000000000 --- a/api/Salix/Api/ItemImageQueue/-itemImageQueues.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: -itemImageQueues - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/itemImageQueues - body: none - auth: none -} diff --git a/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru b/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru deleted file mode 100644 index e5ec7eb91..000000000 --- a/api/Salix/Api/ItemPackingType/ItemPackingTypes.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: ItemPackingTypes - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/ItemPackingTypes?filter={"where": {"isActive": true}} - body: none - auth: none -} - -query { - filter: {"where": {"isActive": true}} -} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru deleted file mode 100644 index cc483a51d..000000000 --- a/api/Salix/Api/ItemShelvings/-itemShelvings-id.bru +++ /dev/null @@ -1,26 +0,0 @@ -meta { - name: -itemShelvings-id - type: http - seq: 1 -} - -patch { - url: https://salix.verdnatura.es/api/itemShelvings/1352756 - body: json - auth: none -} - -query { - ~visible: 2 -} - -headers { - Authorization: MkgxUVLzf04VnaoHtQOqPdE5kTISOhfgB8ypHZmAaamOzPKkVZsz5gOovbVQ4O7j - ~Authorization: DEFAULT_TOKEN -} - -body:json { - { - "userFk":19591 - } -} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru deleted file mode 100644 index 69938ad71..000000000 --- a/api/Salix/Api/ItemShelvings/-itemShelvings-update TEST.bru +++ /dev/null @@ -1,28 +0,0 @@ -meta { - name: -itemShelvings-update TEST - type: http - seq: 3 -} - -post { - url: https://test-salix.verdnatura.es/api/ItemShelvings/update?where={"id": {"inq": [141461,141046]}} - body: json - auth: none -} - -query { - where: {"id": {"inq": [141461,141046]}} - ~filter: {"where": {"id": 1}} - ~where: {"id": {"in": [1, 3]}} - ~where: {"id": {"inq": [141461,141046]}} -} - -headers { - Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG -} - -body:json { - { - "isChecked":null - } -} diff --git a/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru b/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru deleted file mode 100644 index 4b0438f5f..000000000 --- a/api/Salix/Api/ItemShelvings/-itemShelvings-update.bru +++ /dev/null @@ -1,28 +0,0 @@ -meta { - name: -itemShelvings-update - type: http - seq: 2 -} - -post { - url: http://localhost:3000/api/itemShelvings/update?where={"id": {"inq": [1,3]}} - body: json - auth: none -} - -query { - where: {"id": {"inq": [1,3]}} - ~filter: {"where": {"id": 1}} - ~filter: {"id": {"in": [1, 3]}} - ~where: {"id": {"in": [1, 3]}} -} - -headers { - Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY -} - -body:json { - { - "isChecked":null - } -} diff --git a/api/Salix/Api/Notifications/Send.bru b/api/Salix/Api/Notifications/Send.bru deleted file mode 100644 index fe0d850a9..000000000 --- a/api/Salix/Api/Notifications/Send.bru +++ /dev/null @@ -1,11 +0,0 @@ -meta { - name: Send - type: http - seq: 1 -} - -get { - url: - body: none - auth: none -} diff --git a/api/Salix/Api/ShelvingLog/ShelvingLogs.bru b/api/Salix/Api/ShelvingLog/ShelvingLogs.bru deleted file mode 100644 index a97cbce22..000000000 --- a/api/Salix/Api/ShelvingLog/ShelvingLogs.bru +++ /dev/null @@ -1,18 +0,0 @@ -meta { - name: ShelvingLogs - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} - body: json - auth: none -} - -query { - filter: {"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} - ~include: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"],"include":{"relation":"worker","scope":{"fields":["id"]}}}}],"where":{"originFk":"5"},"limit":20} - ~where: [object Object] - ~limit: 20 -} diff --git a/api/Salix/Api/ShelvingLog/Shelvings.bru b/api/Salix/Api/ShelvingLog/Shelvings.bru deleted file mode 100644 index 1248d2ee1..000000000 --- a/api/Salix/Api/ShelvingLog/Shelvings.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: Shelvings - type: http - seq: 2 -} - -get { - url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} - body: json - auth: none -} - -query { - filter: {"where":{"code":"BBB"}} - ~include: [http://localhost:5000/api/Shelvings?filter={"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}}object Object] - ~where: [object Object] - ~limit: 20 - ~access_token: DEFAULT_TOKEN - ~filter: {"include":[{"relation":"parking"}],"limit":20,"where":{"code":{"like":"%BBB%"}}} - ~filter: where%22%3A%7B%22code%22%3A%7B%22like%22%3A%22%25BBB%25%22%7D%7D%7D -} - -headers { - ~Content-Type: text/plain -} diff --git a/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru deleted file mode 100644 index 188c2c8fc..000000000 --- a/api/Salix/Api/Supplier/-Supplier--id--getItemsPackaging.bru +++ /dev/null @@ -1,19 +0,0 @@ -meta { - name: -Supplier--id--getItemsPackaging - type: http - seq: 1 -} - -get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 - body: none - auth: none -} - -query { - entry: 1 -} - -headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN -} diff --git a/api/Salix/Api/Ticket/--id-delivery-note.bru b/api/Salix/Api/Ticket/--id-delivery-note.bru deleted file mode 100644 index 9c6a209b9..000000000 --- a/api/Salix/Api/Ticket/--id-delivery-note.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: --id-delivery-note - type: http - seq: 3 -} - -get { - url: http://localhost:5000/api/tickets/delivery-note?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Ticket/-tickets Advanced.bru b/api/Salix/Api/Ticket/-tickets Advanced.bru deleted file mode 100644 index 2cdf36214..000000000 --- a/api/Salix/Api/Ticket/-tickets Advanced.bru +++ /dev/null @@ -1,27 +0,0 @@ -meta { - name: -tickets Advanced - type: http - seq: 5 -} - -post { - url: http://localhost:3000/api/packingSiteAdvanceds - body: json - auth: none -} - -query { - ~workerFk: 1 - ~ticketFk: 2 -} - -headers { - Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP -} - -body:json { - { - "workerFk": 1, - "ticketFk":2 - } -} diff --git a/api/Salix/Api/Ticket/-tickets--id Notes.bru b/api/Salix/Api/Ticket/-tickets--id Notes.bru deleted file mode 100644 index 7284b6582..000000000 --- a/api/Salix/Api/Ticket/-tickets--id Notes.bru +++ /dev/null @@ -1,33 +0,0 @@ -meta { - name: -tickets--id Notes - type: http - seq: 10 -} - -post { - url: https://test-salix.verdnatura.es/api/TicketObservations/crud?ticketFk=4379408 - body: json - auth: none -} - -query { - ticketFk: 4379408 -} - -headers { - Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg -} - -body:json { - { - { - "ticketFk": "4379408", - "$orgIndex": null, - "$oldData": null, - "$isNew": true, - "observationTypeFk": 3, - "description": "fdas asd as" - } - - } -} diff --git a/api/Salix/Api/Ticket/-tickets--id.bru b/api/Salix/Api/Ticket/-tickets--id.bru deleted file mode 100644 index d617fd377..000000000 --- a/api/Salix/Api/Ticket/-tickets--id.bru +++ /dev/null @@ -1,17 +0,0 @@ -meta { - name: -tickets--id - type: http - seq: 9 -} - -patch { - url: http://localhost:5000/api/items/1 - body: json - auth: none -} - -body:json { - { - "name": "Test item" - } -} diff --git a/api/Salix/Api/Ticket/-tickets-client.bru b/api/Salix/Api/Ticket/-tickets-client.bru deleted file mode 100644 index e5612c0cf..000000000 --- a/api/Salix/Api/Ticket/-tickets-client.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -tickets-client - type: http - seq: 6 -} - -get { - url: http://localhost:5000/api/tickets/1/client?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Ticket/-tickets-findOne.bru b/api/Salix/Api/Ticket/-tickets-findOne.bru deleted file mode 100644 index 79b1eaa01..000000000 --- a/api/Salix/Api/Ticket/-tickets-findOne.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -tickets-findOne - type: http - seq: 11 -} - -get { - url: http://localhost:5000/api/tickets/findOne?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Ticket/-tickets-saveSign.bru b/api/Salix/Api/Ticket/-tickets-saveSign.bru deleted file mode 100644 index 5c5bc4dc3..000000000 --- a/api/Salix/Api/Ticket/-tickets-saveSign.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -tickets-saveSign - type: http - seq: 12 -} - -get { - url: http://localhost:5000/api/tickets/saveSign?tickets= - body: none - auth: none -} - -query { - tickets: -} diff --git a/api/Salix/Api/Ticket/-tickets-transferSales.bru b/api/Salix/Api/Ticket/-tickets-transferSales.bru deleted file mode 100644 index 1c136d850..000000000 --- a/api/Salix/Api/Ticket/-tickets-transferSales.bru +++ /dev/null @@ -1,15 +0,0 @@ -meta { - name: -tickets-transferSales - type: http - seq: 2 -} - -get { - url: http://localhost:5000/api/tickets?filter={"where": {"id": 1}} - body: none - auth: none -} - -query { - filter: {"where": {"id": 1}} -} diff --git a/api/Salix/Api/Ticket/-tickets.bru b/api/Salix/Api/Ticket/-tickets.bru deleted file mode 100644 index 6ad2a15e9..000000000 --- a/api/Salix/Api/Ticket/-tickets.bru +++ /dev/null @@ -1,21 +0,0 @@ -meta { - name: -tickets - type: http - seq: 4 -} - -post { - url: http://localhost:5000/api/tickets?filter={} - body: json - auth: none -} - -query { - filter: {} -} - -body:json { - { - "id": 30 - } -} diff --git a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru deleted file mode 100644 index 637127f15..000000000 --- a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru +++ /dev/null @@ -1,27 +0,0 @@ -meta { - name: -ExpeditionStates-addState Copy - type: http - seq: 2 -} - -post { - url: https://test-salix.verdnatura.es/api/ExpeditionStates/addExpeditionState - body: json - auth: none -} - -headers { - Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB -} - -body:json { - { - "expeditions": [ - { - "expeditionFk": 7437897, - "stateCode": "LOST" - } - - ] - } -} diff --git a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru deleted file mode 100644 index 251b4c7ea..000000000 --- a/api/Salix/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru +++ /dev/null @@ -1,31 +0,0 @@ -meta { - name: -ExpeditionStates-addState - type: http - seq: 1 -} - -post { - url: http://localhost:5000/api/ExpeditionStates/addExpeditionState - body: json - auth: none -} - -headers { - Authorization: V75Nc9jxXSIyT5VpnPSXCtnFaaczzJ54oLRas2CbVbzUDmvaLHTp6VIGt5j0aFZt - ~Authorization: DEFAULT_TOKEN -} - -body:json { - { - "expeditions": [ - { - "expeditionFk": 1, - "stateCode": "ON DELIVERY" - }, - { - "expeditionFk": 2, - "stateCode": "LOST" - } - ] - } -} diff --git a/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru deleted file mode 100644 index ec111ad82..000000000 --- a/api/Salix/Api/operator/-Operators- get sector - labeler Copy.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -Operators- get sector - labeler Copy - type: http - seq: 6 -} - -post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 - body: json - auth: none -} - -query { - where[workerFk]: 9 -} - -headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 -} - -body:json { - { - "labelerFk":2 - } -} diff --git a/api/Salix/Api/operator/-Operators- get sector - labeler.bru b/api/Salix/Api/operator/-Operators- get sector - labeler.bru deleted file mode 100644 index 0ea6814e3..000000000 --- a/api/Salix/Api/operator/-Operators- get sector - labeler.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -Operators- get sector - labeler - type: http - seq: 5 -} - -post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 - body: json - auth: none -} - -query { - where[workerFk]: 9 -} - -headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 -} - -body:json { - { - "labelerFk":2 - } -} diff --git a/api/Salix/Api/operator/-Operators- get.bru b/api/Salix/Api/operator/-Operators- get.bru deleted file mode 100644 index 6ea1faab1..000000000 --- a/api/Salix/Api/operator/-Operators- get.bru +++ /dev/null @@ -1,26 +0,0 @@ -meta { - name: -Operators- get - type: http - seq: 2 -} - -get { - url: http://test-salix.verdnatura.es/api/Operators/19591?filter={"include":"sector"} - body: json - auth: none -} - -query { - filter: {"include":"sector"} -} - -headers { - Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy -} - -body:json { - { - "sectorFk":2, - "labelerFk":null - } -} diff --git a/api/Salix/Api/operator/-Operators- labeler.bru b/api/Salix/Api/operator/-Operators- labeler.bru deleted file mode 100644 index 901a7ed5c..000000000 --- a/api/Salix/Api/operator/-Operators- labeler.bru +++ /dev/null @@ -1,25 +0,0 @@ -meta { - name: -Operators- labeler - type: http - seq: 4 -} - -post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 - body: json - auth: none -} - -query { - where[workerFk]: 9 -} - -headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 -} - -body:json { - { - "labelerFk":2 - } -} diff --git a/api/Salix/Api/operator/-Operators- sector Copy.bru b/api/Salix/Api/operator/-Operators- sector Copy.bru deleted file mode 100644 index 0b2911a3d..000000000 --- a/api/Salix/Api/operator/-Operators- sector Copy.bru +++ /dev/null @@ -1,23 +0,0 @@ -meta { - name: -Operators- sector Copy - type: http - seq: 3 -} - -patch { - url: https://salix.verdnatura.es/api/Operators/19591 - body: json - auth: none -} - -headers { - Authorization: sccVCOzCIqNvEUZtjf9FYJfxkCQImjcecS8xHzvjAxYW9pt34lngc8dcgLft5Kyn - ~Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp -} - -body:json { - { - "sectorFk":31, - "labelerFk":null - } -} diff --git a/api/Salix/Api/operator/-Operators- sector.bru b/api/Salix/Api/operator/-Operators- sector.bru deleted file mode 100644 index 936f9936d..000000000 --- a/api/Salix/Api/operator/-Operators- sector.bru +++ /dev/null @@ -1,26 +0,0 @@ -meta { - name: -Operators- sector - type: http - seq: 1 -} - -post { - url: http://localhost:5000/api/Operators/update?where[workerFK]=9 - body: json - auth: none -} - -query { - where[workerFK]: 9 -} - -headers { - Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp -} - -body:json { - { - "sectorFk":2, - "labelerFk":null - } -} diff --git a/api/Salix/bruno.json b/api/Salix/bruno.json deleted file mode 100644 index 4096dba7e..000000000 --- a/api/Salix/bruno.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "version": "1", - "name": "Salix", - "type": "collection" -} \ No newline at end of file diff --git a/api/Salix/environments/test.bru b/api/Salix/environments/test.bru deleted file mode 100644 index ffa131c6e..000000000 --- a/api/Salix/environments/test.bru +++ /dev/null @@ -1,3 +0,0 @@ -vars { - URL: http://localhost:3000 -} diff --git a/api/Api/Account/login.bru b/api/bruno/Api/Account/login.bru similarity index 100% rename from api/Api/Account/login.bru rename to api/bruno/Api/Account/login.bru diff --git a/api/Api/Buy/-Buys -packaging.bru b/api/bruno/Api/Buy/-Buys -packaging.bru similarity index 100% rename from api/Api/Buy/-Buys -packaging.bru rename to api/bruno/Api/Buy/-Buys -packaging.bru diff --git a/api/Api/Chat/-chats-getServiceAuth.bru b/api/bruno/Api/Chat/-chats-getServiceAuth.bru similarity index 100% rename from api/Api/Chat/-chats-getServiceAuth.bru rename to api/bruno/Api/Chat/-chats-getServiceAuth.bru diff --git a/api/Api/Chat/-chats-send.bru b/api/bruno/Api/Chat/-chats-send.bru similarity index 100% rename from api/Api/Chat/-chats-send.bru rename to api/bruno/Api/Chat/-chats-send.bru diff --git a/api/Api/Chat/-chats-sendCheckingPresence.bru b/api/bruno/Api/Chat/-chats-sendCheckingPresence.bru similarity index 100% rename from api/Api/Chat/-chats-sendCheckingPresence.bru rename to api/bruno/Api/Chat/-chats-sendCheckingPresence.bru diff --git a/api/Api/Client/-clients--id.bru b/api/bruno/Api/Client/-clients--id.bru similarity index 100% rename from api/Api/Client/-clients--id.bru rename to api/bruno/Api/Client/-clients--id.bru diff --git a/api/Api/Client/-clients-findOne.bru b/api/bruno/Api/Client/-clients-findOne.bru similarity index 100% rename from api/Api/Client/-clients-findOne.bru rename to api/bruno/Api/Client/-clients-findOne.bru diff --git a/api/Api/Client/-clients.bru b/api/bruno/Api/Client/-clients.bru similarity index 100% rename from api/Api/Client/-clients.bru rename to api/bruno/Api/Client/-clients.bru diff --git a/api/Api/Client/-consumptionSendQueued.bru b/api/bruno/Api/Client/-consumptionSendQueued.bru similarity index 100% rename from api/Api/Client/-consumptionSendQueued.bru rename to api/bruno/Api/Client/-consumptionSendQueued.bru diff --git a/api/Api/Collection/-collection_getTickets TEST.bru b/api/bruno/Api/Collection/-collection_getTickets TEST.bru similarity index 100% rename from api/Api/Collection/-collection_getTickets TEST.bru rename to api/bruno/Api/Collection/-collection_getTickets TEST.bru diff --git a/api/Api/Collection/-collection_getTickets.bru b/api/bruno/Api/Collection/-collection_getTickets.bru similarity index 100% rename from api/Api/Collection/-collection_getTickets.bru rename to api/bruno/Api/Collection/-collection_getTickets.bru diff --git a/api/Api/Collection/-collections.bru b/api/bruno/Api/Collection/-collections.bru similarity index 100% rename from api/Api/Collection/-collections.bru rename to api/bruno/Api/Collection/-collections.bru diff --git a/api/Api/Collection/-items--id.bru b/api/bruno/Api/Collection/-items--id.bru similarity index 100% rename from api/Api/Collection/-items--id.bru rename to api/bruno/Api/Collection/-items--id.bru diff --git a/api/Api/Collection/-items-findOne.bru b/api/bruno/Api/Collection/-items-findOne.bru similarity index 100% rename from api/Api/Collection/-items-findOne.bru rename to api/bruno/Api/Collection/-items-findOne.bru diff --git a/api/Api/Collection/-items.bru b/api/bruno/Api/Collection/-items.bru similarity index 100% rename from api/Api/Collection/-items.bru rename to api/bruno/Api/Collection/-items.bru diff --git a/api/Api/Edi/-edi-updateData.bru b/api/bruno/Api/Edi/-edi-updateData.bru similarity index 100% rename from api/Api/Edi/-edi-updateData.bru rename to api/bruno/Api/Edi/-edi-updateData.bru diff --git a/api/Api/EmailUser/EmailUser.bru b/api/bruno/Api/EmailUser/EmailUser.bru similarity index 100% rename from api/Api/EmailUser/EmailUser.bru rename to api/bruno/Api/EmailUser/EmailUser.bru diff --git a/api/Api/Entry/-Entries- Add-packaging.bru b/api/bruno/Api/Entry/-Entries- Add-packaging.bru similarity index 100% rename from api/Api/Entry/-Entries- Add-packaging.bru rename to api/bruno/Api/Entry/-Entries- Add-packaging.bru diff --git a/api/Api/Entry/-Entries--listPackaging.bru b/api/bruno/Api/Entry/-Entries--listPackaging.bru similarity index 100% rename from api/Api/Entry/-Entries--listPackaging.bru rename to api/bruno/Api/Entry/-Entries--listPackaging.bru diff --git a/api/Api/Entry/-Entries--packaging Notes.bru b/api/bruno/Api/Entry/-Entries--packaging Notes.bru similarity index 100% rename from api/Api/Entry/-Entries--packaging Notes.bru rename to api/bruno/Api/Entry/-Entries--packaging Notes.bru diff --git a/api/Api/Entry/-Entries--packaging.bru b/api/bruno/Api/Entry/-Entries--packaging.bru similarity index 100% rename from api/Api/Entry/-Entries--packaging.bru rename to api/bruno/Api/Entry/-Entries--packaging.bru diff --git a/api/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/bruno/Api/Entry/-Entries-addFromBuy -packaging.bru similarity index 100% rename from api/Api/Entry/-Entries-addFromBuy -packaging.bru rename to api/bruno/Api/Entry/-Entries-addFromBuy -packaging.bru diff --git a/api/Api/Item/-item setVisibleDiscard Local.bru b/api/bruno/Api/Item/-item setVisibleDiscard Local.bru similarity index 100% rename from api/Api/Item/-item setVisibleDiscard Local.bru rename to api/bruno/Api/Item/-item setVisibleDiscard Local.bru diff --git a/api/Api/Item/-item setVisibleDiscard TEST.bru b/api/bruno/Api/Item/-item setVisibleDiscard TEST.bru similarity index 100% rename from api/Api/Item/-item setVisibleDiscard TEST.bru rename to api/bruno/Api/Item/-item setVisibleDiscard TEST.bru diff --git a/api/Api/Item/-item setVisibleDiscard.bru b/api/bruno/Api/Item/-item setVisibleDiscard.bru similarity index 100% rename from api/Api/Item/-item setVisibleDiscard.bru rename to api/bruno/Api/Item/-item setVisibleDiscard.bru diff --git a/api/Api/Item/-items--id.bru b/api/bruno/Api/Item/-items--id.bru similarity index 100% rename from api/Api/Item/-items--id.bru rename to api/bruno/Api/Item/-items--id.bru diff --git a/api/Api/Item/-items-findOne.bru b/api/bruno/Api/Item/-items-findOne.bru similarity index 100% rename from api/Api/Item/-items-findOne.bru rename to api/bruno/Api/Item/-items-findOne.bru diff --git a/api/Api/Item/-items.bru b/api/bruno/Api/Item/-items.bru similarity index 100% rename from api/Api/Item/-items.bru rename to api/bruno/Api/Item/-items.bru diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru similarity index 100% rename from api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru rename to api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem.bru similarity index 100% rename from api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru rename to api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem.bru diff --git a/api/Api/ItemBarCode/ItemBarCodes.bru b/api/bruno/Api/ItemBarCode/ItemBarCodes.bru similarity index 100% rename from api/Api/ItemBarCode/ItemBarCodes.bru rename to api/bruno/Api/ItemBarCode/ItemBarCodes.bru diff --git a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/bruno/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru similarity index 100% rename from api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru rename to api/bruno/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru diff --git a/api/Api/ItemImageQueue/-itemImageQueues.bru b/api/bruno/Api/ItemImageQueue/-itemImageQueues.bru similarity index 100% rename from api/Api/ItemImageQueue/-itemImageQueues.bru rename to api/bruno/Api/ItemImageQueue/-itemImageQueues.bru diff --git a/api/Api/ItemPackingType/ItemPackingTypes.bru b/api/bruno/Api/ItemPackingType/ItemPackingTypes.bru similarity index 100% rename from api/Api/ItemPackingType/ItemPackingTypes.bru rename to api/bruno/Api/ItemPackingType/ItemPackingTypes.bru diff --git a/api/Api/ItemShelvings/-itemShelvings-id.bru b/api/bruno/Api/ItemShelvings/-itemShelvings-id.bru similarity index 100% rename from api/Api/ItemShelvings/-itemShelvings-id.bru rename to api/bruno/Api/ItemShelvings/-itemShelvings-id.bru diff --git a/api/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/bruno/Api/ItemShelvings/-itemShelvings-update TEST.bru similarity index 100% rename from api/Api/ItemShelvings/-itemShelvings-update TEST.bru rename to api/bruno/Api/ItemShelvings/-itemShelvings-update TEST.bru diff --git a/api/Api/ItemShelvings/-itemShelvings-update.bru b/api/bruno/Api/ItemShelvings/-itemShelvings-update.bru similarity index 100% rename from api/Api/ItemShelvings/-itemShelvings-update.bru rename to api/bruno/Api/ItemShelvings/-itemShelvings-update.bru diff --git a/api/Api/Notifications/Send.bru b/api/bruno/Api/Notifications/Send.bru similarity index 100% rename from api/Api/Notifications/Send.bru rename to api/bruno/Api/Notifications/Send.bru diff --git a/api/Api/ShelvingLog/ShelvingLogs.bru b/api/bruno/Api/ShelvingLog/ShelvingLogs.bru similarity index 100% rename from api/Api/ShelvingLog/ShelvingLogs.bru rename to api/bruno/Api/ShelvingLog/ShelvingLogs.bru diff --git a/api/Api/ShelvingLog/Shelvings.bru b/api/bruno/Api/ShelvingLog/Shelvings.bru similarity index 100% rename from api/Api/ShelvingLog/Shelvings.bru rename to api/bruno/Api/ShelvingLog/Shelvings.bru diff --git a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/bruno/Api/Supplier/-Supplier--id--getItemsPackaging.bru similarity index 100% rename from api/Api/Supplier/-Supplier--id--getItemsPackaging.bru rename to api/bruno/Api/Supplier/-Supplier--id--getItemsPackaging.bru diff --git a/api/Api/Ticket/--id-delivery-note.bru b/api/bruno/Api/Ticket/--id-delivery-note.bru similarity index 100% rename from api/Api/Ticket/--id-delivery-note.bru rename to api/bruno/Api/Ticket/--id-delivery-note.bru diff --git a/api/Api/Ticket/-tickets Advanced.bru b/api/bruno/Api/Ticket/-tickets Advanced.bru similarity index 100% rename from api/Api/Ticket/-tickets Advanced.bru rename to api/bruno/Api/Ticket/-tickets Advanced.bru diff --git a/api/Api/Ticket/-tickets--id Notes.bru b/api/bruno/Api/Ticket/-tickets--id Notes.bru similarity index 100% rename from api/Api/Ticket/-tickets--id Notes.bru rename to api/bruno/Api/Ticket/-tickets--id Notes.bru diff --git a/api/Api/Ticket/-tickets--id.bru b/api/bruno/Api/Ticket/-tickets--id.bru similarity index 100% rename from api/Api/Ticket/-tickets--id.bru rename to api/bruno/Api/Ticket/-tickets--id.bru diff --git a/api/Api/Ticket/-tickets-client.bru b/api/bruno/Api/Ticket/-tickets-client.bru similarity index 100% rename from api/Api/Ticket/-tickets-client.bru rename to api/bruno/Api/Ticket/-tickets-client.bru diff --git a/api/Api/Ticket/-tickets-findOne.bru b/api/bruno/Api/Ticket/-tickets-findOne.bru similarity index 100% rename from api/Api/Ticket/-tickets-findOne.bru rename to api/bruno/Api/Ticket/-tickets-findOne.bru diff --git a/api/Api/Ticket/-tickets-saveSign.bru b/api/bruno/Api/Ticket/-tickets-saveSign.bru similarity index 100% rename from api/Api/Ticket/-tickets-saveSign.bru rename to api/bruno/Api/Ticket/-tickets-saveSign.bru diff --git a/api/Api/Ticket/-tickets-transferSales.bru b/api/bruno/Api/Ticket/-tickets-transferSales.bru similarity index 100% rename from api/Api/Ticket/-tickets-transferSales.bru rename to api/bruno/Api/Ticket/-tickets-transferSales.bru diff --git a/api/Api/Ticket/-tickets.bru b/api/bruno/Api/Ticket/-tickets.bru similarity index 100% rename from api/Api/Ticket/-tickets.bru rename to api/bruno/Api/Ticket/-tickets.bru diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru similarity index 100% rename from api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru rename to api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru similarity index 100% rename from api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru rename to api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru diff --git a/api/Api/operator/-Operators- get sector - labeler Copy.bru b/api/bruno/Api/operator/-Operators- get sector - labeler Copy.bru similarity index 100% rename from api/Api/operator/-Operators- get sector - labeler Copy.bru rename to api/bruno/Api/operator/-Operators- get sector - labeler Copy.bru diff --git a/api/Api/operator/-Operators- get sector - labeler.bru b/api/bruno/Api/operator/-Operators- get sector - labeler.bru similarity index 100% rename from api/Api/operator/-Operators- get sector - labeler.bru rename to api/bruno/Api/operator/-Operators- get sector - labeler.bru diff --git a/api/Api/operator/-Operators- get.bru b/api/bruno/Api/operator/-Operators- get.bru similarity index 100% rename from api/Api/operator/-Operators- get.bru rename to api/bruno/Api/operator/-Operators- get.bru diff --git a/api/Api/operator/-Operators- labeler.bru b/api/bruno/Api/operator/-Operators- labeler.bru similarity index 100% rename from api/Api/operator/-Operators- labeler.bru rename to api/bruno/Api/operator/-Operators- labeler.bru diff --git a/api/Api/operator/-Operators- sector Copy.bru b/api/bruno/Api/operator/-Operators- sector Copy.bru similarity index 100% rename from api/Api/operator/-Operators- sector Copy.bru rename to api/bruno/Api/operator/-Operators- sector Copy.bru diff --git a/api/Api/operator/-Operators- sector.bru b/api/bruno/Api/operator/-Operators- sector.bru similarity index 100% rename from api/Api/operator/-Operators- sector.bru rename to api/bruno/Api/operator/-Operators- sector.bru diff --git a/api/bruno.json b/api/bruno/bruno.json similarity index 100% rename from api/bruno.json rename to api/bruno/bruno.json diff --git a/api/environments/test.bru b/api/bruno/environments/test.bru similarity index 100% rename from api/environments/test.bru rename to api/bruno/environments/test.bru diff --git a/api/apiSalix/items.http b/api/http/items.http similarity index 100% rename from api/apiSalix/items.http rename to api/http/items.http diff --git a/api/apiSalix/sign-in.http b/api/http/sign-in.http similarity index 100% rename from api/apiSalix/sign-in.http rename to api/http/sign-in.http diff --git a/api/test.http b/api/http/test.http similarity index 100% rename from api/test.http rename to api/http/test.http diff --git a/api/result.json b/api/result.json deleted file mode 100644 index c056dd9c8..000000000 --- a/api/result.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "summary": { - "totalRequests": 1, - "passedRequests": 1, - "failedRequests": 0, - "totalAssertions": 0, - "passedAssertions": 0, - "failedAssertions": 0, - "totalTests": 0, - "passedTests": 0, - "failedTests": 0 - }, - "results": [ - { - "request": { - "method": "POST", - "url": "http://localhost:3000/api/VnUsers/sign-in", - "headers": { - "content-type": "application/json" - }, - "data": { - "user": "developer", - "password": "nightmare" - } - }, - "response": { - "status": 200, - "statusText": "OK", - "headers": { - "x-xss-protection": "1; mode=block", - "x-frame-options": "SAMEORIGIN", - "strict-transport-security": "max-age=0; includeSubDomains", - "x-download-options": "noopen", - "x-content-type-options": "nosniff", - "salix-version": "23.52.01", - "content-type": "application/json; charset=utf-8", - "content-length": "90", - "etag": "W/\"5a-zZa5o8ppwlY0gujzj8JC8aqHkyg\"", - "vary": "Accept-Encoding", - "date": "Wed, 13 Dec 2023 09:58:36 GMT", - "connection": "keep-alive", - "keep-alive": "timeout=5" - }, - "data": { - "token": "xeA1FERKLiqoCAmP3j1WHawFn71o5Nb4vITv6kYRWjzhiTlurXLfOEmBoiVMugKa", - "ttl": 1209600 - }, - "responseTime": 164 - }, - "error": null, - "assertionResults": [], - "testResults": [] - } - ] -} \ No newline at end of file diff --git a/api/test.bru b/api/test.bru deleted file mode 100644 index f216a2659..000000000 --- a/api/test.bru +++ /dev/null @@ -1,24 +0,0 @@ -meta { - name: login - type: http - seq: 1 -} - -post { - url: {{URL}}/api/VnUsers/sign-in - body: json - auth: none -} - -body:json { - {"user":"developer", "password": "nightmare"} -} - -body:multipart-form { - user: developer - password: nightmare -} - -script:post-response { - bru.setEnvVar('TOKEN', res.body.token) -} -- 2.40.1 From 54e88cf58826e6366e2cd3659f44db11619b3255 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 21 Dec 2023 13:11:00 +0100 Subject: [PATCH 5/9] refs #6451 remove http extension/files --- api/{bruno => }/Api/Account/login.bru | 0 api/{bruno => }/Api/Buy/-Buys -packaging.bru | 0 api/{bruno => }/Api/Chat/-chats-getServiceAuth.bru | 0 api/{bruno => }/Api/Chat/-chats-send.bru | 0 .../Api/Chat/-chats-sendCheckingPresence.bru | 0 api/{bruno => }/Api/Client/-clients--id.bru | 0 api/{bruno => }/Api/Client/-clients-findOne.bru | 0 api/{bruno => }/Api/Client/-clients.bru | 0 api/{bruno => }/Api/Client/-consumptionSendQueued.bru | 0 .../Api/Collection/-collection_getTickets TEST.bru | 0 .../Api/Collection/-collection_getTickets.bru | 0 api/{bruno => }/Api/Collection/-collections.bru | 0 api/{bruno => }/Api/Collection/-items--id.bru | 0 api/{bruno => }/Api/Collection/-items-findOne.bru | 0 api/{bruno => }/Api/Collection/-items.bru | 0 api/{bruno => }/Api/Edi/-edi-updateData.bru | 0 api/{bruno => }/Api/EmailUser/EmailUser.bru | 0 api/{bruno => }/Api/Entry/-Entries- Add-packaging.bru | 0 api/{bruno => }/Api/Entry/-Entries--listPackaging.bru | 0 .../Api/Entry/-Entries--packaging Notes.bru | 0 api/{bruno => }/Api/Entry/-Entries--packaging.bru | 0 .../Api/Entry/-Entries-addFromBuy -packaging.bru | 0 .../Api/Item/-item setVisibleDiscard Local.bru | 0 .../Api/Item/-item setVisibleDiscard TEST.bru | 0 api/{bruno => }/Api/Item/-item setVisibleDiscard.bru | 0 api/{bruno => }/Api/Item/-items--id.bru | 0 api/{bruno => }/Api/Item/-items-findOne.bru | 0 api/{bruno => }/Api/Item/-items.bru | 0 .../Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru | 0 .../Api/ItemBarCode/ItemBarCodes--id-toItem.bru | 0 api/{bruno => }/Api/ItemBarCode/ItemBarCodes.bru | 0 .../-itemImageQueues-downloadImages.bru | 0 .../Api/ItemImageQueue/-itemImageQueues.bru | 0 .../Api/ItemPackingType/ItemPackingTypes.bru | 0 .../Api/ItemShelvings/-itemShelvings-id.bru | 0 .../Api/ItemShelvings/-itemShelvings-update TEST.bru | 0 .../Api/ItemShelvings/-itemShelvings-update.bru | 0 api/{bruno => }/Api/Notifications/Send.bru | 0 api/{bruno => }/Api/ShelvingLog/ShelvingLogs.bru | 0 api/{bruno => }/Api/ShelvingLog/Shelvings.bru | 0 .../Api/Supplier/-Supplier--id--getItemsPackaging.bru | 0 api/{bruno => }/Api/Ticket/--id-delivery-note.bru | 0 api/{bruno => }/Api/Ticket/-tickets Advanced.bru | 0 api/{bruno => }/Api/Ticket/-tickets--id Notes.bru | 0 api/{bruno => }/Api/Ticket/-tickets--id.bru | 0 api/{bruno => }/Api/Ticket/-tickets-client.bru | 0 api/{bruno => }/Api/Ticket/-tickets-findOne.bru | 0 api/{bruno => }/Api/Ticket/-tickets-saveSign.bru | 0 api/{bruno => }/Api/Ticket/-tickets-transferSales.bru | 0 api/{bruno => }/Api/Ticket/-tickets.bru | 0 .../-ExpeditionStates-addState Copy.bru | 0 .../ExpeditionState/-ExpeditionStates-addState.bru | 0 .../-Operators- get sector - labeler Copy.bru | 0 .../Api/operator/-Operators- get sector - labeler.bru | 0 api/{bruno => }/Api/operator/-Operators- get.bru | 0 api/{bruno => }/Api/operator/-Operators- labeler.bru | 0 .../Api/operator/-Operators- sector Copy.bru | 0 api/{bruno => }/Api/operator/-Operators- sector.bru | 0 api/{bruno => }/bruno.json | 0 api/{bruno => }/environments/test.bru | 0 api/http/items.http | 5 ----- api/http/sign-in.http | 11 ----------- api/http/test.http | 7 ------- 63 files changed, 23 deletions(-) rename api/{bruno => }/Api/Account/login.bru (100%) rename api/{bruno => }/Api/Buy/-Buys -packaging.bru (100%) rename api/{bruno => }/Api/Chat/-chats-getServiceAuth.bru (100%) rename api/{bruno => }/Api/Chat/-chats-send.bru (100%) rename api/{bruno => }/Api/Chat/-chats-sendCheckingPresence.bru (100%) rename api/{bruno => }/Api/Client/-clients--id.bru (100%) rename api/{bruno => }/Api/Client/-clients-findOne.bru (100%) rename api/{bruno => }/Api/Client/-clients.bru (100%) rename api/{bruno => }/Api/Client/-consumptionSendQueued.bru (100%) rename api/{bruno => }/Api/Collection/-collection_getTickets TEST.bru (100%) rename api/{bruno => }/Api/Collection/-collection_getTickets.bru (100%) rename api/{bruno => }/Api/Collection/-collections.bru (100%) rename api/{bruno => }/Api/Collection/-items--id.bru (100%) rename api/{bruno => }/Api/Collection/-items-findOne.bru (100%) rename api/{bruno => }/Api/Collection/-items.bru (100%) rename api/{bruno => }/Api/Edi/-edi-updateData.bru (100%) rename api/{bruno => }/Api/EmailUser/EmailUser.bru (100%) rename api/{bruno => }/Api/Entry/-Entries- Add-packaging.bru (100%) rename api/{bruno => }/Api/Entry/-Entries--listPackaging.bru (100%) rename api/{bruno => }/Api/Entry/-Entries--packaging Notes.bru (100%) rename api/{bruno => }/Api/Entry/-Entries--packaging.bru (100%) rename api/{bruno => }/Api/Entry/-Entries-addFromBuy -packaging.bru (100%) rename api/{bruno => }/Api/Item/-item setVisibleDiscard Local.bru (100%) rename api/{bruno => }/Api/Item/-item setVisibleDiscard TEST.bru (100%) rename api/{bruno => }/Api/Item/-item setVisibleDiscard.bru (100%) rename api/{bruno => }/Api/Item/-items--id.bru (100%) rename api/{bruno => }/Api/Item/-items-findOne.bru (100%) rename api/{bruno => }/Api/Item/-items.bru (100%) rename api/{bruno => }/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru (100%) rename api/{bruno => }/Api/ItemBarCode/ItemBarCodes--id-toItem.bru (100%) rename api/{bruno => }/Api/ItemBarCode/ItemBarCodes.bru (100%) rename api/{bruno => }/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru (100%) rename api/{bruno => }/Api/ItemImageQueue/-itemImageQueues.bru (100%) rename api/{bruno => }/Api/ItemPackingType/ItemPackingTypes.bru (100%) rename api/{bruno => }/Api/ItemShelvings/-itemShelvings-id.bru (100%) rename api/{bruno => }/Api/ItemShelvings/-itemShelvings-update TEST.bru (100%) rename api/{bruno => }/Api/ItemShelvings/-itemShelvings-update.bru (100%) rename api/{bruno => }/Api/Notifications/Send.bru (100%) rename api/{bruno => }/Api/ShelvingLog/ShelvingLogs.bru (100%) rename api/{bruno => }/Api/ShelvingLog/Shelvings.bru (100%) rename api/{bruno => }/Api/Supplier/-Supplier--id--getItemsPackaging.bru (100%) rename api/{bruno => }/Api/Ticket/--id-delivery-note.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets Advanced.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets--id Notes.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets--id.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets-client.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets-findOne.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets-saveSign.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets-transferSales.bru (100%) rename api/{bruno => }/Api/Ticket/-tickets.bru (100%) rename api/{bruno => }/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru (100%) rename api/{bruno => }/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru (100%) rename api/{bruno => }/Api/operator/-Operators- get sector - labeler Copy.bru (100%) rename api/{bruno => }/Api/operator/-Operators- get sector - labeler.bru (100%) rename api/{bruno => }/Api/operator/-Operators- get.bru (100%) rename api/{bruno => }/Api/operator/-Operators- labeler.bru (100%) rename api/{bruno => }/Api/operator/-Operators- sector Copy.bru (100%) rename api/{bruno => }/Api/operator/-Operators- sector.bru (100%) rename api/{bruno => }/bruno.json (100%) rename api/{bruno => }/environments/test.bru (100%) delete mode 100644 api/http/items.http delete mode 100644 api/http/sign-in.http delete mode 100644 api/http/test.http diff --git a/api/bruno/Api/Account/login.bru b/api/Api/Account/login.bru similarity index 100% rename from api/bruno/Api/Account/login.bru rename to api/Api/Account/login.bru diff --git a/api/bruno/Api/Buy/-Buys -packaging.bru b/api/Api/Buy/-Buys -packaging.bru similarity index 100% rename from api/bruno/Api/Buy/-Buys -packaging.bru rename to api/Api/Buy/-Buys -packaging.bru diff --git a/api/bruno/Api/Chat/-chats-getServiceAuth.bru b/api/Api/Chat/-chats-getServiceAuth.bru similarity index 100% rename from api/bruno/Api/Chat/-chats-getServiceAuth.bru rename to api/Api/Chat/-chats-getServiceAuth.bru diff --git a/api/bruno/Api/Chat/-chats-send.bru b/api/Api/Chat/-chats-send.bru similarity index 100% rename from api/bruno/Api/Chat/-chats-send.bru rename to api/Api/Chat/-chats-send.bru diff --git a/api/bruno/Api/Chat/-chats-sendCheckingPresence.bru b/api/Api/Chat/-chats-sendCheckingPresence.bru similarity index 100% rename from api/bruno/Api/Chat/-chats-sendCheckingPresence.bru rename to api/Api/Chat/-chats-sendCheckingPresence.bru diff --git a/api/bruno/Api/Client/-clients--id.bru b/api/Api/Client/-clients--id.bru similarity index 100% rename from api/bruno/Api/Client/-clients--id.bru rename to api/Api/Client/-clients--id.bru diff --git a/api/bruno/Api/Client/-clients-findOne.bru b/api/Api/Client/-clients-findOne.bru similarity index 100% rename from api/bruno/Api/Client/-clients-findOne.bru rename to api/Api/Client/-clients-findOne.bru diff --git a/api/bruno/Api/Client/-clients.bru b/api/Api/Client/-clients.bru similarity index 100% rename from api/bruno/Api/Client/-clients.bru rename to api/Api/Client/-clients.bru diff --git a/api/bruno/Api/Client/-consumptionSendQueued.bru b/api/Api/Client/-consumptionSendQueued.bru similarity index 100% rename from api/bruno/Api/Client/-consumptionSendQueued.bru rename to api/Api/Client/-consumptionSendQueued.bru diff --git a/api/bruno/Api/Collection/-collection_getTickets TEST.bru b/api/Api/Collection/-collection_getTickets TEST.bru similarity index 100% rename from api/bruno/Api/Collection/-collection_getTickets TEST.bru rename to api/Api/Collection/-collection_getTickets TEST.bru diff --git a/api/bruno/Api/Collection/-collection_getTickets.bru b/api/Api/Collection/-collection_getTickets.bru similarity index 100% rename from api/bruno/Api/Collection/-collection_getTickets.bru rename to api/Api/Collection/-collection_getTickets.bru diff --git a/api/bruno/Api/Collection/-collections.bru b/api/Api/Collection/-collections.bru similarity index 100% rename from api/bruno/Api/Collection/-collections.bru rename to api/Api/Collection/-collections.bru diff --git a/api/bruno/Api/Collection/-items--id.bru b/api/Api/Collection/-items--id.bru similarity index 100% rename from api/bruno/Api/Collection/-items--id.bru rename to api/Api/Collection/-items--id.bru diff --git a/api/bruno/Api/Collection/-items-findOne.bru b/api/Api/Collection/-items-findOne.bru similarity index 100% rename from api/bruno/Api/Collection/-items-findOne.bru rename to api/Api/Collection/-items-findOne.bru diff --git a/api/bruno/Api/Collection/-items.bru b/api/Api/Collection/-items.bru similarity index 100% rename from api/bruno/Api/Collection/-items.bru rename to api/Api/Collection/-items.bru diff --git a/api/bruno/Api/Edi/-edi-updateData.bru b/api/Api/Edi/-edi-updateData.bru similarity index 100% rename from api/bruno/Api/Edi/-edi-updateData.bru rename to api/Api/Edi/-edi-updateData.bru diff --git a/api/bruno/Api/EmailUser/EmailUser.bru b/api/Api/EmailUser/EmailUser.bru similarity index 100% rename from api/bruno/Api/EmailUser/EmailUser.bru rename to api/Api/EmailUser/EmailUser.bru diff --git a/api/bruno/Api/Entry/-Entries- Add-packaging.bru b/api/Api/Entry/-Entries- Add-packaging.bru similarity index 100% rename from api/bruno/Api/Entry/-Entries- Add-packaging.bru rename to api/Api/Entry/-Entries- Add-packaging.bru diff --git a/api/bruno/Api/Entry/-Entries--listPackaging.bru b/api/Api/Entry/-Entries--listPackaging.bru similarity index 100% rename from api/bruno/Api/Entry/-Entries--listPackaging.bru rename to api/Api/Entry/-Entries--listPackaging.bru diff --git a/api/bruno/Api/Entry/-Entries--packaging Notes.bru b/api/Api/Entry/-Entries--packaging Notes.bru similarity index 100% rename from api/bruno/Api/Entry/-Entries--packaging Notes.bru rename to api/Api/Entry/-Entries--packaging Notes.bru diff --git a/api/bruno/Api/Entry/-Entries--packaging.bru b/api/Api/Entry/-Entries--packaging.bru similarity index 100% rename from api/bruno/Api/Entry/-Entries--packaging.bru rename to api/Api/Entry/-Entries--packaging.bru diff --git a/api/bruno/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Api/Entry/-Entries-addFromBuy -packaging.bru similarity index 100% rename from api/bruno/Api/Entry/-Entries-addFromBuy -packaging.bru rename to api/Api/Entry/-Entries-addFromBuy -packaging.bru diff --git a/api/bruno/Api/Item/-item setVisibleDiscard Local.bru b/api/Api/Item/-item setVisibleDiscard Local.bru similarity index 100% rename from api/bruno/Api/Item/-item setVisibleDiscard Local.bru rename to api/Api/Item/-item setVisibleDiscard Local.bru diff --git a/api/bruno/Api/Item/-item setVisibleDiscard TEST.bru b/api/Api/Item/-item setVisibleDiscard TEST.bru similarity index 100% rename from api/bruno/Api/Item/-item setVisibleDiscard TEST.bru rename to api/Api/Item/-item setVisibleDiscard TEST.bru diff --git a/api/bruno/Api/Item/-item setVisibleDiscard.bru b/api/Api/Item/-item setVisibleDiscard.bru similarity index 100% rename from api/bruno/Api/Item/-item setVisibleDiscard.bru rename to api/Api/Item/-item setVisibleDiscard.bru diff --git a/api/bruno/Api/Item/-items--id.bru b/api/Api/Item/-items--id.bru similarity index 100% rename from api/bruno/Api/Item/-items--id.bru rename to api/Api/Item/-items--id.bru diff --git a/api/bruno/Api/Item/-items-findOne.bru b/api/Api/Item/-items-findOne.bru similarity index 100% rename from api/bruno/Api/Item/-items-findOne.bru rename to api/Api/Item/-items-findOne.bru diff --git a/api/bruno/Api/Item/-items.bru b/api/Api/Item/-items.bru similarity index 100% rename from api/bruno/Api/Item/-items.bru rename to api/Api/Item/-items.bru diff --git a/api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru similarity index 100% rename from api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru rename to api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru diff --git a/api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru similarity index 100% rename from api/bruno/Api/ItemBarCode/ItemBarCodes--id-toItem.bru rename to api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru diff --git a/api/bruno/Api/ItemBarCode/ItemBarCodes.bru b/api/Api/ItemBarCode/ItemBarCodes.bru similarity index 100% rename from api/bruno/Api/ItemBarCode/ItemBarCodes.bru rename to api/Api/ItemBarCode/ItemBarCodes.bru diff --git a/api/bruno/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru similarity index 100% rename from api/bruno/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru rename to api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru diff --git a/api/bruno/Api/ItemImageQueue/-itemImageQueues.bru b/api/Api/ItemImageQueue/-itemImageQueues.bru similarity index 100% rename from api/bruno/Api/ItemImageQueue/-itemImageQueues.bru rename to api/Api/ItemImageQueue/-itemImageQueues.bru diff --git a/api/bruno/Api/ItemPackingType/ItemPackingTypes.bru b/api/Api/ItemPackingType/ItemPackingTypes.bru similarity index 100% rename from api/bruno/Api/ItemPackingType/ItemPackingTypes.bru rename to api/Api/ItemPackingType/ItemPackingTypes.bru diff --git a/api/bruno/Api/ItemShelvings/-itemShelvings-id.bru b/api/Api/ItemShelvings/-itemShelvings-id.bru similarity index 100% rename from api/bruno/Api/ItemShelvings/-itemShelvings-id.bru rename to api/Api/ItemShelvings/-itemShelvings-id.bru diff --git a/api/bruno/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/Api/ItemShelvings/-itemShelvings-update TEST.bru similarity index 100% rename from api/bruno/Api/ItemShelvings/-itemShelvings-update TEST.bru rename to api/Api/ItemShelvings/-itemShelvings-update TEST.bru diff --git a/api/bruno/Api/ItemShelvings/-itemShelvings-update.bru b/api/Api/ItemShelvings/-itemShelvings-update.bru similarity index 100% rename from api/bruno/Api/ItemShelvings/-itemShelvings-update.bru rename to api/Api/ItemShelvings/-itemShelvings-update.bru diff --git a/api/bruno/Api/Notifications/Send.bru b/api/Api/Notifications/Send.bru similarity index 100% rename from api/bruno/Api/Notifications/Send.bru rename to api/Api/Notifications/Send.bru diff --git a/api/bruno/Api/ShelvingLog/ShelvingLogs.bru b/api/Api/ShelvingLog/ShelvingLogs.bru similarity index 100% rename from api/bruno/Api/ShelvingLog/ShelvingLogs.bru rename to api/Api/ShelvingLog/ShelvingLogs.bru diff --git a/api/bruno/Api/ShelvingLog/Shelvings.bru b/api/Api/ShelvingLog/Shelvings.bru similarity index 100% rename from api/bruno/Api/ShelvingLog/Shelvings.bru rename to api/Api/ShelvingLog/Shelvings.bru diff --git a/api/bruno/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru similarity index 100% rename from api/bruno/Api/Supplier/-Supplier--id--getItemsPackaging.bru rename to api/Api/Supplier/-Supplier--id--getItemsPackaging.bru diff --git a/api/bruno/Api/Ticket/--id-delivery-note.bru b/api/Api/Ticket/--id-delivery-note.bru similarity index 100% rename from api/bruno/Api/Ticket/--id-delivery-note.bru rename to api/Api/Ticket/--id-delivery-note.bru diff --git a/api/bruno/Api/Ticket/-tickets Advanced.bru b/api/Api/Ticket/-tickets Advanced.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets Advanced.bru rename to api/Api/Ticket/-tickets Advanced.bru diff --git a/api/bruno/Api/Ticket/-tickets--id Notes.bru b/api/Api/Ticket/-tickets--id Notes.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets--id Notes.bru rename to api/Api/Ticket/-tickets--id Notes.bru diff --git a/api/bruno/Api/Ticket/-tickets--id.bru b/api/Api/Ticket/-tickets--id.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets--id.bru rename to api/Api/Ticket/-tickets--id.bru diff --git a/api/bruno/Api/Ticket/-tickets-client.bru b/api/Api/Ticket/-tickets-client.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets-client.bru rename to api/Api/Ticket/-tickets-client.bru diff --git a/api/bruno/Api/Ticket/-tickets-findOne.bru b/api/Api/Ticket/-tickets-findOne.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets-findOne.bru rename to api/Api/Ticket/-tickets-findOne.bru diff --git a/api/bruno/Api/Ticket/-tickets-saveSign.bru b/api/Api/Ticket/-tickets-saveSign.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets-saveSign.bru rename to api/Api/Ticket/-tickets-saveSign.bru diff --git a/api/bruno/Api/Ticket/-tickets-transferSales.bru b/api/Api/Ticket/-tickets-transferSales.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets-transferSales.bru rename to api/Api/Ticket/-tickets-transferSales.bru diff --git a/api/bruno/Api/Ticket/-tickets.bru b/api/Api/Ticket/-tickets.bru similarity index 100% rename from api/bruno/Api/Ticket/-tickets.bru rename to api/Api/Ticket/-tickets.bru diff --git a/api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru similarity index 100% rename from api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru rename to api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru diff --git a/api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru similarity index 100% rename from api/bruno/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru rename to api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru diff --git a/api/bruno/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Api/operator/-Operators- get sector - labeler Copy.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- get sector - labeler Copy.bru rename to api/Api/operator/-Operators- get sector - labeler Copy.bru diff --git a/api/bruno/Api/operator/-Operators- get sector - labeler.bru b/api/Api/operator/-Operators- get sector - labeler.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- get sector - labeler.bru rename to api/Api/operator/-Operators- get sector - labeler.bru diff --git a/api/bruno/Api/operator/-Operators- get.bru b/api/Api/operator/-Operators- get.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- get.bru rename to api/Api/operator/-Operators- get.bru diff --git a/api/bruno/Api/operator/-Operators- labeler.bru b/api/Api/operator/-Operators- labeler.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- labeler.bru rename to api/Api/operator/-Operators- labeler.bru diff --git a/api/bruno/Api/operator/-Operators- sector Copy.bru b/api/Api/operator/-Operators- sector Copy.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- sector Copy.bru rename to api/Api/operator/-Operators- sector Copy.bru diff --git a/api/bruno/Api/operator/-Operators- sector.bru b/api/Api/operator/-Operators- sector.bru similarity index 100% rename from api/bruno/Api/operator/-Operators- sector.bru rename to api/Api/operator/-Operators- sector.bru diff --git a/api/bruno/bruno.json b/api/bruno.json similarity index 100% rename from api/bruno/bruno.json rename to api/bruno.json diff --git a/api/bruno/environments/test.bru b/api/environments/test.bru similarity index 100% rename from api/bruno/environments/test.bru rename to api/environments/test.bru diff --git a/api/http/items.http b/api/http/items.http deleted file mode 100644 index b0a6d9cc8..000000000 --- a/api/http/items.http +++ /dev/null @@ -1,5 +0,0 @@ - -GET /api/items/findOne?filter=%7B%22where%22%3A%20%7B%22id%22%3A%201%7D%7D HTTP/1.1 -Authorization: {{token}} -Content-Type: application/json -Host: localhost:5000 diff --git a/api/http/sign-in.http b/api/http/sign-in.http deleted file mode 100644 index 068a1c218..000000000 --- a/api/http/sign-in.http +++ /dev/null @@ -1,11 +0,0 @@ - - -# @name login -POST /api/VnUsers/sign-in HTTP/1.1 -Content-Type: application/json -Host: localhost:3000 -Content-Length: 45 - -{"user":"developer", "password": "nightmare"} - - diff --git a/api/http/test.http b/api/http/test.http deleted file mode 100644 index 682f957a4..000000000 --- a/api/http/test.http +++ /dev/null @@ -1,7 +0,0 @@ -POST /api/VnUsers/sign-in HTTP/1.1 -Content-Type: application/json -Host: {{host}} -Content-Length: 45 - -{"user":"developer", "password": "nightmare"} - -- 2.40.1 From d1ddc893682a1e804a51d7f4d147057bad9fe8c0 Mon Sep 17 00:00:00 2001 From: JAVIER SEGARRA MARTINEZ Date: Fri, 22 Dec 2023 10:24:01 +0000 Subject: [PATCH 6/9] refs #6451 perf: remove settings related to rest-client --- .vscode/settings.json | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index a255cddb5..899dfc788 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,24 +14,5 @@ "cSpell.words": [ "salix", "fdescribe" - ], - "rest-client.previewOption": "body", - "rest-client.environmentVariables": { - "$shared": { - "version": "v1", - "prodToken": "verdnatura", - "nonProdToken": "verdnatura" - }, - "local": { - "version": "v2", - "host": "http://localhost:3000", - "token": "{{$shared nonProdToken}}", - "secretKey": "devSecret" - }, - "production": { - "host": "example.com", - "token": "{{$shared prodToken}}", - "secretKey" : "prodSecret" - } - } + ] } -- 2.40.1 From 212ce89a6292f997565d42ce94166408f8a2a1e4 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 9 Jan 2024 07:45:32 +0100 Subject: [PATCH 7/9] refs #6451: feat integrate bru.request from different parts --- .vscode/settings.json | 2 +- api/Api/Account/login.bru | 19 +++---------- api/Api/Ticket/--id-delivery-note.bru | 2 +- api/Api/Ticket/-ticketObservations.bru | 23 ++++++++++++++++ api/Api/Ticket/-ticketTracking.bru | 15 +++++++++++ api/Api/Ticket/-tickets Advanced.bru | 2 +- api/Api/Ticket/-tickets--id Notes.bru | 2 +- api/Api/Ticket/-tickets--id.bru | 2 +- api/Api/Ticket/-tickets-client.bru | 2 +- api/Api/Ticket/-tickets-findOne.bru | 2 +- api/Api/Ticket/-tickets-saveSign.bru | 2 +- api/Api/Ticket/-tickets-transferSales.bru | 2 +- api/Api/Ticket/-tickets.bru | 2 +- .../ItemShelving_updateFromSale OK.bru | 21 +++++++++++++++ ...signCollection OK PROVAR EN DEV I TEST.bru | 15 +++++++++++ api/Api/Warehouse/card OK.bru | 20 ++++++++++++++ api/Api/Warehouse/collection_addItem OK.bru | 24 +++++++++++++++++ api/Api/Warehouse/getPallet OK.bru | 21 +++++++++++++++ api/Api/Warehouse/getPrinter OK.bru | 15 +++++++++++ ...etOrCollection -collection_getTickets-.bru | 23 ++++++++++++++++ api/Api/Warehouse/getVersion OK.bru | 21 +++++++++++++++ .../itemBarcode_delete-barcode_edit- OK.bru | 22 +++++++++++++++ .../Warehouse/itemShelvingMake_multi OK.bru | 23 ++++++++++++++++ api/Api/Warehouse/itemShelving_return OK.bru | 21 +++++++++++++++ .../Warehouse/machineWorker_add REVISAR.bru | 21 +++++++++++++++ ...chineWorkers_update COMPROBAR DE NUEVO.bru | 21 +++++++++++++++ api/Api/Warehouse/operator_add OK.bru | 15 +++++++++++ api/Api/Warehouse/saleTrackingDel OK.bru | 22 +++++++++++++++ ...ace COMPROBAR DE NUEVO SUCCESS - ERROR.bru | 26 ++++++++++++++++++ .../saleTracking_mark COMPROBAR DE NUEVO.bru | 27 +++++++++++++++++++ ...ection_getSale OK PROVAR EN DEV I TEST.bru | 20 ++++++++++++++ api/Api/Warehouse/shelvingLog_add OK.bru | 21 +++++++++++++++ 32 files changed, 450 insertions(+), 26 deletions(-) create mode 100644 api/Api/Ticket/-ticketObservations.bru create mode 100644 api/Api/Ticket/-ticketTracking.bru create mode 100644 api/Api/Warehouse/ItemShelving_updateFromSale OK.bru create mode 100644 api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru create mode 100644 api/Api/Warehouse/card OK.bru create mode 100644 api/Api/Warehouse/collection_addItem OK.bru create mode 100644 api/Api/Warehouse/getPallet OK.bru create mode 100644 api/Api/Warehouse/getPrinter OK.bru create mode 100644 api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru create mode 100644 api/Api/Warehouse/getVersion OK.bru create mode 100644 api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru create mode 100644 api/Api/Warehouse/itemShelvingMake_multi OK.bru create mode 100644 api/Api/Warehouse/itemShelving_return OK.bru create mode 100644 api/Api/Warehouse/machineWorker_add REVISAR.bru create mode 100644 api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru create mode 100644 api/Api/Warehouse/operator_add OK.bru create mode 100644 api/Api/Warehouse/saleTrackingDel OK.bru create mode 100644 api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru create mode 100644 api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru create mode 100644 api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru create mode 100644 api/Api/Warehouse/shelvingLog_add OK.bru diff --git a/.vscode/settings.json b/.vscode/settings.json index a255cddb5..3d98138e2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,7 @@ // Carácter predeterminado de final de línea. "files.eol": "\n", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.fixAll.eslint": "explicit" }, "search.useIgnoreFiles": false, "editor.defaultFormatter": "dbaeumer.vscode-eslint", diff --git a/api/Api/Account/login.bru b/api/Api/Account/login.bru index f216a2659..25e6406e2 100644 --- a/api/Api/Account/login.bru +++ b/api/Api/Account/login.bru @@ -4,21 +4,8 @@ meta { seq: 1 } -post { - url: {{URL}}/api/VnUsers/sign-in - body: json +get { + url: + body: none auth: none } - -body:json { - {"user":"developer", "password": "nightmare"} -} - -body:multipart-form { - user: developer - password: nightmare -} - -script:post-response { - bru.setEnvVar('TOKEN', res.body.token) -} diff --git a/api/Api/Ticket/--id-delivery-note.bru b/api/Api/Ticket/--id-delivery-note.bru index 9c6a209b9..b07bbba57 100644 --- a/api/Api/Ticket/--id-delivery-note.bru +++ b/api/Api/Ticket/--id-delivery-note.bru @@ -1,7 +1,7 @@ meta { name: --id-delivery-note type: http - seq: 3 + seq: 4 } get { diff --git a/api/Api/Ticket/-ticketObservations.bru b/api/Api/Ticket/-ticketObservations.bru new file mode 100644 index 000000000..53fa63b2f --- /dev/null +++ b/api/Api/Ticket/-ticketObservations.bru @@ -0,0 +1,23 @@ +meta { + name: -ticketObservations + type: http + seq: 6 +} + +post { + url: http://localhost:5000/api/TicketObservations/1 + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + + {"description": "string", + "ticketFk": 1, + "observationTypeFk": 3 + } +} diff --git a/api/Api/Ticket/-ticketTracking.bru b/api/Api/Ticket/-ticketTracking.bru new file mode 100644 index 000000000..c7bfb518e --- /dev/null +++ b/api/Api/Ticket/-ticketTracking.bru @@ -0,0 +1,15 @@ +meta { + name: -ticketTracking + type: http + seq: 2 +} + +get { + url: http://localhost:5000/api/ticketStates?filter={"where": {"workerFk": 100},"limit": 5} + body: none + auth: none +} + +query { + filter: {"where": {"workerFk": 100},"limit": 5} +} diff --git a/api/Api/Ticket/-tickets Advanced.bru b/api/Api/Ticket/-tickets Advanced.bru index 2cdf36214..1dfd99ed0 100644 --- a/api/Api/Ticket/-tickets Advanced.bru +++ b/api/Api/Ticket/-tickets Advanced.bru @@ -1,7 +1,7 @@ meta { name: -tickets Advanced type: http - seq: 5 + seq: 7 } post { diff --git a/api/Api/Ticket/-tickets--id Notes.bru b/api/Api/Ticket/-tickets--id Notes.bru index 7284b6582..61ff861fb 100644 --- a/api/Api/Ticket/-tickets--id Notes.bru +++ b/api/Api/Ticket/-tickets--id Notes.bru @@ -1,7 +1,7 @@ meta { name: -tickets--id Notes type: http - seq: 10 + seq: 12 } post { diff --git a/api/Api/Ticket/-tickets--id.bru b/api/Api/Ticket/-tickets--id.bru index d617fd377..fedecec09 100644 --- a/api/Api/Ticket/-tickets--id.bru +++ b/api/Api/Ticket/-tickets--id.bru @@ -1,7 +1,7 @@ meta { name: -tickets--id type: http - seq: 9 + seq: 11 } patch { diff --git a/api/Api/Ticket/-tickets-client.bru b/api/Api/Ticket/-tickets-client.bru index e5612c0cf..42247c0b1 100644 --- a/api/Api/Ticket/-tickets-client.bru +++ b/api/Api/Ticket/-tickets-client.bru @@ -1,7 +1,7 @@ meta { name: -tickets-client type: http - seq: 6 + seq: 8 } get { diff --git a/api/Api/Ticket/-tickets-findOne.bru b/api/Api/Ticket/-tickets-findOne.bru index 79b1eaa01..bcd0a8d90 100644 --- a/api/Api/Ticket/-tickets-findOne.bru +++ b/api/Api/Ticket/-tickets-findOne.bru @@ -1,7 +1,7 @@ meta { name: -tickets-findOne type: http - seq: 11 + seq: 13 } get { diff --git a/api/Api/Ticket/-tickets-saveSign.bru b/api/Api/Ticket/-tickets-saveSign.bru index 5c5bc4dc3..f13d35241 100644 --- a/api/Api/Ticket/-tickets-saveSign.bru +++ b/api/Api/Ticket/-tickets-saveSign.bru @@ -1,7 +1,7 @@ meta { name: -tickets-saveSign type: http - seq: 12 + seq: 14 } get { diff --git a/api/Api/Ticket/-tickets-transferSales.bru b/api/Api/Ticket/-tickets-transferSales.bru index 1c136d850..70d4eac80 100644 --- a/api/Api/Ticket/-tickets-transferSales.bru +++ b/api/Api/Ticket/-tickets-transferSales.bru @@ -1,7 +1,7 @@ meta { name: -tickets-transferSales type: http - seq: 2 + seq: 3 } get { diff --git a/api/Api/Ticket/-tickets.bru b/api/Api/Ticket/-tickets.bru index 6ad2a15e9..db0b5c892 100644 --- a/api/Api/Ticket/-tickets.bru +++ b/api/Api/Ticket/-tickets.bru @@ -1,7 +1,7 @@ meta { name: -tickets type: http - seq: 4 + seq: 5 } post { diff --git a/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru b/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru new file mode 100644 index 000000000..9fc35562d --- /dev/null +++ b/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru @@ -0,0 +1,21 @@ +meta { + name: ItemShelving_updateFromSale OK + type: http + seq: 12 +} + +post { + url: http://localhost:3000/api/ItemShelvings/updateFromSale + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "saleFk": 1 + } +} diff --git a/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru b/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru new file mode 100644 index 000000000..00a2b9405 --- /dev/null +++ b/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru @@ -0,0 +1,15 @@ +meta { + name: assignCollection OK PROVAR EN DEV I TEST + type: http + seq: 2 +} + +post { + url: http://localhost:5000/api/Collections/assignCollection + body: none + auth: none +} + +headers { + Authorization: xtvEafI0pviO15Ik5NN52W2l1VNH1itOQ4roBCnZ2ef9RaEd6UBJqCNqMuYayzO6 +} diff --git a/api/Api/Warehouse/card OK.bru b/api/Api/Warehouse/card OK.bru new file mode 100644 index 000000000..e4f6060a6 --- /dev/null +++ b/api/Api/Warehouse/card OK.bru @@ -0,0 +1,20 @@ +meta { + name: card OK + type: http + seq: 5 +} + +get { + url: http://localhost:3000/api/Items/card?itemFk=1&warehouseFk=1 + body: json + auth: none +} + +query { + itemFk: 1 + warehouseFk: 1 +} + +headers { + Authorization: DEFAULT_TOKEN +} diff --git a/api/Api/Warehouse/collection_addItem OK.bru b/api/Api/Warehouse/collection_addItem OK.bru new file mode 100644 index 000000000..7d8a50043 --- /dev/null +++ b/api/Api/Warehouse/collection_addItem OK.bru @@ -0,0 +1,24 @@ +meta { + name: collection_addItem OK + type: http + seq: 18 +} + +post { + url: http://localhost:3000/api/Collections/addItem + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "code": "1111111111", + "quantity": 1, + "ticketFk": 24, + "warehouseFk": 1 + } +} diff --git a/api/Api/Warehouse/getPallet OK.bru b/api/Api/Warehouse/getPallet OK.bru new file mode 100644 index 000000000..48e29979f --- /dev/null +++ b/api/Api/Warehouse/getPallet OK.bru @@ -0,0 +1,21 @@ +meta { + name: getPallet OK + type: http + seq: 3 +} + +get { + url: http://localhost:5000/api/ExpeditionPallets/getPallet + body: json + auth: none +} + +headers { + Authorization: BtZWdbgXzZlhDp2NQERAUJJTeLkgq5pusK7dM2tSA5DP76SMmRqT0A6IYrlWwOzp +} + +body:json { + { + "expeditionFk": 1 + } +} diff --git a/api/Api/Warehouse/getPrinter OK.bru b/api/Api/Warehouse/getPrinter OK.bru new file mode 100644 index 000000000..bcde6ea49 --- /dev/null +++ b/api/Api/Warehouse/getPrinter OK.bru @@ -0,0 +1,15 @@ +meta { + name: getPrinter OK + type: http + seq: 4 +} + +get { + url: http://localhost:5000/api/Operators/getPrinter + body: none + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} diff --git a/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru b/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru new file mode 100644 index 000000000..c5c59948a --- /dev/null +++ b/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru @@ -0,0 +1,23 @@ +meta { + name: getSalesFromTicketOrCollection -collection_getTickets- + type: http + seq: 19 +} + +get { + url: http://localhost:3000/api/Collections/getSalesFromTicketOrCollection?collectionOrTicketFk=1§orFk=1&printFk=2&source=1&access_token=DEFAULT_TOKEN + body: json + auth: none +} + +query { + collectionOrTicketFk: 1 + sectorFk: 1 + printFk: 2 + source: 1 + access_token: DEFAULT_TOKEN +} + +headers { + Authorization: DEFAULT_TOKEN +} diff --git a/api/Api/Warehouse/getVersion OK.bru b/api/Api/Warehouse/getVersion OK.bru new file mode 100644 index 000000000..0c73e95b1 --- /dev/null +++ b/api/Api/Warehouse/getVersion OK.bru @@ -0,0 +1,21 @@ +meta { + name: getVersion OK + type: http + seq: 8 +} + +get { + url: http://localhost:3000/api/MobileAppVersionControls/getVersion + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "app":"delivery" + } +} diff --git a/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru b/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru new file mode 100644 index 000000000..4b50a2b81 --- /dev/null +++ b/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru @@ -0,0 +1,22 @@ +meta { + name: itemBarcode_delete-barcode_edit- OK + type: http + seq: 17 +} + +delete { + url: http://localhost:3000/api/ItemBarcodes/delete + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "barcode": "55555", + "itemFk": 1 + } +} diff --git a/api/Api/Warehouse/itemShelvingMake_multi OK.bru b/api/Api/Warehouse/itemShelvingMake_multi OK.bru new file mode 100644 index 000000000..a592e98f0 --- /dev/null +++ b/api/Api/Warehouse/itemShelvingMake_multi OK.bru @@ -0,0 +1,23 @@ +meta { + name: itemShelvingMake_multi OK + type: http + seq: 9 +} + +post { + url: http://localhost:3000/api/ItemShelvings/makeMulti + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "shelvingFk": 1, + "items": [1,1,1,2], + "warehouseFk": 1 + } +} diff --git a/api/Api/Warehouse/itemShelving_return OK.bru b/api/Api/Warehouse/itemShelving_return OK.bru new file mode 100644 index 000000000..7d0423a70 --- /dev/null +++ b/api/Api/Warehouse/itemShelving_return OK.bru @@ -0,0 +1,21 @@ +meta { + name: itemShelving_return OK + type: http + seq: 11 +} + +get { + url: http://localhost:3000/api/ItemShelvings/return + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "shelvingFk": "HEJ" + } +} diff --git a/api/Api/Warehouse/machineWorker_add REVISAR.bru b/api/Api/Warehouse/machineWorker_add REVISAR.bru new file mode 100644 index 000000000..e6b00aa56 --- /dev/null +++ b/api/Api/Warehouse/machineWorker_add REVISAR.bru @@ -0,0 +1,21 @@ +meta { + name: machineWorker_add REVISAR + type: http + seq: 7 +} + +post { + url: http://localhost:3000/api/MachineWorkers/add + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "plate": "RE-002" + } +} diff --git a/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru b/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru new file mode 100644 index 000000000..cb48e1069 --- /dev/null +++ b/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru @@ -0,0 +1,21 @@ +meta { + name: machineWorkers_update COMPROBAR DE NUEVO + type: http + seq: 6 +} + +post { + url: http://localhost:3000/api/MachineWorkers/updateInTime + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "plate": "RE-002" + } +} diff --git a/api/Api/Warehouse/operator_add OK.bru b/api/Api/Warehouse/operator_add OK.bru new file mode 100644 index 000000000..50877b915 --- /dev/null +++ b/api/Api/Warehouse/operator_add OK.bru @@ -0,0 +1,15 @@ +meta { + name: operator_add OK + type: http + seq: 1 +} + +post { + url: {{URL}}/api/Operators/add + body: none + auth: none +} + +headers { + Authorization: BtZWdbgXzZlhDp2NQERAUJJTeLkgq5pusK7dM2tSA5DP76SMmRqT0A6IYrlWwOzp +} diff --git a/api/Api/Warehouse/saleTrackingDel OK.bru b/api/Api/Warehouse/saleTrackingDel OK.bru new file mode 100644 index 000000000..1123a4bce --- /dev/null +++ b/api/Api/Warehouse/saleTrackingDel OK.bru @@ -0,0 +1,22 @@ +meta { + name: saleTrackingDel OK + type: http + seq: 10 +} + +post { + url: http://localhost:3000/api/SaleTrackings/delete + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "saleFk": 1, + "stateCodes": ["PREPARED", "OK", "CHECKED"] + } +} diff --git a/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru b/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru new file mode 100644 index 000000000..2acf72237 --- /dev/null +++ b/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru @@ -0,0 +1,26 @@ +meta { + name: saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR + type: http + seq: 13 +} + +post { + url: http://localhost:3000/api/SaleTrackings/updateTracking + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "saleFk": 1, + "originalQuantity": 10, + "code": "PREPARED", + "isChecked": true, + "buyFk": 1, + "isScanned": false + } +} diff --git a/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru b/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru new file mode 100644 index 000000000..3526bbaec --- /dev/null +++ b/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru @@ -0,0 +1,27 @@ +meta { + name: saleTracking_mark COMPROBAR DE NUEVO + type: http + seq: 14 +} + +post { + url: http://localhost:3000/api/SaleTrackings/mark + body: json + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:json { + { + "saleFk": 1, + "originalQuantity": 10, + "code": "PREPARED", + "isChecked": true, + "buyFk": 1, + "quantity": 1, + "itemShelvingFk": 1 + } +} diff --git a/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru b/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru new file mode 100644 index 000000000..eba60ca7f --- /dev/null +++ b/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru @@ -0,0 +1,20 @@ +meta { + name: sectorCollection_getSale OK PROVAR EN DEV I TEST + type: http + seq: 16 +} + +get { + url: http://localhost:3000/api/ItemShelvings/getSale?sectorCollectionFk=1§orFk=1 + body: none + auth: none +} + +query { + sectorCollectionFk: 1 + sectorFk: 1 +} + +headers { + Authorization: DEFAULT_TOKEN +} diff --git a/api/Api/Warehouse/shelvingLog_add OK.bru b/api/Api/Warehouse/shelvingLog_add OK.bru new file mode 100644 index 000000000..6b249fbeb --- /dev/null +++ b/api/Api/Warehouse/shelvingLog_add OK.bru @@ -0,0 +1,21 @@ +meta { + name: shelvingLog_add OK + type: http + seq: 15 +} + +post { + url: http://localhost:3000/api/Shelvings/addLog + body: text + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:text { + { + "code": "AA6" + } +} -- 2.40.1 From 962f0bbe7d5e1a75330cef33c8aa090b18760a4e Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 22 Jan 2024 10:17:14 +0100 Subject: [PATCH 8/9] refs #6451 feat: replace localhost by URL variable --- api/Api/Buy/-Buys -packaging.bru | 2 +- api/Api/Chat/-chats-getServiceAuth.bru | 2 +- api/Api/Chat/-chats-send.bru | 2 +- api/Api/Client/-clients--id.bru | 6 ++--- api/Api/Client/-clients-findOne.bru | 2 +- api/Api/Client/-clients.bru | 8 +++---- api/Api/Client/-consumptionSendQueued.bru | 2 +- api/Api/Collection/-collection_getTickets.bru | 2 +- api/Api/Collection/-collections.bru | 2 +- api/Api/Collection/-items--id.bru | 6 ++--- api/Api/Collection/-items-findOne.bru | 2 +- api/Api/Collection/-items.bru | 14 +++++------ api/Api/Edi/-edi-updateData.bru | 2 +- api/Api/EmailUser/EmailUser.bru | 2 +- api/Api/Entry/-Entries- Add-packaging.bru | 2 +- api/Api/Entry/-Entries--listPackaging.bru | 2 +- api/Api/Entry/-Entries--packaging Notes.bru | 2 +- api/Api/Entry/-Entries--packaging.bru | 2 +- .../Entry/-Entries-addFromBuy -packaging.bru | 2 +- .../Item/-item setVisibleDiscard Local.bru | 16 ++++++------- api/Api/Item/-item setVisibleDiscard.bru | 16 ++++++------- api/Api/Item/-items--id.bru | 6 ++--- api/Api/Item/-items-findOne.bru | 2 +- api/Api/Item/-items.bru | 14 +++++------ .../ItemBarCode/ItemBarCodes--id-toItem.bru | 2 +- api/Api/ItemBarCode/ItemBarCodes.bru | 8 +++---- .../-itemImageQueues-downloadImages.bru | 4 ++-- api/Api/ItemImageQueue/-itemImageQueues.bru | 2 +- api/Api/ItemPackingType/ItemPackingTypes.bru | 2 +- .../ItemShelvings/-itemShelvings-update.bru | 6 ++--- api/Api/ShelvingLog/ShelvingLogs.bru | 2 +- api/Api/ShelvingLog/Shelvings.bru | 2 +- .../-Supplier--id--getItemsPackaging.bru | 2 +- api/Api/Ticket/--id-delivery-note.bru | 2 +- api/Api/Ticket/-ticketObservations.bru | 4 ++-- api/Api/Ticket/-ticketTracking.bru | 2 +- api/Api/Ticket/-tickets Advanced.bru | 8 +++---- api/Api/Ticket/-tickets--id.bru | 6 ++--- api/Api/Ticket/-tickets-client.bru | 2 +- api/Api/Ticket/-tickets-findOne.bru | 2 +- api/Api/Ticket/-tickets-saveSign.bru | 4 ++-- api/Api/Ticket/-tickets-transferSales.bru | 2 +- api/Api/Ticket/-tickets.bru | 6 ++--- .../-ExpeditionStates-addState.bru | 24 +++++++++---------- .../ItemShelving_updateFromSale OK.bru | 2 +- ...signCollection OK PROVAR EN DEV I TEST.bru | 2 +- api/Api/Warehouse/card OK.bru | 2 +- api/Api/Warehouse/collection_addItem OK.bru | 2 +- api/Api/Warehouse/getPallet OK.bru | 2 +- api/Api/Warehouse/getPrinter OK.bru | 2 +- ...etOrCollection -collection_getTickets-.bru | 2 +- api/Api/Warehouse/getVersion OK.bru | 2 +- .../itemBarcode_delete-barcode_edit- OK.bru | 2 +- .../Warehouse/itemShelvingMake_multi OK.bru | 2 +- api/Api/Warehouse/itemShelving_return OK.bru | 2 +- .../Warehouse/machineWorker_add REVISAR.bru | 2 +- ...chineWorkers_update COMPROBAR DE NUEVO.bru | 2 +- api/Api/Warehouse/saleTrackingDel OK.bru | 2 +- ...ace COMPROBAR DE NUEVO SUCCESS - ERROR.bru | 2 +- .../saleTracking_mark COMPROBAR DE NUEVO.bru | 2 +- ...ection_getSale OK PROVAR EN DEV I TEST.bru | 2 +- api/Api/Warehouse/shelvingLog_add OK.bru | 2 +- .../-Operators- get sector - labeler Copy.bru | 6 ++--- .../-Operators- get sector - labeler.bru | 6 ++--- api/Api/operator/-Operators- labeler.bru | 6 ++--- api/Api/operator/-Operators- sector.bru | 8 +++---- 66 files changed, 136 insertions(+), 136 deletions(-) diff --git a/api/Api/Buy/-Buys -packaging.bru b/api/Api/Buy/-Buys -packaging.bru index 183654b06..82e312a1f 100644 --- a/api/Api/Buy/-Buys -packaging.bru +++ b/api/Api/Buy/-Buys -packaging.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Chat/-chats-getServiceAuth.bru b/api/Api/Chat/-chats-getServiceAuth.bru index 676380a04..265722520 100644 --- a/api/Api/Chat/-chats-getServiceAuth.bru +++ b/api/Api/Chat/-chats-getServiceAuth.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/chats/getServiceAuth + url: {{URL}}/api/chats/getServiceAuth body: none auth: none } diff --git a/api/Api/Chat/-chats-send.bru b/api/Api/Chat/-chats-send.bru index 99af4ca0f..f19cf2036 100644 --- a/api/Api/Chat/-chats-send.bru +++ b/api/Api/Chat/-chats-send.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/chats/send?to=@joan&message=Test message + url: {{URL}}/api/chats/send?to=@joan&message=Test message body: none auth: none } diff --git a/api/Api/Client/-clients--id.bru b/api/Api/Client/-clients--id.bru index 4053ea818..e2820ddb6 100644 --- a/api/Api/Client/-clients--id.bru +++ b/api/Api/Client/-clients--id.bru @@ -5,13 +5,13 @@ meta { } patch { - url: http://localhost:5000/api/clients/1101 + url: {{URL}}/api/clients/1101 body: json auth: none } body:json { - { - "name": "Test client" + { + "name": "Test client" } } diff --git a/api/Api/Client/-clients-findOne.bru b/api/Api/Client/-clients-findOne.bru index 638e7e7fc..22dc6527e 100644 --- a/api/Api/Client/-clients-findOne.bru +++ b/api/Api/Client/-clients-findOne.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/clients/findOne?filter={"where": {"id": 1101}} + url: {{URL}}/api/clients/findOne?filter={"where": {"id": 1101}} body: none auth: none } diff --git a/api/Api/Client/-clients.bru b/api/Api/Client/-clients.bru index 3b339dd33..1813bf1fa 100644 --- a/api/Api/Client/-clients.bru +++ b/api/Api/Client/-clients.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/clients?filter={} + url: {{URL}}/api/clients?filter={} body: json auth: none } @@ -15,8 +15,8 @@ query { } body:json { - { - "id": 1300, - "name": "Customer name" + { + "id": 1300, + "name": "Customer name" } } diff --git a/api/Api/Client/-consumptionSendQueued.bru b/api/Api/Client/-consumptionSendQueued.bru index 9074bc4ba..a27c38da3 100644 --- a/api/Api/Client/-consumptionSendQueued.bru +++ b/api/Api/Client/-consumptionSendQueued.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/clients/consumption-send-queued + url: {{URL}}/api/clients/consumption-send-queued body: none auth: none } diff --git a/api/Api/Collection/-collection_getTickets.bru b/api/Api/Collection/-collection_getTickets.bru index edf61d9e9..e05c805ba 100644 --- a/api/Api/Collection/-collection_getTickets.bru +++ b/api/Api/Collection/-collection_getTickets.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Collections/3/getTickets?print=false + url: {{URL}}/api/Collections/3/getTickets?print=false body: multipartForm auth: none } diff --git a/api/Api/Collection/-collections.bru b/api/Api/Collection/-collections.bru index 6ec61d3d8..728c381b1 100644 --- a/api/Api/Collection/-collections.bru +++ b/api/Api/Collection/-collections.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/collections?filter={"where": {"id": 1}} + url: {{URL}}/api/collections?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Collection/-items--id.bru b/api/Api/Collection/-items--id.bru index 346387ed3..02316a8ea 100644 --- a/api/Api/Collection/-items--id.bru +++ b/api/Api/Collection/-items--id.bru @@ -5,13 +5,13 @@ meta { } patch { - url: http://localhost:5000/api/tickets/1 + url: {{URL}}/api/tickets/1 body: json auth: none } body:json { - { - "name": "Test item" + { + "name": "Test item" } } diff --git a/api/Api/Collection/-items-findOne.bru b/api/Api/Collection/-items-findOne.bru index 46294662b..84a99d25f 100644 --- a/api/Api/Collection/-items-findOne.bru +++ b/api/Api/Collection/-items-findOne.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + url: {{URL}}/api/items/findOne?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Collection/-items.bru b/api/Api/Collection/-items.bru index 8207221b7..bfd483f76 100644 --- a/api/Api/Collection/-items.bru +++ b/api/Api/Collection/-items.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/items?filter={} + url: {{URL}}/api/items?filter={} body: json auth: none } @@ -15,11 +15,11 @@ query { } body:json { - { - "id": 999, - "name": "Ranged weapon longbow 5m", - "typeFk": 1, - "originFk": 1, - "intrastatFk": "5080000" + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" } } diff --git a/api/Api/Edi/-edi-updateData.bru b/api/Api/Edi/-edi-updateData.bru index 7d2191a50..9ac2f44e3 100644 --- a/api/Api/Edi/-edi-updateData.bru +++ b/api/Api/Edi/-edi-updateData.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/edis/updateData + url: {{URL}}/api/edis/updateData body: none auth: none } diff --git a/api/Api/EmailUser/EmailUser.bru b/api/Api/EmailUser/EmailUser.bru index 373f6b924..11980e298 100644 --- a/api/Api/EmailUser/EmailUser.bru +++ b/api/Api/EmailUser/EmailUser.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + url: {{URL}}/api/Shelvings?filter={"where":{"code":"BBB"}} body: json auth: none } diff --git a/api/Api/Entry/-Entries- Add-packaging.bru b/api/Api/Entry/-Entries- Add-packaging.bru index 69c58589d..0a6a09bee 100644 --- a/api/Api/Entry/-Entries- Add-packaging.bru +++ b/api/Api/Entry/-Entries- Add-packaging.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Entries/addFromPackaging?supplier=1&isTravelReception=false + url: {{URL}}/api/Entries/addFromPackaging?supplier=1&isTravelReception=false body: none auth: none } diff --git a/api/Api/Entry/-Entries--listPackaging.bru b/api/Api/Entry/-Entries--listPackaging.bru index a52a21ed8..64073b0f2 100644 --- a/api/Api/Entry/-Entries--listPackaging.bru +++ b/api/Api/Entry/-Entries--listPackaging.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Entry/-Entries--packaging Notes.bru b/api/Api/Entry/-Entries--packaging Notes.bru index 39df75f94..1b0fd6363 100644 --- a/api/Api/Entry/-Entries--packaging Notes.bru +++ b/api/Api/Entry/-Entries--packaging Notes.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Entry/-Entries--packaging.bru b/api/Api/Entry/-Entries--packaging.bru index c9428f875..75edbab0d 100644 --- a/api/Api/Entry/-Entries--packaging.bru +++ b/api/Api/Entry/-Entries--packaging.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Api/Entry/-Entries-addFromBuy -packaging.bru index da90a407f..65c4ef4c2 100644 --- a/api/Api/Entry/-Entries-addFromBuy -packaging.bru +++ b/api/Api/Entry/-Entries-addFromBuy -packaging.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Item/-item setVisibleDiscard Local.bru b/api/Api/Item/-item setVisibleDiscard Local.bru index 681546f39..6abd65e30 100644 --- a/api/Api/Item/-item setVisibleDiscard Local.bru +++ b/api/Api/Item/-item setVisibleDiscard Local.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/items/setVisibleDiscard + url: {{URL}}/api/items/setVisibleDiscard body: json auth: none } @@ -15,11 +15,11 @@ headers { } body:json { - { - "itemFk":1, - "warehouseFk":1, - "quantity":10, - "addressFk":null - } - + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":null + } + } diff --git a/api/Api/Item/-item setVisibleDiscard.bru b/api/Api/Item/-item setVisibleDiscard.bru index 24e1a1591..d3bb3a1f0 100644 --- a/api/Api/Item/-item setVisibleDiscard.bru +++ b/api/Api/Item/-item setVisibleDiscard.bru @@ -5,17 +5,17 @@ meta { } post { - url: http://localhost:5000/api/items/setVisibleDiscard + url: {{URL}}/api/items/setVisibleDiscard body: json auth: none } body:json { - { - "itemFk":1, - "warehouseFk":1, - "quantity":10, - "addressFk":1 - } - + { + "itemFk":1, + "warehouseFk":1, + "quantity":10, + "addressFk":1 + } + } diff --git a/api/Api/Item/-items--id.bru b/api/Api/Item/-items--id.bru index 18a74500b..f56d7f261 100644 --- a/api/Api/Item/-items--id.bru +++ b/api/Api/Item/-items--id.bru @@ -5,13 +5,13 @@ meta { } patch { - url: http://localhost:5000/api/tickets/1 + url: {{URL}}/api/tickets/1 body: json auth: none } body:json { - { - "name": "Test item" + { + "name": "Test item" } } diff --git a/api/Api/Item/-items-findOne.bru b/api/Api/Item/-items-findOne.bru index 1e76b1fff..40a1090fb 100644 --- a/api/Api/Item/-items-findOne.bru +++ b/api/Api/Item/-items-findOne.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/items/findOne?filter={"where": {"id": 1}} + url: {{URL}}/api/items/findOne?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Item/-items.bru b/api/Api/Item/-items.bru index a5e582511..2dd5b6c1d 100644 --- a/api/Api/Item/-items.bru +++ b/api/Api/Item/-items.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/items?filter={} + url: {{URL}}/api/items?filter={} body: json auth: none } @@ -15,11 +15,11 @@ query { } body:json { - { - "id": 999, - "name": "Ranged weapon longbow 5m", - "typeFk": 1, - "originFk": 1, - "intrastatFk": "5080000" + { + "id": 999, + "name": "Ranged weapon longbow 5m", + "typeFk": 1, + "originFk": 1, + "intrastatFk": "5080000" } } diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru index c2b7f9be4..f1843393b 100644 --- a/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru +++ b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/ItemBarCodes/1111111111/toItem + url: {{URL}}/api/ItemBarCodes/1111111111/toItem body: json auth: none } diff --git a/api/Api/ItemBarCode/ItemBarCodes.bru b/api/Api/ItemBarCode/ItemBarCodes.bru index 2d74419b3..e82153635 100644 --- a/api/Api/ItemBarCode/ItemBarCodes.bru +++ b/api/Api/ItemBarCode/ItemBarCodes.bru @@ -5,7 +5,7 @@ meta { } delete { - url: http://localhost:5000/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}} + url: {{URL}}/api/ItemBarCodes?filter={"where": {"itemFk": 1,"code":"ASDDD"}} body: json auth: none } @@ -16,8 +16,8 @@ query { } body:json { - - - + + + NO ES POT FER DELETE AMB UN FILTRE de item i code, és necessari el id. } diff --git a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru index 24c947a68..8d7a49cf6 100644 --- a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru +++ b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/itemImageQueues/download + url: {{URL}}/api/itemImageQueues/download body: none auth: none } @@ -15,5 +15,5 @@ headers { } script:pre-request { - // + // } diff --git a/api/Api/ItemImageQueue/-itemImageQueues.bru b/api/Api/ItemImageQueue/-itemImageQueues.bru index e1262e77e..d1f740b95 100644 --- a/api/Api/ItemImageQueue/-itemImageQueues.bru +++ b/api/Api/ItemImageQueue/-itemImageQueues.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/itemImageQueues + url: {{URL}}/api/itemImageQueues body: none auth: none } diff --git a/api/Api/ItemPackingType/ItemPackingTypes.bru b/api/Api/ItemPackingType/ItemPackingTypes.bru index e5ec7eb91..b67c98f31 100644 --- a/api/Api/ItemPackingType/ItemPackingTypes.bru +++ b/api/Api/ItemPackingType/ItemPackingTypes.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/ItemPackingTypes?filter={"where": {"isActive": true}} + url: {{URL}}/api/ItemPackingTypes?filter={"where": {"isActive": true}} body: none auth: none } diff --git a/api/Api/ItemShelvings/-itemShelvings-update.bru b/api/Api/ItemShelvings/-itemShelvings-update.bru index 4b0438f5f..cdc0314e3 100644 --- a/api/Api/ItemShelvings/-itemShelvings-update.bru +++ b/api/Api/ItemShelvings/-itemShelvings-update.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/itemShelvings/update?where={"id": {"inq": [1,3]}} + url: {{URL}}/api/itemShelvings/update?where={"id": {"inq": [1,3]}} body: json auth: none } @@ -22,7 +22,7 @@ headers { } body:json { - { - "isChecked":null + { + "isChecked":null } } diff --git a/api/Api/ShelvingLog/ShelvingLogs.bru b/api/Api/ShelvingLog/ShelvingLogs.bru index a97cbce22..8e78631f9 100644 --- a/api/Api/ShelvingLog/ShelvingLogs.bru +++ b/api/Api/ShelvingLog/ShelvingLogs.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} + url: {{URL}}/api/ShelvingLogs?filter={"include":[{"relation":"user","scope":{"fields":["name"]}}],"where":{"originFk":"5"}} body: json auth: none } diff --git a/api/Api/ShelvingLog/Shelvings.bru b/api/Api/ShelvingLog/Shelvings.bru index 1248d2ee1..c74d8e6b8 100644 --- a/api/Api/ShelvingLog/Shelvings.bru +++ b/api/Api/ShelvingLog/Shelvings.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Shelvings?filter={"where":{"code":"BBB"}} + url: {{URL}}/api/Shelvings?filter={"where":{"code":"BBB"}} body: json auth: none } diff --git a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru index 188c2c8fc..6dae87168 100644 --- a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru +++ b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Suppliers/2/getItemsPackaging?entry=1 + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 body: none auth: none } diff --git a/api/Api/Ticket/--id-delivery-note.bru b/api/Api/Ticket/--id-delivery-note.bru index b07bbba57..cf03228c1 100644 --- a/api/Api/Ticket/--id-delivery-note.bru +++ b/api/Api/Ticket/--id-delivery-note.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/tickets/delivery-note?filter={"where": {"id": 1}} + url: {{URL}}/api/tickets/delivery-note?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Ticket/-ticketObservations.bru b/api/Api/Ticket/-ticketObservations.bru index 53fa63b2f..f2997b5de 100644 --- a/api/Api/Ticket/-ticketObservations.bru +++ b/api/Api/Ticket/-ticketObservations.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/TicketObservations/1 + url: {{URL}}/api/TicketObservations/1 body: json auth: none } @@ -15,7 +15,7 @@ headers { } body:json { - + {"description": "string", "ticketFk": 1, "observationTypeFk": 3 diff --git a/api/Api/Ticket/-ticketTracking.bru b/api/Api/Ticket/-ticketTracking.bru index c7bfb518e..c7dbb8f72 100644 --- a/api/Api/Ticket/-ticketTracking.bru +++ b/api/Api/Ticket/-ticketTracking.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/ticketStates?filter={"where": {"workerFk": 100},"limit": 5} + url: {{URL}}/api/ticketStates?filter={"where": {"workerFk": 100},"limit": 5} body: none auth: none } diff --git a/api/Api/Ticket/-tickets Advanced.bru b/api/Api/Ticket/-tickets Advanced.bru index 1dfd99ed0..064c7aed0 100644 --- a/api/Api/Ticket/-tickets Advanced.bru +++ b/api/Api/Ticket/-tickets Advanced.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/packingSiteAdvanceds + url: {{URL}}/api/packingSiteAdvanceds body: json auth: none } @@ -20,8 +20,8 @@ headers { } body:json { - { - "workerFk": 1, - "ticketFk":2 + { + "workerFk": 1, + "ticketFk":2 } } diff --git a/api/Api/Ticket/-tickets--id.bru b/api/Api/Ticket/-tickets--id.bru index fedecec09..e9cb922ad 100644 --- a/api/Api/Ticket/-tickets--id.bru +++ b/api/Api/Ticket/-tickets--id.bru @@ -5,13 +5,13 @@ meta { } patch { - url: http://localhost:5000/api/items/1 + url: {{URL}}/api/items/1 body: json auth: none } body:json { - { - "name": "Test item" + { + "name": "Test item" } } diff --git a/api/Api/Ticket/-tickets-client.bru b/api/Api/Ticket/-tickets-client.bru index 42247c0b1..67c1343af 100644 --- a/api/Api/Ticket/-tickets-client.bru +++ b/api/Api/Ticket/-tickets-client.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/tickets/1/client?filter={"where": {"id": 1}} + url: {{URL}}/api/tickets/1/client?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Ticket/-tickets-findOne.bru b/api/Api/Ticket/-tickets-findOne.bru index bcd0a8d90..c9185c16b 100644 --- a/api/Api/Ticket/-tickets-findOne.bru +++ b/api/Api/Ticket/-tickets-findOne.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/tickets/findOne?filter={"where": {"id": 1}} + url: {{URL}}/api/tickets/findOne?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Ticket/-tickets-saveSign.bru b/api/Api/Ticket/-tickets-saveSign.bru index f13d35241..2567bc739 100644 --- a/api/Api/Ticket/-tickets-saveSign.bru +++ b/api/Api/Ticket/-tickets-saveSign.bru @@ -5,11 +5,11 @@ meta { } get { - url: http://localhost:5000/api/tickets/saveSign?tickets= + url: {{URL}}/api/tickets/saveSign?tickets= body: none auth: none } query { - tickets: + tickets: } diff --git a/api/Api/Ticket/-tickets-transferSales.bru b/api/Api/Ticket/-tickets-transferSales.bru index 70d4eac80..996267c49 100644 --- a/api/Api/Ticket/-tickets-transferSales.bru +++ b/api/Api/Ticket/-tickets-transferSales.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/tickets?filter={"where": {"id": 1}} + url: {{URL}}/api/tickets?filter={"where": {"id": 1}} body: none auth: none } diff --git a/api/Api/Ticket/-tickets.bru b/api/Api/Ticket/-tickets.bru index db0b5c892..9ea26ddbb 100644 --- a/api/Api/Ticket/-tickets.bru +++ b/api/Api/Ticket/-tickets.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/tickets?filter={} + url: {{URL}}/api/tickets?filter={} body: json auth: none } @@ -15,7 +15,7 @@ query { } body:json { - { - "id": 30 + { + "id": 30 } } diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru index 251b4c7ea..a25840eb0 100644 --- a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru +++ b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/ExpeditionStates/addExpeditionState + url: {{URL}}/api/ExpeditionStates/addExpeditionState body: json auth: none } @@ -16,16 +16,16 @@ headers { } body:json { - { - "expeditions": [ - { - "expeditionFk": 1, - "stateCode": "ON DELIVERY" - }, - { - "expeditionFk": 2, - "stateCode": "LOST" - } - ] + { + "expeditions": [ + { + "expeditionFk": 1, + "stateCode": "ON DELIVERY" + }, + { + "expeditionFk": 2, + "stateCode": "LOST" + } + ] } } diff --git a/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru b/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru index 9fc35562d..92e0f99b6 100644 --- a/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru +++ b/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/ItemShelvings/updateFromSale + url: {{URL}}/api/ItemShelvings/updateFromSale body: json auth: none } diff --git a/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru b/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru index 00a2b9405..d6e7462bf 100644 --- a/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru +++ b/api/Api/Warehouse/assignCollection OK PROVAR EN DEV I TEST.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Collections/assignCollection + url: {{URL}}/api/Collections/assignCollection body: none auth: none } diff --git a/api/Api/Warehouse/card OK.bru b/api/Api/Warehouse/card OK.bru index e4f6060a6..b710d2cb1 100644 --- a/api/Api/Warehouse/card OK.bru +++ b/api/Api/Warehouse/card OK.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:3000/api/Items/card?itemFk=1&warehouseFk=1 + url: {{URL}}/api/Items/card?itemFk=1&warehouseFk=1 body: json auth: none } diff --git a/api/Api/Warehouse/collection_addItem OK.bru b/api/Api/Warehouse/collection_addItem OK.bru index 7d8a50043..d08b98d64 100644 --- a/api/Api/Warehouse/collection_addItem OK.bru +++ b/api/Api/Warehouse/collection_addItem OK.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/Collections/addItem + url: {{URL}}/api/Collections/addItem body: json auth: none } diff --git a/api/Api/Warehouse/getPallet OK.bru b/api/Api/Warehouse/getPallet OK.bru index 48e29979f..691adc735 100644 --- a/api/Api/Warehouse/getPallet OK.bru +++ b/api/Api/Warehouse/getPallet OK.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/ExpeditionPallets/getPallet + url: {{URL}}/api/ExpeditionPallets/getPallet body: json auth: none } diff --git a/api/Api/Warehouse/getPrinter OK.bru b/api/Api/Warehouse/getPrinter OK.bru index bcde6ea49..c429ee269 100644 --- a/api/Api/Warehouse/getPrinter OK.bru +++ b/api/Api/Warehouse/getPrinter OK.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:5000/api/Operators/getPrinter + url: {{URL}}/api/Operators/getPrinter body: none auth: none } diff --git a/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru b/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru index c5c59948a..bd1e7594b 100644 --- a/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru +++ b/api/Api/Warehouse/getSalesFromTicketOrCollection -collection_getTickets-.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:3000/api/Collections/getSalesFromTicketOrCollection?collectionOrTicketFk=1§orFk=1&printFk=2&source=1&access_token=DEFAULT_TOKEN + url: {{URL}}/api/Collections/getSalesFromTicketOrCollection?collectionOrTicketFk=1§orFk=1&printFk=2&source=1&access_token=DEFAULT_TOKEN body: json auth: none } diff --git a/api/Api/Warehouse/getVersion OK.bru b/api/Api/Warehouse/getVersion OK.bru index 0c73e95b1..211a70111 100644 --- a/api/Api/Warehouse/getVersion OK.bru +++ b/api/Api/Warehouse/getVersion OK.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:3000/api/MobileAppVersionControls/getVersion + url: {{URL}}/api/MobileAppVersionControls/getVersion body: json auth: none } diff --git a/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru b/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru index 4b50a2b81..5dab70de5 100644 --- a/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru +++ b/api/Api/Warehouse/itemBarcode_delete-barcode_edit- OK.bru @@ -5,7 +5,7 @@ meta { } delete { - url: http://localhost:3000/api/ItemBarcodes/delete + url: {{URL}}/api/ItemBarcodes/delete body: json auth: none } diff --git a/api/Api/Warehouse/itemShelvingMake_multi OK.bru b/api/Api/Warehouse/itemShelvingMake_multi OK.bru index a592e98f0..7dad2ca50 100644 --- a/api/Api/Warehouse/itemShelvingMake_multi OK.bru +++ b/api/Api/Warehouse/itemShelvingMake_multi OK.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/ItemShelvings/makeMulti + url: {{URL}}/api/ItemShelvings/makeMulti body: json auth: none } diff --git a/api/Api/Warehouse/itemShelving_return OK.bru b/api/Api/Warehouse/itemShelving_return OK.bru index 7d0423a70..47a297f9e 100644 --- a/api/Api/Warehouse/itemShelving_return OK.bru +++ b/api/Api/Warehouse/itemShelving_return OK.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:3000/api/ItemShelvings/return + url: {{URL}}/api/ItemShelvings/return body: json auth: none } diff --git a/api/Api/Warehouse/machineWorker_add REVISAR.bru b/api/Api/Warehouse/machineWorker_add REVISAR.bru index e6b00aa56..4a907af71 100644 --- a/api/Api/Warehouse/machineWorker_add REVISAR.bru +++ b/api/Api/Warehouse/machineWorker_add REVISAR.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/MachineWorkers/add + url: {{URL}}/api/MachineWorkers/add body: json auth: none } diff --git a/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru b/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru index cb48e1069..b3badbcce 100644 --- a/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru +++ b/api/Api/Warehouse/machineWorkers_update COMPROBAR DE NUEVO.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/MachineWorkers/updateInTime + url: {{URL}}/api/MachineWorkers/updateInTime body: json auth: none } diff --git a/api/Api/Warehouse/saleTrackingDel OK.bru b/api/Api/Warehouse/saleTrackingDel OK.bru index 1123a4bce..ba950808d 100644 --- a/api/Api/Warehouse/saleTrackingDel OK.bru +++ b/api/Api/Warehouse/saleTrackingDel OK.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/SaleTrackings/delete + url: {{URL}}/api/SaleTrackings/delete body: json auth: none } diff --git a/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru b/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru index 2acf72237..5db1ec782 100644 --- a/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru +++ b/api/Api/Warehouse/saleTrackingReplace COMPROBAR DE NUEVO SUCCESS - ERROR.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/SaleTrackings/updateTracking + url: {{URL}}/api/SaleTrackings/updateTracking body: json auth: none } diff --git a/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru b/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru index 3526bbaec..6870c8a38 100644 --- a/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru +++ b/api/Api/Warehouse/saleTracking_mark COMPROBAR DE NUEVO.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/SaleTrackings/mark + url: {{URL}}/api/SaleTrackings/mark body: json auth: none } diff --git a/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru b/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru index eba60ca7f..9ffb66480 100644 --- a/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru +++ b/api/Api/Warehouse/sectorCollection_getSale OK PROVAR EN DEV I TEST.bru @@ -5,7 +5,7 @@ meta { } get { - url: http://localhost:3000/api/ItemShelvings/getSale?sectorCollectionFk=1§orFk=1 + url: {{URL}}/api/ItemShelvings/getSale?sectorCollectionFk=1§orFk=1 body: none auth: none } diff --git a/api/Api/Warehouse/shelvingLog_add OK.bru b/api/Api/Warehouse/shelvingLog_add OK.bru index 6b249fbeb..59694fbbe 100644 --- a/api/Api/Warehouse/shelvingLog_add OK.bru +++ b/api/Api/Warehouse/shelvingLog_add OK.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:3000/api/Shelvings/addLog + url: {{URL}}/api/Shelvings/addLog body: text auth: none } diff --git a/api/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Api/operator/-Operators- get sector - labeler Copy.bru index ec111ad82..addf0bc04 100644 --- a/api/Api/operator/-Operators- get sector - labeler Copy.bru +++ b/api/Api/operator/-Operators- get sector - labeler Copy.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + url: {{URL}}/api/Operators/update?where[workerFk]=9 body: json auth: none } @@ -19,7 +19,7 @@ headers { } body:json { - { - "labelerFk":2 + { + "labelerFk":2 } } diff --git a/api/Api/operator/-Operators- get sector - labeler.bru b/api/Api/operator/-Operators- get sector - labeler.bru index 0ea6814e3..559dbd23b 100644 --- a/api/Api/operator/-Operators- get sector - labeler.bru +++ b/api/Api/operator/-Operators- get sector - labeler.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + url: {{URL}}/api/Operators/update?where[workerFk]=9 body: json auth: none } @@ -19,7 +19,7 @@ headers { } body:json { - { - "labelerFk":2 + { + "labelerFk":2 } } diff --git a/api/Api/operator/-Operators- labeler.bru b/api/Api/operator/-Operators- labeler.bru index 901a7ed5c..a4064fbe6 100644 --- a/api/Api/operator/-Operators- labeler.bru +++ b/api/Api/operator/-Operators- labeler.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Operators/update?where[workerFk]=9 + url: {{URL}}/api/Operators/update?where[workerFk]=9 body: json auth: none } @@ -19,7 +19,7 @@ headers { } body:json { - { - "labelerFk":2 + { + "labelerFk":2 } } diff --git a/api/Api/operator/-Operators- sector.bru b/api/Api/operator/-Operators- sector.bru index 936f9936d..f3bc04a22 100644 --- a/api/Api/operator/-Operators- sector.bru +++ b/api/Api/operator/-Operators- sector.bru @@ -5,7 +5,7 @@ meta { } post { - url: http://localhost:5000/api/Operators/update?where[workerFK]=9 + url: {{URL}}/api/Operators/update?where[workerFK]=9 body: json auth: none } @@ -19,8 +19,8 @@ headers { } body:json { - { - "sectorFk":2, - "labelerFk":null + { + "sectorFk":2, + "labelerFk":null } } -- 2.40.1 From 85a1e7a09ab1f96cd1aa0187a8420bdd2f7a8ed5 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 23 Jan 2024 09:28:02 +0100 Subject: [PATCH 9/9] refs #6451 feat: replace token value by URL variable --- api/Api/Account/login.bru | 19 +++++++++++++--- api/Api/Buy/-Buys -packaging.bru | 2 +- api/Api/Chat/-chats-sendCheckingPresence.bru | 6 ++--- api/Api/Entry/-Entries- Add-packaging.bru | 2 +- api/Api/Entry/-Entries--listPackaging.bru | 2 +- api/Api/Entry/-Entries--packaging Notes.bru | 2 +- api/Api/Entry/-Entries--packaging.bru | 2 +- .../Entry/-Entries-addFromBuy -packaging.bru | 2 +- .../Item/-item setVisibleDiscard Local.bru | 2 +- api/Api/Item/-item setVisibleDiscard TEST.bru | 14 ++++++------ .../ItemBarCodes--id-toItem Copy.bru | 2 +- .../-itemImageQueues-downloadImages.bru | 2 +- .../-itemShelvings-update TEST.bru | 6 ++--- .../ItemShelvings/-itemShelvings-update.bru | 2 +- .../-Supplier--id--getItemsPackaging.bru | 2 +- api/Api/Ticket/-tickets Advanced.bru | 2 +- api/Api/Ticket/-tickets--id Notes.bru | 22 +++++++++---------- .../-ExpeditionStates-addState Copy.bru | 18 +++++++-------- .../-Operators- get sector - labeler Copy.bru | 2 +- .../-Operators- get sector - labeler.bru | 2 +- api/Api/operator/-Operators- get.bru | 8 +++---- api/Api/operator/-Operators- labeler.bru | 2 +- api/Api/operator/-Operators- sector.bru | 2 +- 23 files changed, 69 insertions(+), 56 deletions(-) diff --git a/api/Api/Account/login.bru b/api/Api/Account/login.bru index 25e6406e2..f216a2659 100644 --- a/api/Api/Account/login.bru +++ b/api/Api/Account/login.bru @@ -4,8 +4,21 @@ meta { seq: 1 } -get { - url: - body: none +post { + url: {{URL}}/api/VnUsers/sign-in + body: json auth: none } + +body:json { + {"user":"developer", "password": "nightmare"} +} + +body:multipart-form { + user: developer + password: nightmare +} + +script:post-response { + bru.setEnvVar('TOKEN', res.body.token) +} diff --git a/api/Api/Buy/-Buys -packaging.bru b/api/Api/Buy/-Buys -packaging.bru index 82e312a1f..1ba0f0c30 100644 --- a/api/Api/Buy/-Buys -packaging.bru +++ b/api/Api/Buy/-Buys -packaging.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Chat/-chats-sendCheckingPresence.bru b/api/Api/Chat/-chats-sendCheckingPresence.bru index dd175fe9a..e5171f35a 100644 --- a/api/Api/Chat/-chats-sendCheckingPresence.bru +++ b/api/Api/Chat/-chats-sendCheckingPresence.bru @@ -16,11 +16,11 @@ query { } headers { - Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY + Authorization: {{TOKEN}} } body:json { - { - "workerId":19591 + { + "workerId":19591 } } diff --git a/api/Api/Entry/-Entries- Add-packaging.bru b/api/Api/Entry/-Entries- Add-packaging.bru index 0a6a09bee..0e2877f72 100644 --- a/api/Api/Entry/-Entries- Add-packaging.bru +++ b/api/Api/Entry/-Entries- Add-packaging.bru @@ -16,5 +16,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Entry/-Entries--listPackaging.bru b/api/Api/Entry/-Entries--listPackaging.bru index 64073b0f2..b0dcaa738 100644 --- a/api/Api/Entry/-Entries--listPackaging.bru +++ b/api/Api/Entry/-Entries--listPackaging.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Entry/-Entries--packaging Notes.bru b/api/Api/Entry/-Entries--packaging Notes.bru index 1b0fd6363..4419a3ea8 100644 --- a/api/Api/Entry/-Entries--packaging Notes.bru +++ b/api/Api/Entry/-Entries--packaging Notes.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Entry/-Entries--packaging.bru b/api/Api/Entry/-Entries--packaging.bru index 75edbab0d..5f741564e 100644 --- a/api/Api/Entry/-Entries--packaging.bru +++ b/api/Api/Entry/-Entries--packaging.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Api/Entry/-Entries-addFromBuy -packaging.bru index 65c4ef4c2..0cf03e7b9 100644 --- a/api/Api/Entry/-Entries-addFromBuy -packaging.bru +++ b/api/Api/Entry/-Entries-addFromBuy -packaging.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Item/-item setVisibleDiscard Local.bru b/api/Api/Item/-item setVisibleDiscard Local.bru index 6abd65e30..55372103f 100644 --- a/api/Api/Item/-item setVisibleDiscard Local.bru +++ b/api/Api/Item/-item setVisibleDiscard Local.bru @@ -11,7 +11,7 @@ post { } headers { - Authorization: DEFAULT_TOKEN + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/Item/-item setVisibleDiscard TEST.bru b/api/Api/Item/-item setVisibleDiscard TEST.bru index 1b68c426c..7cf77cc28 100644 --- a/api/Api/Item/-item setVisibleDiscard TEST.bru +++ b/api/Api/Item/-item setVisibleDiscard TEST.bru @@ -11,15 +11,15 @@ post { } headers { - Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn + Authorization: {{TOKEN}} } body:json { - { - "addressFk": 77, - "itemFk": 10, - "quantity": 1, - "warehouseFk": 60 - } + { + "addressFk": 77, + "itemFk": 10, + "quantity": 1, + "warehouseFk": 60 + } } diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru index 5c7a296fd..eb126b431 100644 --- a/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru +++ b/api/Api/ItemBarCode/ItemBarCodes--id-toItem Copy.bru @@ -11,5 +11,5 @@ get { } headers { - Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB + Authorization: {{TOKEN}} } diff --git a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru index 8d7a49cf6..070447874 100644 --- a/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru +++ b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru @@ -11,7 +11,7 @@ post { } headers { - Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz + Authorization: {{TOKEN}} } script:pre-request { diff --git a/api/Api/ItemShelvings/-itemShelvings-update TEST.bru b/api/Api/ItemShelvings/-itemShelvings-update TEST.bru index 69938ad71..107760d16 100644 --- a/api/Api/ItemShelvings/-itemShelvings-update TEST.bru +++ b/api/Api/ItemShelvings/-itemShelvings-update TEST.bru @@ -18,11 +18,11 @@ query { } headers { - Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG + Authorization: {{TOKEN}} } body:json { - { - "isChecked":null + { + "isChecked":null } } diff --git a/api/Api/ItemShelvings/-itemShelvings-update.bru b/api/Api/ItemShelvings/-itemShelvings-update.bru index cdc0314e3..9a4ac65a2 100644 --- a/api/Api/ItemShelvings/-itemShelvings-update.bru +++ b/api/Api/ItemShelvings/-itemShelvings-update.bru @@ -18,7 +18,7 @@ query { } headers { - Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru index 6dae87168..e34c67b75 100644 --- a/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru +++ b/api/Api/Supplier/-Supplier--id--getItemsPackaging.bru @@ -15,5 +15,5 @@ query { } headers { - Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN + Authorization: {{TOKEN}} } diff --git a/api/Api/Ticket/-tickets Advanced.bru b/api/Api/Ticket/-tickets Advanced.bru index 064c7aed0..64465d192 100644 --- a/api/Api/Ticket/-tickets Advanced.bru +++ b/api/Api/Ticket/-tickets Advanced.bru @@ -16,7 +16,7 @@ query { } headers { - Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/Ticket/-tickets--id Notes.bru b/api/Api/Ticket/-tickets--id Notes.bru index 61ff861fb..9a36641f9 100644 --- a/api/Api/Ticket/-tickets--id Notes.bru +++ b/api/Api/Ticket/-tickets--id Notes.bru @@ -15,19 +15,19 @@ query { } headers { - Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg + Authorization: {{TOKEN}} } body:json { - { - { - "ticketFk": "4379408", - "$orgIndex": null, - "$oldData": null, - "$isNew": true, - "observationTypeFk": 3, - "description": "fdas asd as" - } - + { + { + "ticketFk": "4379408", + "$orgIndex": null, + "$oldData": null, + "$isNew": true, + "observationTypeFk": 3, + "description": "fdas asd as" + } + } } diff --git a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru index 637127f15..eccf80bf3 100644 --- a/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru +++ b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState Copy.bru @@ -11,17 +11,17 @@ post { } headers { - Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB + Authorization: {{TOKEN}} } body:json { - { - "expeditions": [ - { - "expeditionFk": 7437897, - "stateCode": "LOST" - } - - ] + { + "expeditions": [ + { + "expeditionFk": 7437897, + "stateCode": "LOST" + } + + ] } } diff --git a/api/Api/operator/-Operators- get sector - labeler Copy.bru b/api/Api/operator/-Operators- get sector - labeler Copy.bru index addf0bc04..2a6614c9b 100644 --- a/api/Api/operator/-Operators- get sector - labeler Copy.bru +++ b/api/Api/operator/-Operators- get sector - labeler Copy.bru @@ -15,7 +15,7 @@ query { } headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/operator/-Operators- get sector - labeler.bru b/api/Api/operator/-Operators- get sector - labeler.bru index 559dbd23b..b0fd31205 100644 --- a/api/Api/operator/-Operators- get sector - labeler.bru +++ b/api/Api/operator/-Operators- get sector - labeler.bru @@ -15,7 +15,7 @@ query { } headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/operator/-Operators- get.bru b/api/Api/operator/-Operators- get.bru index 6ea1faab1..672837a94 100644 --- a/api/Api/operator/-Operators- get.bru +++ b/api/Api/operator/-Operators- get.bru @@ -15,12 +15,12 @@ query { } headers { - Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy + Authorization: {{TOKEN}} } body:json { - { - "sectorFk":2, - "labelerFk":null + { + "sectorFk":2, + "labelerFk":null } } diff --git a/api/Api/operator/-Operators- labeler.bru b/api/Api/operator/-Operators- labeler.bru index a4064fbe6..66781676b 100644 --- a/api/Api/operator/-Operators- labeler.bru +++ b/api/Api/operator/-Operators- labeler.bru @@ -15,7 +15,7 @@ query { } headers { - Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9 + Authorization: {{TOKEN}} } body:json { diff --git a/api/Api/operator/-Operators- sector.bru b/api/Api/operator/-Operators- sector.bru index f3bc04a22..7de3d67f3 100644 --- a/api/Api/operator/-Operators- sector.bru +++ b/api/Api/operator/-Operators- sector.bru @@ -15,7 +15,7 @@ query { } headers { - Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp + Authorization: {{TOKEN}} } body:json { -- 2.40.1