Virtualize JSON Responder - GET. How to Get Details?

lukeliwanaglukeliwanag Posts: 29

Hi Everyone,

I need to create a responder to accomodate a GET Rest request sample below:

GET /path/{safsadfsadgsadfgsaf}/status HTTP/1.1
Accept: application/json
User-Agent: ApplicationName/1.0 (env=test; user=testername)
X-Request-ID: 123124asdfasdfasdf1124

How do i get the detail that's between {}? as this is changing every request.

Tagged:

Comments

  • OmarROmarR Posts: 206 admin
    edited July 2017

    Good morning Luke,

    There is a sweet new tool that was introduced in SoaVirt 9.10.2 called the "REST URL Data Bank". The tool can be chained as the output for an Incoming Transport Header to easily extract values from incoming Request URLs and store them in a databank for later use.

  • lukeliwanaglukeliwanag Posts: 29

    Hi Omar,

    thank you for your response. However we're currently at 9.10.1.. are there any options there?

  • OmarROmarR Posts: 206 admin

    Additionally, if you do not have the latest version of SoaVirt, you can also accomplish this by using a text databank. Simply provide the left and right-hand boundaries to isolate the desired values. This will work for dynamic values that are in a fixed path.

  • lukeliwanaglukeliwanag Posts: 29

    This is great! Thanks Omar

Sign In or Register to comment.