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.

มีการแนะนำใน v5 การตั้งค่ารายการที่อนุญาตพิเศษของโดเมน API ในการตั้งค่าทั่วไปจำเป็นต้องได้รับการกำหนดค่าให้อนุญาตการร้องขอ JSON API หากคำขอมาจากโดเมนที่ไม่ใช่รายการที่อนุญาตพิเศษการตอบกลับจะเป็น 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.

ทำงานคล้ายกับ Servlet

URL Pattern 

รูปแบบ 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();

Plugin Properties Options

ตัวเลือกคุณสมบัติปลั๊กอิน

Tutorials

สอน


Related Community Plugins

ปลั๊กอินที่เกี่ยวข้อง