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..1ba0f0c30 --- /dev/null +++ b/api/Api/Buy/-Buys -packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Buys -packaging + type: http + seq: 1 +} + +get { + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Chat/-chats-getServiceAuth.bru b/api/Api/Chat/-chats-getServiceAuth.bru new file mode 100644 index 000000000..265722520 --- /dev/null +++ b/api/Api/Chat/-chats-getServiceAuth.bru @@ -0,0 +1,11 @@ +meta { + name: -chats-getServiceAuth + type: http + seq: 1 +} + +get { + 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 new file mode 100644 index 000000000..f19cf2036 --- /dev/null +++ b/api/Api/Chat/-chats-send.bru @@ -0,0 +1,16 @@ +meta { + name: -chats-send + type: http + seq: 2 +} + +post { + url: {{URL}}/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..e5171f35a --- /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: {{TOKEN}} +} + +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..e2820ddb6 --- /dev/null +++ b/api/Api/Client/-clients--id.bru @@ -0,0 +1,17 @@ +meta { + name: -clients--id + type: http + seq: 5 +} + +patch { + url: {{URL}}/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..22dc6527e --- /dev/null +++ b/api/Api/Client/-clients-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -clients-findOne + type: http + seq: 6 +} + +get { + url: {{URL}}/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..1813bf1fa --- /dev/null +++ b/api/Api/Client/-clients.bru @@ -0,0 +1,22 @@ +meta { + name: -clients + type: http + seq: 2 +} + +post { + url: {{URL}}/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..a27c38da3 --- /dev/null +++ b/api/Api/Client/-consumptionSendQueued.bru @@ -0,0 +1,11 @@ +meta { + name: -consumptionSendQueued + type: http + seq: 7 +} + +post { + url: {{URL}}/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..e05c805ba --- /dev/null +++ b/api/Api/Collection/-collection_getTickets.bru @@ -0,0 +1,21 @@ +meta { + name: -collection_getTickets + type: http + seq: 2 +} + +post { + url: {{URL}}/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..728c381b1 --- /dev/null +++ b/api/Api/Collection/-collections.bru @@ -0,0 +1,15 @@ +meta { + name: -collections + type: http + seq: 1 +} + +get { + url: {{URL}}/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..02316a8ea --- /dev/null +++ b/api/Api/Collection/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 7 +} + +patch { + url: {{URL}}/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..84a99d25f --- /dev/null +++ b/api/Api/Collection/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 8 +} + +get { + url: {{URL}}/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..bfd483f76 --- /dev/null +++ b/api/Api/Collection/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 4 +} + +post { + url: {{URL}}/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..9ac2f44e3 --- /dev/null +++ b/api/Api/Edi/-edi-updateData.bru @@ -0,0 +1,11 @@ +meta { + name: -edi-updateData + type: http + seq: 1 +} + +get { + url: {{URL}}/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..11980e298 --- /dev/null +++ b/api/Api/EmailUser/EmailUser.bru @@ -0,0 +1,25 @@ +meta { + name: EmailUser + type: http + seq: 1 +} + +get { + url: {{URL}}/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..0e2877f72 --- /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: {{URL}}/api/Entries/addFromPackaging?supplier=1&isTravelReception=false + body: none + auth: none +} + +query { + supplier: 1 + isTravelReception: false +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Entry/-Entries--listPackaging.bru b/api/Api/Entry/-Entries--listPackaging.bru new file mode 100644 index 000000000..b0dcaa738 --- /dev/null +++ b/api/Api/Entry/-Entries--listPackaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--listPackaging + type: http + seq: 2 +} + +get { + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Entry/-Entries--packaging Notes.bru b/api/Api/Entry/-Entries--packaging Notes.bru new file mode 100644 index 000000000..4419a3ea8 --- /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: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Entry/-Entries--packaging.bru b/api/Api/Entry/-Entries--packaging.bru new file mode 100644 index 000000000..5f741564e --- /dev/null +++ b/api/Api/Entry/-Entries--packaging.bru @@ -0,0 +1,19 @@ +meta { + name: -Entries--packaging + type: http + seq: 1 +} + +get { + url: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Entry/-Entries-addFromBuy -packaging.bru b/api/Api/Entry/-Entries-addFromBuy -packaging.bru new file mode 100644 index 000000000..0cf03e7b9 --- /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: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Item/-item setVisibleDiscard Local.bru b/api/Api/Item/-item setVisibleDiscard Local.bru new file mode 100644 index 000000000..55372103f --- /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: {{URL}}/api/items/setVisibleDiscard + body: json + auth: none +} + +headers { + Authorization: {{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..7cf77cc28 --- /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: {{TOKEN}} +} + +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..d3bb3a1f0 --- /dev/null +++ b/api/Api/Item/-item setVisibleDiscard.bru @@ -0,0 +1,21 @@ +meta { + name: -item setVisibleDiscard + type: http + seq: 2 +} + +post { + url: {{URL}}/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..f56d7f261 --- /dev/null +++ b/api/Api/Item/-items--id.bru @@ -0,0 +1,17 @@ +meta { + name: -items--id + type: http + seq: 8 +} + +patch { + url: {{URL}}/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..40a1090fb --- /dev/null +++ b/api/Api/Item/-items-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -items-findOne + type: http + seq: 9 +} + +get { + url: {{URL}}/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..2dd5b6c1d --- /dev/null +++ b/api/Api/Item/-items.bru @@ -0,0 +1,25 @@ +meta { + name: -items + type: http + seq: 5 +} + +post { + url: {{URL}}/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..eb126b431 --- /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: {{TOKEN}} +} diff --git a/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru b/api/Api/ItemBarCode/ItemBarCodes--id-toItem.bru new file mode 100644 index 000000000..f1843393b --- /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: {{URL}}/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..e82153635 --- /dev/null +++ b/api/Api/ItemBarCode/ItemBarCodes.bru @@ -0,0 +1,23 @@ +meta { + name: ItemBarCodes + type: http + seq: 2 +} + +delete { + url: {{URL}}/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..070447874 --- /dev/null +++ b/api/Api/ItemImageQueue/-itemImageQueues-downloadImages.bru @@ -0,0 +1,19 @@ +meta { + name: -itemImageQueues-downloadImages + type: http + seq: 2 +} + +post { + url: {{URL}}/api/itemImageQueues/download + body: none + auth: none +} + +headers { + Authorization: {{TOKEN}} +} + +script:pre-request { + // +} diff --git a/api/Api/ItemImageQueue/-itemImageQueues.bru b/api/Api/ItemImageQueue/-itemImageQueues.bru new file mode 100644 index 000000000..d1f740b95 --- /dev/null +++ b/api/Api/ItemImageQueue/-itemImageQueues.bru @@ -0,0 +1,11 @@ +meta { + name: -itemImageQueues + type: http + seq: 1 +} + +get { + url: {{URL}}/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..b67c98f31 --- /dev/null +++ b/api/Api/ItemPackingType/ItemPackingTypes.bru @@ -0,0 +1,15 @@ +meta { + name: ItemPackingTypes + type: http + seq: 1 +} + +get { + url: {{URL}}/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..107760d16 --- /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: {{TOKEN}} +} + +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..9a4ac65a2 --- /dev/null +++ b/api/Api/ItemShelvings/-itemShelvings-update.bru @@ -0,0 +1,28 @@ +meta { + name: -itemShelvings-update + type: http + seq: 2 +} + +post { + url: {{URL}}/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: {{TOKEN}} +} + +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..8e78631f9 --- /dev/null +++ b/api/Api/ShelvingLog/ShelvingLogs.bru @@ -0,0 +1,18 @@ +meta { + name: ShelvingLogs + type: http + seq: 1 +} + +get { + url: {{URL}}/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..c74d8e6b8 --- /dev/null +++ b/api/Api/ShelvingLog/Shelvings.bru @@ -0,0 +1,25 @@ +meta { + name: Shelvings + type: http + seq: 2 +} + +get { + url: {{URL}}/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..e34c67b75 --- /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: {{URL}}/api/Suppliers/2/getItemsPackaging?entry=1 + body: none + auth: none +} + +query { + entry: 1 +} + +headers { + Authorization: {{TOKEN}} +} diff --git a/api/Api/Ticket/--id-delivery-note.bru b/api/Api/Ticket/--id-delivery-note.bru new file mode 100644 index 000000000..cf03228c1 --- /dev/null +++ b/api/Api/Ticket/--id-delivery-note.bru @@ -0,0 +1,15 @@ +meta { + name: --id-delivery-note + type: http + seq: 4 +} + +get { + url: {{URL}}/api/tickets/delivery-note?filter={"where": {"id": 1}} + body: none + auth: none +} + +query { + filter: {"where": {"id": 1}} +} diff --git a/api/Api/Ticket/-ticketObservations.bru b/api/Api/Ticket/-ticketObservations.bru new file mode 100644 index 000000000..f2997b5de --- /dev/null +++ b/api/Api/Ticket/-ticketObservations.bru @@ -0,0 +1,23 @@ +meta { + name: -ticketObservations + type: http + seq: 6 +} + +post { + url: {{URL}}/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..c7dbb8f72 --- /dev/null +++ b/api/Api/Ticket/-ticketTracking.bru @@ -0,0 +1,15 @@ +meta { + name: -ticketTracking + type: http + seq: 2 +} + +get { + url: {{URL}}/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 new file mode 100644 index 000000000..64465d192 --- /dev/null +++ b/api/Api/Ticket/-tickets Advanced.bru @@ -0,0 +1,27 @@ +meta { + name: -tickets Advanced + type: http + seq: 7 +} + +post { + url: {{URL}}/api/packingSiteAdvanceds + body: json + auth: none +} + +query { + ~workerFk: 1 + ~ticketFk: 2 +} + +headers { + Authorization: {{TOKEN}} +} + +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..9a36641f9 --- /dev/null +++ b/api/Api/Ticket/-tickets--id Notes.bru @@ -0,0 +1,33 @@ +meta { + name: -tickets--id Notes + type: http + seq: 12 +} + +post { + url: https://test-salix.verdnatura.es/api/TicketObservations/crud?ticketFk=4379408 + body: json + auth: none +} + +query { + ticketFk: 4379408 +} + +headers { + Authorization: {{TOKEN}} +} + +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..e9cb922ad --- /dev/null +++ b/api/Api/Ticket/-tickets--id.bru @@ -0,0 +1,17 @@ +meta { + name: -tickets--id + type: http + seq: 11 +} + +patch { + url: {{URL}}/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..67c1343af --- /dev/null +++ b/api/Api/Ticket/-tickets-client.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-client + type: http + seq: 8 +} + +get { + url: {{URL}}/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..c9185c16b --- /dev/null +++ b/api/Api/Ticket/-tickets-findOne.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-findOne + type: http + seq: 13 +} + +get { + url: {{URL}}/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..2567bc739 --- /dev/null +++ b/api/Api/Ticket/-tickets-saveSign.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-saveSign + type: http + seq: 14 +} + +get { + url: {{URL}}/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..996267c49 --- /dev/null +++ b/api/Api/Ticket/-tickets-transferSales.bru @@ -0,0 +1,15 @@ +meta { + name: -tickets-transferSales + type: http + seq: 3 +} + +get { + url: {{URL}}/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..9ea26ddbb --- /dev/null +++ b/api/Api/Ticket/-tickets.bru @@ -0,0 +1,21 @@ +meta { + name: -tickets + type: http + seq: 5 +} + +post { + url: {{URL}}/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..eccf80bf3 --- /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: {{TOKEN}} +} + +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..a25840eb0 --- /dev/null +++ b/api/Api/Ticket/ExpeditionState/-ExpeditionStates-addState.bru @@ -0,0 +1,31 @@ +meta { + name: -ExpeditionStates-addState + type: http + seq: 1 +} + +post { + url: {{URL}}/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/Warehouse/ItemShelving_updateFromSale OK.bru b/api/Api/Warehouse/ItemShelving_updateFromSale OK.bru new file mode 100644 index 000000000..92e0f99b6 --- /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: {{URL}}/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..d6e7462bf --- /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: {{URL}}/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..b710d2cb1 --- /dev/null +++ b/api/Api/Warehouse/card OK.bru @@ -0,0 +1,20 @@ +meta { + name: card OK + type: http + seq: 5 +} + +get { + url: {{URL}}/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..d08b98d64 --- /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: {{URL}}/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..691adc735 --- /dev/null +++ b/api/Api/Warehouse/getPallet OK.bru @@ -0,0 +1,21 @@ +meta { + name: getPallet OK + type: http + seq: 3 +} + +get { + url: {{URL}}/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..c429ee269 --- /dev/null +++ b/api/Api/Warehouse/getPrinter OK.bru @@ -0,0 +1,15 @@ +meta { + name: getPrinter OK + type: http + seq: 4 +} + +get { + url: {{URL}}/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..bd1e7594b --- /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: {{URL}}/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..211a70111 --- /dev/null +++ b/api/Api/Warehouse/getVersion OK.bru @@ -0,0 +1,21 @@ +meta { + name: getVersion OK + type: http + seq: 8 +} + +get { + url: {{URL}}/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..5dab70de5 --- /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: {{URL}}/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..7dad2ca50 --- /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: {{URL}}/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..47a297f9e --- /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: {{URL}}/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..4a907af71 --- /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: {{URL}}/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..b3badbcce --- /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: {{URL}}/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..ba950808d --- /dev/null +++ b/api/Api/Warehouse/saleTrackingDel OK.bru @@ -0,0 +1,22 @@ +meta { + name: saleTrackingDel OK + type: http + seq: 10 +} + +post { + url: {{URL}}/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..5db1ec782 --- /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: {{URL}}/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..6870c8a38 --- /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: {{URL}}/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..9ffb66480 --- /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: {{URL}}/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..59694fbbe --- /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: {{URL}}/api/Shelvings/addLog + body: text + auth: none +} + +headers { + Authorization: DEFAULT_TOKEN +} + +body:text { + { + "code": "AA6" + } +} 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..2a6614c9b --- /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: {{URL}}/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: {{TOKEN}} +} + +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..b0fd31205 --- /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: {{URL}}/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: {{TOKEN}} +} + +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..672837a94 --- /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: {{TOKEN}} +} + +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..66781676b --- /dev/null +++ b/api/Api/operator/-Operators- labeler.bru @@ -0,0 +1,25 @@ +meta { + name: -Operators- labeler + type: http + seq: 4 +} + +post { + url: {{URL}}/api/Operators/update?where[workerFk]=9 + body: json + auth: none +} + +query { + where[workerFk]: 9 +} + +headers { + Authorization: {{TOKEN}} +} + +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..7de3d67f3 --- /dev/null +++ b/api/Api/operator/-Operators- sector.bru @@ -0,0 +1,26 @@ +meta { + name: -Operators- sector + type: http + seq: 1 +} + +post { + url: {{URL}}/api/Operators/update?where[workerFK]=9 + body: json + auth: none +} + +query { + where[workerFK]: 9 +} + +headers { + Authorization: {{TOKEN}} +} + +body:json { + { + "sectorFk":2, + "labelerFk":null + } +} diff --git a/api/bruno.json b/api/bruno.json new file mode 100644 index 000000000..c37803e07 --- /dev/null +++ b/api/bruno.json @@ -0,0 +1,5 @@ +{ + "version": "1", + "name": "apiSalix", + "type": "collection" +} 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: +}