AnsweredAssumed Answered

Virtualize GET using request/response

Question asked by wmlisa on Dec 10, 2014
Latest reply on Dec 11, 2014 by Annalakshmi Ramadoss

I am looking to virtualize a REST GET service using request/response pair option in Lisa 7.0. I have virtulized REST POST services using request/response pair by creating a file-req.txt and file-rsp.txt. With this i generated image and model. But how do i create a file-req.txt for a GET request? is there any a better option for my problem?

 

Here is url:

Request

url: http://server:8080/fulfillment-order-services/resources/item/pick/validate?userId=user&nodeId=5578&countryCode=US&upc=123&pickUpcNbr=60958523083&pickUpcType=substitute&serialNbr=1234&serialNbrFmt=23234&fulfillOrderId=2402

 

Response:

{

    "document": {

        "type": "instance",

"namespace": "fulfillment.order.services",

        "id": "item.pick.validate",

"version": "1.0"

    },

    "node": {

"nodeId": 5578,

"countryCode": "US"

    },

    "validationResponse": [

        {

"value": "1234",

"type": "serial Number",

"result": "FAILURE"

        },

        {

"value": "60958523083",

"type": "override upc",

"result": "FAILURE"

        }

    ]

}

Outcomes