feat(lstv2): energizer forecast added with new format

This commit is contained in:
2025-10-02 08:58:43 -05:00
parent 7e1a93512b
commit 7ed29e7432
9 changed files with 189 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
meta {
name: Login
type: http
seq: 1
}
post {
url: {{urlv2}}/api/auth/login
body: json
auth: inherit
}
headers {
Content-Type: application/json
}
body:json {
{
"username": "matthes01",
"password": "{{v2Password}}"
}
}
script:post-response {
bru.setEnvVar("jwtV2",res.body.token)
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,8 @@
meta {
name: Auth
seq: 2
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,20 @@
meta {
name: Forecast
type: http
seq: 1
}
post {
url: {{urlv2}}/api/logistics/postforecastin
body: multipartForm
auth: inherit
}
body:multipart-form {
postForecast: @file(C:\Users\matthes01\Downloads\Rolling Forecast .xlsx)
fileType: energizer
}
settings {
encodeUrl: true
}

View File

@@ -0,0 +1,8 @@
meta {
name: DM
seq: 1
}
auth {
mode: inherit
}

View File

@@ -0,0 +1,12 @@
meta {
name: LstV2
seq: 3
}
auth {
mode: bearer
}
auth:bearer {
token: {{jwtV2}}
}

View File

@@ -1,4 +1,9 @@
vars {
url: https://usmcd1vms036.alpla.net
url: http://localhost:4200
session_cookie:
urlv2: http://localhost:3000
jwtV2:
}
vars:secret [
v2Password
]