Rewrite using returnValues as implicit arguments
This commit is contained in:
parent
30936ad638
commit
af295f945a
@ -17,8 +17,43 @@
|
||||
{
|
||||
"key": "item-1-id",
|
||||
"value": "response.payload.data[0].id",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-description",
|
||||
"value": "response.payload.data[0].description",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "item-1-picture-file-name",
|
||||
"value": "response.payload.data[0].pictureFileName",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "item-1-picture-uri",
|
||||
"value": "response.payload.data[0].pictureUri",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"key": "item-1-catalog-type-id",
|
||||
"value": "response.payload.data[0].catalogTypeId",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-catalog-type",
|
||||
"value": "response.payload.data[0].catalogType",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"key": "item-1-catalog-brand-id",
|
||||
"value": "response.payload.data[0].catalogBrandId",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-catalog-brand",
|
||||
"value": "response.payload.data[0].catalogBrand",
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"key": "item-1-name",
|
||||
"value": "response.payload.data[0].name",
|
||||
@ -31,9 +66,24 @@
|
||||
},
|
||||
{
|
||||
"key": "item-1-avialable-stock",
|
||||
"value": "response.payload.data[0].availablestock",
|
||||
"value": "response.payload.data[0].availableStock",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-restock-threshold",
|
||||
"value": "response.payload.data[0].restockThreshold",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-max-stock-threshold",
|
||||
"value": "response.payload.data[0].maxStockThreshold",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-1-on-reorder",
|
||||
"value": "response.payload.data[0].onReorder",
|
||||
"type": "bool"
|
||||
},
|
||||
{
|
||||
"key": "item-2",
|
||||
"value": "response.payload.data[1]",
|
||||
@ -42,7 +92,7 @@
|
||||
{
|
||||
"key": "item-2-id",
|
||||
"value": "response.payload.data[1].id",
|
||||
"type": "string"
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-2-name",
|
||||
@ -67,7 +117,7 @@
|
||||
{
|
||||
"key": "item-3-id",
|
||||
"value": "response.payload.data[2].id",
|
||||
"type": "string"
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"key": "item-3-name",
|
||||
|
@ -5,55 +5,7 @@
|
||||
{
|
||||
"name": "user-id",
|
||||
"type": "guid"
|
||||
},
|
||||
{
|
||||
"name": "item-1-id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-1-name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-1-price",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"name": "item-1-available-stock",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"name": "item-2-id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-2-name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-2-price",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"name": "item-2-available-stock",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"name": "item-3-id",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-3-name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "item-3-price",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
{
|
||||
"name": "item-3-available-stock",
|
||||
"type": "unsignedInt"
|
||||
},
|
||||
}
|
||||
],
|
||||
"operations": [
|
||||
{
|
||||
|
@ -20,20 +20,20 @@
|
||||
"key": "item-1",
|
||||
"value":
|
||||
{
|
||||
"id": "@@op-1.response.data[0].id@@"
|
||||
"name": "@@op-1.response.data[0].name@@"
|
||||
"description": "@@op-1.response.data[0].description@@"
|
||||
"price": "{{new-price}}"
|
||||
"pictureFileName": "@@op-1.response.data[0].pictureFileName@@"
|
||||
"pictureUri": "@@op-1.response.data[0].pictureUri@@"
|
||||
"catalogTypeId": "@@op-1.response.data[0].catalogTypeId@@"
|
||||
"catalogType": "@@op-1.response.data[0].catalogType@@"
|
||||
"catalogBrandId": "@@op-1.response.data[0].catalogBrandId@@"
|
||||
"catalogBrand": "@@op-1.response.data[0].catalogBrand@@"
|
||||
"availableStock": "@@op-1.response.data[0].availableStock@@"
|
||||
"restockThreshold": "@@op-1.response.data[0].restockThreshold@@"
|
||||
"maxStockThreshold": "@@op-1.response.data[0].maxStockThreshold@@"
|
||||
"onReorder": "@@op-1.response.data[0].onReorder@@"
|
||||
"id": "{{item-1-id}}",
|
||||
"name": "{{item-1-name}}",
|
||||
"description": "{{item-1-description}}",
|
||||
"price": "{{new-price}}",
|
||||
"pictureFileName": "{{item-1-picture-file-name}}",
|
||||
"pictureUri": "{{item-1-picture-uri}}",
|
||||
"catalogTypeId": "{{item-1-catalog-type-id}}",
|
||||
"catalogType": "{{item-1-catalog-type}}",
|
||||
"catalogBrandId": "{{item-1-catalog-brand-id}}",
|
||||
"catalogBrand": "{{item-1-catalog-brand}}}",
|
||||
"availableStock": "{{item-1-avialable-stock}}",
|
||||
"restockThreshold": "{{item-1-restock-threshold}}",
|
||||
"maxStockThreshold": "{{item-1-max-stock-threshold}}",
|
||||
"onReorder": "{{item-1-on-reorder}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user