AnsweredAssumed Answered

REST GET call virutalization throwing error in Devtest 10.1

Question asked by sourav.ganguly on Jun 15, 2018
Latest reply on Jun 19, 2018 by sourav.ganguly

I am trying to create a virtual  service for a REST GET operation.

I have used RR pair to create the same in Devtest 10.1.0 workstation. When I am trying to do a hit on the VS from SOAP UI the following error is encountered. Please suggest what needs to be done to fix the issue. Also could you please suggest the content type to be used for getting correct response as there are URL contents in it.

 

<html>
   <head>
      <meta content="HTML Tidy for Java (vers. 26 Sep 2004), see www.w3.org" name="generator"/>
      <title>404 Not Found</title>
   </head>
   <body>
      <h1>Not Found</h1>
      The requested URL /rest/ofscCore/v1/events?subscriptionId=xxxxyyyyzzzz&amp;page=123456-1235%2C0 was not found on this server.
      <hr/>
   </body>
</html>

 

Request file:

GET /rest/ofscCore/v1/events?subscriptionId=xxxxyyyyzzzz&page=123456-1235,0

 

Response file:

{
    "found": true,
    "nextPage": "123456-1245,0",
    "items": [],
    "links": [
        {
            "rel": "describedby",
            "href": "https://sample.com/rest/ofscCore/v1/metadata-catalog/events"
        },
        {
            "rel": "canonical",
            "href": "https://sample.com/rest/ofscCore/v1/events/?subscriptionId=xxxxyyyyzzzz&page=123456-1235,0"
        },
        {
            "rel": "next",
            "href": "https://sample.com/rest/ofscCore/v1/events/?subscriptionId=xxxxyyyyzzzz&page=123456-1245,0"
        }
    ]
}

Outcomes