refs #6451: feat integrate bru.request from different parts

This commit is contained in:
Javier Segarra 2024-01-09 07:45:32 +01:00
parent 54e88cf588
commit 212ce89a62
32 changed files with 450 additions and 26 deletions

View File

@ -3,7 +3,7 @@
// Carácter predeterminado de final de línea. // Carácter predeterminado de final de línea.
"files.eol": "\n", "files.eol": "\n",
"editor.codeActionsOnSave": { "editor.codeActionsOnSave": {
"source.fixAll.eslint": true "source.fixAll.eslint": "explicit"
}, },
"search.useIgnoreFiles": false, "search.useIgnoreFiles": false,
"editor.defaultFormatter": "dbaeumer.vscode-eslint", "editor.defaultFormatter": "dbaeumer.vscode-eslint",

View File

@ -4,21 +4,8 @@ meta {
seq: 1 seq: 1
} }
post { get {
url: {{URL}}/api/VnUsers/sign-in url:
body: json body: none
auth: none auth: none
} }
body:json {
{"user":"developer", "password": "nightmare"}
}
body:multipart-form {
user: developer
password: nightmare
}
script:post-response {
bru.setEnvVar('TOKEN', res.body.token)
}

View File

@ -1,7 +1,7 @@
meta { meta {
name: --id-delivery-note name: --id-delivery-note
type: http type: http
seq: 3 seq: 4
} }
get { get {

View File

@ -0,0 +1,23 @@
meta {
name: -ticketObservations
type: http
seq: 6
}
post {
url: http://localhost:5000/api/TicketObservations/1
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{"description": "string",
"ticketFk": 1,
"observationTypeFk": 3
}
}

View File

@ -0,0 +1,15 @@
meta {
name: -ticketTracking
type: http
seq: 2
}
get {
url: http://localhost:5000/api/ticketStates?filter={"where": {"workerFk": 100},"limit": 5}
body: none
auth: none
}
query {
filter: {"where": {"workerFk": 100},"limit": 5}
}

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets Advanced name: -tickets Advanced
type: http type: http
seq: 5 seq: 7
} }
post { post {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets--id Notes name: -tickets--id Notes
type: http type: http
seq: 10 seq: 12
} }
post { post {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets--id name: -tickets--id
type: http type: http
seq: 9 seq: 11
} }
patch { patch {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets-client name: -tickets-client
type: http type: http
seq: 6 seq: 8
} }
get { get {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets-findOne name: -tickets-findOne
type: http type: http
seq: 11 seq: 13
} }
get { get {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets-saveSign name: -tickets-saveSign
type: http type: http
seq: 12 seq: 14
} }
get { get {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets-transferSales name: -tickets-transferSales
type: http type: http
seq: 2 seq: 3
} }
get { get {

View File

@ -1,7 +1,7 @@
meta { meta {
name: -tickets name: -tickets
type: http type: http
seq: 4 seq: 5
} }
post { post {

View File

@ -0,0 +1,21 @@
meta {
name: ItemShelving_updateFromSale OK
type: http
seq: 12
}
post {
url: http://localhost:3000/api/ItemShelvings/updateFromSale
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"saleFk": 1
}
}

View File

@ -0,0 +1,15 @@
meta {
name: assignCollection OK PROVAR EN DEV I TEST
type: http
seq: 2
}
post {
url: http://localhost:5000/api/Collections/assignCollection
body: none
auth: none
}
headers {
Authorization: xtvEafI0pviO15Ik5NN52W2l1VNH1itOQ4roBCnZ2ef9RaEd6UBJqCNqMuYayzO6
}

View File

@ -0,0 +1,20 @@
meta {
name: card OK
type: http
seq: 5
}
get {
url: http://localhost:3000/api/Items/card?itemFk=1&warehouseFk=1
body: json
auth: none
}
query {
itemFk: 1
warehouseFk: 1
}
headers {
Authorization: DEFAULT_TOKEN
}

View File

@ -0,0 +1,24 @@
meta {
name: collection_addItem OK
type: http
seq: 18
}
post {
url: http://localhost:3000/api/Collections/addItem
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"code": "1111111111",
"quantity": 1,
"ticketFk": 24,
"warehouseFk": 1
}
}

View File

@ -0,0 +1,21 @@
meta {
name: getPallet OK
type: http
seq: 3
}
get {
url: http://localhost:5000/api/ExpeditionPallets/getPallet
body: json
auth: none
}
headers {
Authorization: BtZWdbgXzZlhDp2NQERAUJJTeLkgq5pusK7dM2tSA5DP76SMmRqT0A6IYrlWwOzp
}
body:json {
{
"expeditionFk": 1
}
}

View File

@ -0,0 +1,15 @@
meta {
name: getPrinter OK
type: http
seq: 4
}
get {
url: http://localhost:5000/api/Operators/getPrinter
body: none
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}

View File

@ -0,0 +1,23 @@
meta {
name: getSalesFromTicketOrCollection -collection_getTickets-
type: http
seq: 19
}
get {
url: http://localhost:3000/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: http://localhost:3000/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: http://localhost:3000/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: http://localhost:3000/api/ItemShelvings/makeMulti
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"shelvingFk": 1,
"items": [1,1,1,2],
"warehouseFk": 1
}
}

View File

@ -0,0 +1,21 @@
meta {
name: itemShelving_return OK
type: http
seq: 11
}
get {
url: http://localhost:3000/api/ItemShelvings/return
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"shelvingFk": "HEJ"
}
}

View File

@ -0,0 +1,21 @@
meta {
name: machineWorker_add REVISAR
type: http
seq: 7
}
post {
url: http://localhost:3000/api/MachineWorkers/add
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"plate": "RE-002"
}
}

View File

@ -0,0 +1,21 @@
meta {
name: machineWorkers_update COMPROBAR DE NUEVO
type: http
seq: 6
}
post {
url: http://localhost:3000/api/MachineWorkers/updateInTime
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"plate": "RE-002"
}
}

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: http://localhost:3000/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: http://localhost:3000/api/SaleTrackings/updateTracking
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"saleFk": 1,
"originalQuantity": 10,
"code": "PREPARED",
"isChecked": true,
"buyFk": 1,
"isScanned": false
}
}

View File

@ -0,0 +1,27 @@
meta {
name: saleTracking_mark COMPROBAR DE NUEVO
type: http
seq: 14
}
post {
url: http://localhost:3000/api/SaleTrackings/mark
body: json
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:json {
{
"saleFk": 1,
"originalQuantity": 10,
"code": "PREPARED",
"isChecked": true,
"buyFk": 1,
"quantity": 1,
"itemShelvingFk": 1
}
}

View File

@ -0,0 +1,20 @@
meta {
name: sectorCollection_getSale OK PROVAR EN DEV I TEST
type: http
seq: 16
}
get {
url: http://localhost:3000/api/ItemShelvings/getSale?sectorCollectionFk=1&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: http://localhost:3000/api/Shelvings/addLog
body: text
auth: none
}
headers {
Authorization: DEFAULT_TOKEN
}
body:text {
{
"code": "AA6"
}
}