I want to know the best possible way to create Producer / Consumer (both) REST EndPoints on ESB webMethods Designer point of view.
In the applications I am using I do have both the versions of resources. (As per the attached document)
The challenges we are facing is:
With Old REST Resource way, wanted to know if it is deprecated? The advantage with this is we get facility to change the “/rest/” to something else.
If the REST Resources are created with v1, how it can be added into REST Descriptor? I am not clear how this can be done?
If we use the REST Resource v2, we face a challenge to read the JSON and convert that directly into Document. In our code, we have developed that for all v2 resources, it reads JSON into bytes and then we convert that to stream and then to String and finally to document.
how can we avoid these challenges if we use REST Resource v2?
Please some lights on these cases will really help our team to strategise the going forward development of WM IS
Resource Creation for future developments.