API Description

In addition to the default RESTful APIs, the OM SDK supports secondary development. Developers can view and use the default APIs by referring to RESTful APIs. RESTful APIs can be added to extend existing functions. The OM SDK provides the configuration file of the extended APIs, reads the content of the extended API configuration file, and registers the new Flask blueprint with the Flask app.

Figure 1 shows the process of registering a blueprint. After the blueprint function path in the extended API configuration file is imported to the Flask startup module, the existing blueprint and extended blueprint are registered in the blueprint registration module.

Figure 1 OM SDK blueprint registration process