Interface response method and device, electronic equipment and storage medium
By loading the configuration class at the start of the application and automatically generating interface response data using interceptors and generators, the problem of back-end interface lag affecting front-end development is solved, and efficient interface response data generation is achieved, which is suitable for multi-level interface development.
Patent Information
- Application Number
- CN202510998108.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-21
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2045-07-21
AI Technical Summary
In the front-end separation architecture, the development and deployment of back-end application program interfaces lag behind front-end development, resulting in the front-end being unable to obtain the required API interface response data in a timely manner, affecting the efficiency of front-end development.
By loading the configuration class with the first target annotation when the target application is started, the interface response data is automatically generated using the interceptor and generator, the preset dictionary library is used to enhance the diversity and authenticity of the data, and the delayed response is achieved through the hyper-age proxy service.
It is implemented that when the back-end application program interface is not developed or deployed, front-end development can still obtain interface response data, improve development efficiency, and enhance the diversity and authenticity of data, and is suitable for the application program interface and ordinary service interface layers.