Obtaining REST URIs

anorige
User offline. Last seen 2 years 27 weeks ago. Offline
Joined: 04/13/2009
Points: 30

Is there a way to view the URIs created by the <directinvoke> command and published REST services?

For example, am I able to obtain the following uri?
 http://example.com/rest-service/function?var1=xx&var2=yy

Which should be created by this example <directinvoke> command:
 <directinvoke method="GET" outputvariable="result"
     endpoint="http://example.com/rest-service/function"
     var1="$var1"
     var2="$var2"
     responseheader="$responseHeader"
     responsecode="$responseCode"
     cookies="$cookies" />

0
Your rating: None
girish
girish's picture
User offline. Last seen 4 weeks 45 min ago. Offline
Joined: 09/22/2008
Points: 70

You can get REST URL's for any service or mashup in Presto from ServiceExplorer(SE) app. In SE, click on a service and on the right side, service details page, you will see the link "Invoke using REST" option.

 

- Girish@JackBe

anorige
User offline. Last seen 2 years 27 weeks ago. Offline
Joined: 04/13/2009
Points: 30

That seems to provide a URL that references the presto REST API, rather than the actual REST service out on the web.

aishmishra
aishmishra's picture
User offline. Last seen 10 weeks 6 days ago. Offline
Joined: 09/24/2008
Points: 3

Hi,

You are right - this particular request is sent through the Presto Server. If you want the original URL then you can use the value in the Resource URL field. In this case what you will need to do is to append the Resource URL with the input paramters (in the normal REST format). The input paramters are available on the same page as the Resource URL.