Hi all,
After reading this post I have some doubts regarding the design / implementation of REST services. 
From my point of view, there are two ways to design/implement REST resources in Integration server 9.10.
First option, could be create a new REST Resource and select only the methods we want to implement. (As explained in the REST Developers Guide)
Advantages:
- Best choice if you want to implement only one or two methods.
- Recommended option in the REST Developers Guide.
Disadvantages:
- Duplicate code if you want to implement several methods and you have some pieces of code that you want to execute always, for example specific logging flow Services, or commong error handling flow services…
Second option could be create a new REST Resource with only a Default service/method. So, you can include inside a branch to call GET, PUT, POST, PATCH, or DELETE methods logic.
- You have to create the Default method if you want to implement PATCH
Advantages:
- Reuse of code. (logging, error handling)…
- Less flow Services in the Integation Server (memory save)
Disadvantages:
- Not very useful if you only have to implement one method.
Finally, after all this brick that probably bored you
, anybody could add some advantage/disadvantage regarding the first or the second opcion.
Maybe I´m wrong and the second option is always a bad option for reasons unknown to me.
Thanks all and best regards!
Diego
#API-Management#webMethods#soa