Forum Discussion

davidkethel's avatar
14 years ago

Empty Rest Service Template Variable

Hi
I have the following rest service http://mobile.atomweb.net.au/api/1_0/lo ... 2B8309DE62 . This url will return you a Json representation of the Log record with the ID "89AA1FCD-44F9-4484-B2D5-072B8309DE62"

I have set up the rest endpoint with "http://mobile.atomweb.net.au/api/1_0/" and I have added in a "logs" resource with a template resource as "logs/{Id}" and then a method and a request. This all work fine.

I have also added in a test case using this request with a data source to an excell sheet with 2 values in it plus a Data source looper to cycle through the data. It work ok I get the 2 request going with the 2 different ID.
Fri May 25 15:22:27 EST 2012:DEBUG:Sending request: GET /api/1_0/logs/16354D95-66A7-4409-A762-4977F421A855 HTTP/1.1
and
Fri May 25 15:22:28 EST 2012:DEBUG:Sending request: GET /api/1_0/logs/89AA1FCD-44F9-4484-B2D5-072B8309DE62 HTTP/1.1

However I also get a request with out the Id occuring before the 2 request above.
Fri May 25 15:21:52 EST 2012:DEBUG:Sending request: GET /api/1_0/logs/ HTTP/1.1

Is there some way to stop this extra call. I don't want get the Logs resource with out an Id (for the moment).

Thanks
Dave
No RepliesBe the first to reply