Overview
Diverse open capabilities are supported for miniapps and can be used to call various APIs to implement features that are suitable for different scenarios. Open capabilities are also essential in scenarios in which you want to build and optimize an open miniapp ecosystem.
Open capabilities of miniapps include miniapp JavaScript APIs and server-side OpenAPIs. Developers can call these APIs to accomplish their tasks.
Architecture
JavaScript APIs
Each miniapp container provides miniapp JavaScript APIs, including APIs for basic configurations, application-level events, screens, multimedia, cache, files, geographic location, network, devices, data security, sharing, and custom generic menus. When a JavaScript API is called, the API interacts between Superapp and the merchant backend service or the Superapp backend service.
OpenAPIs
OpenAPI is a mechanism that is used to enable backend communication between Superapp and merchants or third-party partners. You can implement more OpenAPIs based on the OpenAPI access control standard. You can also combine JavaScript APIs and OpenAPIs to implement various open capabilities.
Examples:
Member capabilities
Signing and authorization scenarios
……