How to get the modules published REST service location?

0
Hi, Is it somehow possible to get the location string of a module’s REST service at runtime into a variable? I mean this string: Thx,
asked
1 answers
1

All the published res services are described on the page: http://<appurl>/rest-doc/

So if you don’t want to implement a custom JAVA action and don’t mind to do some string manipulation you can get a list of all your rest services by calling this URL in a MF “Call REST service” with a HTTP GET method. After this you have to parse the returned string to get all your published rest services and store the names and relative paths to them.

You can get the URL to your app with the Community Commons java action: “GetApplicationUrl”.

 

answered