feat(leases): added in leases and move table to reuseable component
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
meta {
|
||||
name: companies
|
||||
seq: 1
|
||||
seq: 2
|
||||
}
|
||||
|
||||
auth {
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
meta {
|
||||
name: Get lease
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{url}}/lst/api/forklifts/leases
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"name":"Delage DLL"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
meta {
|
||||
name: Update lease
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
patch {
|
||||
url: {{url}}/lst/api/forklifts/leases/:id
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
id: de10c8ee-5756-4efb-9664-3c55338b2b60
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
|
||||
"endDate": "3/25/2029"
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
meta {
|
||||
name: add lease
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{url}}/lst/api/forklifts/leases
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"leaseNumber":"Delage DLL",
|
||||
"startDate": "",
|
||||
"endDate": "",
|
||||
"companyId": ""
|
||||
}
|
||||
}
|
||||
|
||||
settings {
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
meta {
|
||||
name: lease
|
||||
seq: 1
|
||||
}
|
||||
|
||||
auth {
|
||||
mode: inherit
|
||||
}
|
||||
Reference in New Issue
Block a user