Hi Peter,
Yes, that is always the pain point. There is no directory listing function for REST service, etc.
But it depends on your IS version.
in 10.3 it is really improved and easy.
-
you create the REST resource. ( with or without document) // use V2
→ example for GET ‘dcrbdata’
→ example package name = GF_DCRB
→ example first foldername = GF_DCRB, second folder name DCRB_Data
P - GF_DCRB
F - GF_DCRB
F - DCRB_Data
-
you create the API descriptor and select the resource you created before. // use V2
→ example ‘rad_dcrb’
-
here you find the URL in the general tab. like /rad/GF_DCRB.DCRB_Data:rad_dcrb
and the host port name: like in your example. → example server:5555
!! Now check the host name in your IS console.
!! And check Is it http or https? is it the correct port 5555?
→ so you get http://server:5555/rad/GF_DCRB.DCRB_Data:rad_dcrb/dcrbdata
3a. What also works for me is the is http://server:5555/restV2/dcrbdata
-
Swagger UI: if you now want to use Swagger UI. You can download the free version and exchange the fix JSON definition with IS RAD definitions like:
window.onload = function() {
// Build a system
const ui = SwaggerUIBundle({
// url: “Swagger.json”, // for one JSON file
urls: [
{url: “http://server:5555/rad/GF_DCRB.DCRB_Data:rad_dcrb?swagger.json”, name: “DCRB”},
{url: “http://server:5555/rad/xyz?swagger.json”, name: “xyz”}
]
…
#webMethods#Integration-Server-and-ESB