The Procedure object can be exposed as a Rest web service through the following configuration:
REST Procedures must be called through HTTP POST method and always use JSON data representation.
The endpoint URI for Procedures is:
If the Procedure belongs to a Module, the endpoint URI is
For example, if the module is "module2" under "module1", the URL would be:
When calling the Rest procedure service, the parameters have to be sent to the service in the body of the HTTP request and have to be in JSON format.
Java: The URI always without package name (only with the name of the Procedure).
- The parameters have to be in CamelCase in the JSON body (according to the parameters of the parm rule of the Procedure).
- With respect to consuming a Rest service (it can be generated by GeneXus or not), GeneXus provides the OpenAPI import tool.
HowTo: Consume a Procedure exposed as a Rest service