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.

CN120492054AActive Publication Date: 2025-08-15BANK OF NINGBO
5 Cites 0 Cited by

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

Technical Problem

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.

Method used

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.

Benefits of technology

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.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses an interface response method and device, electronic equipment and a storage medium, and relates to the technical field of communication.The method comprises the steps that in response to starting of a target application program, a configuration class with a first target annotation is loaded to the target application program; the first target annotation comprises a parameter value indicating whether an automatic response function is enabled or not; starting an interceptor and a generator corresponding to the configuration class based on the parameter value; intercepting an access request for a target application program through an interceptor, wherein the access request comprises a first interface method; determining a demand corresponding to the first interface method based on the first interface method and a preset second target annotation; if the demand represents that interface response data corresponding to the first interface method needs to be automatically generated, generating the interface response data corresponding to the access request based on the second target annotation, the generator and a preset dictionary library; and sending out the interface response data. Therefore, when the back-end application program interface is not developed, the front-end development still can obtain the interface response data.
Need to check novelty before this filing date? Find Prior Art