在v5中引入,需要配置“ 常规设置”中的“API域白名单”设置以允许JSON API请求。如果请求来自非白名单域,则响应将是HTTP 400错误请求。

 

用法

接口

org.joget.plugin.base.PluginWebSupport

方法细节

接口方法
网络服务
public void webService(javax.servlet.HttpServletRequest request,javax.servlet.HttpServletResponse response)throws javax.servlet.ServletException,java.io.IOException

类似于Servlet的工作。

URL模式 

{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();

插件属性选项

Tutorials

相关的社区插件