Creating multiple endpoints for a generated restapi
How to create multiple endpoints for a generated REST API on the same procedure.
The procedure invokes a dialog that supports multiple functions and we need to reflect that in the restapi endpoints.
something like customer/byid customer/byname
or should one create multiple sql procedures on the IDMS side ?
There are a number of ways to handle this:
If you create multiple SQL procedures you could automatically generate an endpoint for each one.
An alternative would be to generate an endpoint for one procedure and copy the Java code to create multiple endpoints, changing the required parameters for each one.
Another alternative would be to create a single SQL procedure, and generate a single endpoint, and put code in the procedure to take action based on which parameters are supplied and which are null.