Running a Groovy Service
Select the service you want to run from the appearing dialog.
Aside from the services explicitly declared in your script, you many find other services by checking the "Show hidden services" checkbox. These services are from your class or script's superclass. Thus, if you have used inheritance, you will also see the services of the inherited class.
Click OK (or Invoke, in Martini Online). A new browser tab will open up displaying the details of the service you are about to invoke.
The newly launched tab displays an interface we know as the service invoker. This page contains the description of the service you are trying to invoke (retrieved from the provided Groovydoc), the parameters of the service and their descriptions, request and response type options, and the invoke URL for the service.
If your service has input parameters, you may populate them with data. When you're ready to finally run your service, simply click the Invoke button.
Use the run icon to run Groovy services
You can run Groovy services in Martini Desktop by opening the file and clicking the run icons beside the line numbers. You will find these icons across method signatures. Doing so will open the invoke window for the service.
Groovy services, simply put, are Groovy methods or scripts. ↩