diff --git a/.vscode/settings.json b/.vscode/settings.json index 899dfc7884..e778aa5cea 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 0000000000..f216a2659d --- /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 0000000000..183654b064 --- /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 0000000000..676380a048 --- /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 0000000000..99af4ca0f4 --- /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 0000000000..dd175fe9a0 --- /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 0000000000..4053ea8184 --- /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 0000000000..638e7e7fc6 --- /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 0000000000..3b339dd33e --- /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 0000000000..9074bc4bab --- /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 0000000000..49c686d3c4 --- /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 0000000000..edf61d9e99 --- /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 0000000000..6ec61d3d89 --- /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 0000000000..346387ed35 --- /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 0000000000..46294662b3 --- /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 0000000000..8207221b72 --- /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 0000000000..7d2191a502 --- /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 0000000000..373f6b9244 --- /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 0000000000..69c58589d8 --- /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 0000000000..a52a21ed86 --- /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 0000000000..39df75f94f --- /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 0000000000..c9428f8751 --- /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 0000000000..da90a407f3 --- /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 0000000000..681546f393 --- /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 0000000000..1b68c426ca --- /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 0000000000..24e1a15912 --- /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 0000000000..18a74500b2 --- /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 0000000000..1e76b1fff8 --- /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 0000000000..a5e5825119 --- /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 0000000000..5c7a296fd3 --- /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 0000000000..c2b7f9be47 --- /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 0000000000..2d74419b36 --- /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 0000000000..24c947a680 --- /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 0000000000..e1262e77e6 --- /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 0000000000..e5ec7eb91f --- /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 0000000000..cc483a51d7 --- /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 0000000000..69938ad710 --- /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 0000000000..4b0438f5ff --- /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 0000000000..fe0d850a9f --- /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 0000000000..a97cbce22b --- /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 0000000000..1248d2ee10 --- /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 0000000000..188c2c8fcd --- /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 0000000000..9c6a209b9a --- /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 0000000000..2cdf36214a --- /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 0000000000..7284b65824 --- /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 0000000000..d617fd3778 --- /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 0000000000..e5612c0cf5 --- /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 0000000000..79b1eaa014 --- /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 0000000000..5c5bc4dc34 --- /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 0000000000..1c136d8502 --- /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 0000000000..6ad2a15e9c --- /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 0000000000..637127f15f --- /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 0000000000..251b4c7eab --- /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 0000000000..ec111ad828 --- /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 0000000000..0ea6814e3c --- /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 0000000000..6ea1faab1d --- /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 0000000000..901a7ed5cd --- /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 0000000000..0b2911a3dd --- /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 0000000000..936f9936d3 --- /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 0000000000..4096dba7ea --- /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 0000000000..39721f394c --- /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 0000000000..c056dd9c8e --- /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 0000000000..682f957a4a --- /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"} +