Hi, I am building plugin that will allow our consultants to develop scripts with business logic that is then executed in our cloud application.
These are just simple groovy scripts and consultants can use predefined variable "api" that has type e.g. MyAPI that provide white-listed public API that consultants are "allowed" to use.
To make consultants life easier, I would like to provide code-complete assistant that will show them all public methods available in MyAPI class.
Question is how to do that - I don't want to add "MyAPI api = new MyAPI();" to each script just to make auto-complete available.
See example below:
def rawMatrix = api.datamartLookup("CustTX","CustomerName","CustomerID","NetMargin%+")
def resultMatrix = api.newMatrix("Margin Status","Customer Id","Name","Net Margin %")
if(rawMatrix == null) return 0