Introduced in v5, the API Domain Whitelist setting in General Settings needs to be configured to allow JSON API requests. If a request is from a non-whitelisted domain, the response will be a HTTP 400 Bad Request.

 

Usages

Interface

org.joget.plugin.base.PluginWebSupport

Method Detail

Interface Methods
webService
public void webService(javax.servlet.HttpServletRequest request, javax.servlet.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException

Work similar to a Servlet.

URL Pattern 

{Context Path}/web/json/plugin/{Plugin Class Name}/service

{Context Path}/web/json/app/{App Id}/{App Version}/plugin/{Plugin Class Name}/service

AppDefinition appDef = AppUtil.getCurrentAppDefinition();

Plugin Properties Options

Tutorials

Related Community Plugins