WIP: #6451 - Insomnia #1891

Draft
jsegarra wants to merge 14 commits from 6451_insomnia into dev
81 changed files with 1611 additions and 0 deletions

24
api/Api/Account/login.bru Normal file
View File

@ -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)
}

View File

@ -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}}
}

View File

@ -0,0 +1,11 @@
meta {
name: -chats-getServiceAuth
type: http
seq: 1
}
get {
url: {{URL}}/api/chats/getServiceAuth
body: none
auth: none
}

View File

@ -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
}

View File

@ -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
}
}

View File

@ -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"
}
}

View File

@ -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}}
}

View File

@ -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"
}
}

View File

@ -0,0 +1,11 @@
meta {
name: -consumptionSendQueued
type: http
seq: 7
}
post {
url: {{URL}}/api/clients/consumption-send-queued
body: none
auth: none
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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}}
}

View File

@ -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"
}
}

View File

@ -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}}
}

View File

@ -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"
}
}

View File

@ -0,0 +1,11 @@
meta {
name: -edi-updateData
type: http
seq: 1
}
get {
url: {{URL}}/api/edis/updateData
body: none
auth: none
}

View File

@ -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
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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"
}
}

View File

@ -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}}
}

25
api/Api/Item/-items.bru Normal file
View File

@ -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"
}
}

View File

@ -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}}
}

View File

@ -0,0 +1,11 @@
meta {
name: ItemBarCodes--id-toItem
type: http
seq: 3
}
get {
url: {{URL}}/api/ItemBarCodes/1111111111/toItem
body: json
auth: none
}

View File

@ -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.
}

View File

@ -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 {
//
}

View File

@ -0,0 +1,11 @@
meta {
name: -itemImageQueues
type: http
seq: 1
}
get {
url: {{URL}}/api/itemImageQueues
body: none
auth: none
}

View File

@ -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}}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -0,0 +1,11 @@
meta {
name: Send
type: http
seq: 1
}
get {
url:
body: none
auth: none
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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
}
}

View File

@ -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}
}

View File

@ -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
}
}

View File

@ -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"
}
}
}

View File

@ -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"
}
}

View File

@ -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}}
}

View File

@ -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}}
}

View File

@ -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:
}

View File

@ -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}}
}

View File

@ -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
}
}

View File

@ -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"
}
]
}
}

View File

@ -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"
}
]
}
}

View File

@ -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
}
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}

View File

@ -0,0 +1,23 @@
meta {
name: getSalesFromTicketOrCollection -collection_getTickets-
type: http
seq: 19
}
get {
url: {{URL}}/api/Collections/getSalesFromTicketOrCollection?collectionOrTicketFk=1&sectorFk=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
}

View File

@ -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"
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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"
}
}

View File

@ -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
}

View File

@ -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"]
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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&sectorFk=1
body: none
auth: none
}
query {
sectorCollectionFk: 1
sectorFk: 1
}
headers {
Authorization: DEFAULT_TOKEN
}

View File

@ -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"
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

5
api/bruno.json Normal file
View File

@ -0,0 +1,5 @@
{
"version": "1",
"name": "apiSalix",
"type": "collection"
}

View File

@ -0,0 +1,4 @@
vars {
URL: http://localhost:3000
TOKEN:
}