feat(forklifts): added the crud
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Get forklift
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/lst/api/forklifts
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name":"Delage DLL"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
meta {
|
||||
name: Update forklfit
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{url}}/lst/api/forklifts/:id
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: ec2f3759-1580-4c1b-8fbf-8a4b0b506758
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
|
||||
"glCode": 31
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
meta {
|
||||
name: add forklift
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/lst/api/forklifts
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"serialNumber":"FN682004",
|
||||
"model": "EFG220",
|
||||
"plant": "Iowa City ISBM",
|
||||
"glCode": 31,
|
||||
"profitCenter": 30,
|
||||
"manufacturer":"Jungheinrich",
|
||||
"manufacturerYear":"2022",
|
||||
"engine":"electric",
|
||||
"batteryType":"lead acid",
|
||||
"leaseId":"0147d082-aee0-4594-b0f4-c6f4ee777e92"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: forklifts
|
||||
seq: 3
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user