Official Content

To expose a Business Component (henceforth the BC) as a Rest web service, you only need to configure in the Transaction object that is BC the following properties:

After generating the BC, it's exposed as a Rest service and it can be consumed using the HTTP protocol (in particular, the HttpClient data type) in GeneXus.

Note that the specification document of this service can be generated automatically. See Documenting RESTFul services.

The endpoint URI for Business components is

 <server uri>/rest/<bc name>

E.g: If "Product" is a BC exposed as Rest, the URI of the service would be:

If the BC belongs to a module, the endpoint URI is

<server uri>/rest/<module>/<bc name>

To consume a Business Component exposed as Rest, see Consuming a Business Component exposed as Rest with GeneXus.



Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant