Publish a REST service
In publishing the service you provide your service to users who can access it on the net.
You must define functions of the service you want to publish as PUBLIC
. The
fglrestful command only generates specifications for those functions in the
OpenAPI documentation. Functions that are private, are not available as operations of the service
and are therefore not generated.
How you register your service with the GWS REST Web service engine will depend on the number of
resources (modules) you are providing for the service:
- If your service has just one module, you call on the
com.WebServiceEngine.RegisterRestService()
method to register the service. See the example described in Publish REST service module. - If your service has different resources divided into modules, you call on the
com.WebServiceEngine.RegisterRestResources
method to register the resources and the service. See the example described in Publish REST service with multiple resources.