Web Services
Live follows JAX-RS specification to support RESTFul Web Services.
A plugin, an extension or even a Groovy Snippet just need use Live.Web
interface to register a fresh new RESTFul resource as a service as described the below.
For example, the SomeResource
can handle Live object as parameter to access the Settings API, seen in previous section, and provides a REST resource interface to some specific node.
The REST endpoint will be prefixed with the name chosen for your plugin, in this example a HTTP GET is allowed at/services/plugin-tutorial/tutorial/ships
.
Live shows some details at plugin listings that enables the verification of which JAX-RS services were registered at plugin startup as shown below.
Last updated