WO2023040671A1 - Method for combining data interfaces, and electronic device and readable storage medium - Google Patents

Method for combining data interfaces, and electronic device and readable storage medium Download PDF

Info

Publication number
WO2023040671A1
WO2023040671A1 PCT/CN2022/116537 CN2022116537W WO2023040671A1 WO 2023040671 A1 WO2023040671 A1 WO 2023040671A1 CN 2022116537 W CN2022116537 W CN 2022116537W WO 2023040671 A1 WO2023040671 A1 WO 2023040671A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
information
combined
development
output parameter
Prior art date
Application number
PCT/CN2022/116537
Other languages
French (fr)
Chinese (zh)
Inventor
邵勇卫
潘志斌
莫元武
Original Assignee
易保网络技术(上海)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 易保网络技术(上海)有限公司 filed Critical 易保网络技术(上海)有限公司
Publication of WO2023040671A1 publication Critical patent/WO2023040671A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Definitions

  • the present application relates to the field of computer software, in particular to a method for combining data interfaces, electronic equipment and a readable storage medium.
  • the open interface has been widely used in the development of Internet applications.
  • the open interface is the Open Application Programming Interface (Open API, Open Application Programming Interface).
  • Open API Open Application Programming Interface
  • the emergence of the open interface has brought a new way of thinking and The development model makes the concept of information interoperability run through the entire Internet industry, allowing more developers to participate in the forefront of Internet application development.
  • Open interfaces are usually provided by Internet application providers.
  • Internet application providers package the business or technical capabilities that Internet applications can provide into a series of computer-recognizable data interfaces, such as map service interfaces, search service interfaces, etc., and make these data interfaces It is provided for third-party developers to use, and third-party developers can access the open interface to obtain corresponding data according to their own project needs.
  • the embodiment of the present application provides a method for combining data interfaces, an electronic device and a readable storage medium, which are used to solve the problems in the prior art that the development cycle of the open interface is long and cannot respond to customer needs in time.
  • the embodiment of the present application provides a method for combining data interfaces, which is used for an electronic device including a server end and a business end, and the method includes:
  • the business side receives and displays the interface combination interface from the server side, and the interface combination interface includes multiple development configuration items;
  • the business end receives the setting operation from the user on the interface combination interface, and the setting operation is used to set the multiple reference interfaces to be used and the metadata of the combination open interface, and generate combination interface development information based on the setting operation operation;
  • the server side receives the combined interface development information
  • the server side determines the output parameter information of the combined open interface according to the combined interface development information.
  • the above method further includes: the combination interface development information includes at least one of the following: reference interface information, assembly information and optimization information.
  • the server determines the output parameter information of the combined open interface according to the combined interface development information, including:
  • the server side obtains the output parameter information of the corresponding reference interface according to the reference interface information in the combined interface development information;
  • the server side combines the output parameter information of multiple reference interfaces into the output parameter information of the combined open interface according to the assembly information in the combined interface development information;
  • the server side adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information.
  • the optimization information includes at least one of the following: clipping information and field addition information.
  • the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
  • the server side clips the output parameter information of the combined open interface according to the clipping information in the optimization information.
  • the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
  • the server side adds corresponding fields to the output parameter information of the combined open interface according to the added field information in the optimization information.
  • the method further includes:
  • the server verifies the input parameter information of the combined open interface according to the verification information of the input parameters in the assembly information.
  • the method further includes:
  • the server side determines a predefined verification error identifier and verification error information.
  • an embodiment of the present application provides an electronic device, and the electronic device includes:
  • memory for storing instructions to be executed by one or more processors of the electronic device
  • the processor is one of the processors of the electronic device, configured to execute the method for combining data interfaces in any one of the above first aspect and various possible implementations of the first aspect.
  • the embodiment of the present application provides a readable storage medium, and instructions are stored on the readable storage medium, and when the instructions are executed on the electronic equipment, the electronic equipment executes the above-mentioned first aspect and various possibilities of the first aspect. Any one of the methods of combining data interfaces in the implementation.
  • an embodiment of the present application provides a computer program product, including computer programs/instructions, which is characterized in that, when the computer program/instructions are executed by a processor, the above-mentioned first aspect and various possible implementations of the first aspect can be realized Any of the methods for combining data interfaces.
  • the embodiment of the present application provides a method for combining data interfaces of electronic devices including the server side and the business side.
  • the method provides a configurable interface combination interface on the business side so that business personnel or external users can easily and conveniently Set the development configuration items and generate combined interface development information, and then the server determines the output parameter information of the combined open interface according to the received combined interface development information, so that business personnel or external users who are non-professional developers can realize combined openness
  • the development of the interface does not require the participation of professional developers, can shorten the development cycle of the combined open interface, improve the development efficiency of the combined open interface, and respond to customer needs for the combined open interface in a timely manner, thereby improving customer satisfaction.
  • Fig. 1 shows a schematic diagram of a scenario of development and release of a combined open interface according to some embodiments of the present application.
  • Fig. 2 shows a hardware structure diagram of an electronic device according to some embodiments of the present application.
  • Fig. 3 shows a flowchart of a method for combining data interfaces according to some embodiments of the present application.
  • Fig. 4 shows a schematic diagram of an example of a reference interface according to some embodiments of the present application.
  • Fig. 5 shows a schematic diagram of an example template of assembly information according to some embodiments of the present application.
  • Fig. 6 shows a schematic diagram of an example template of clipping information according to some embodiments of the present application.
  • Illustrative embodiments of the present application include, but are not limited to, methods, electronic devices, and readable storage media combining data interfaces.
  • module may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) that executes one or more software or firmware programs, and and/or memory, combinational logic, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
  • ASIC Application Specific Integrated Circuit
  • processor shared, dedicated, or group
  • memory combinational logic, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
  • the processor may be a microprocessor, a digital signal processor, a microcontroller, etc., and/or any combination thereof.
  • the processor may be a single-core processor, a multi-core processor, etc., and/or any combination thereof.
  • FIG. 1 provides a scenario where open interfaces are combined and developed and released for user access.
  • business personnel 100 develop a combined interface through the data interface combination interface 200, and publish the developed combined open interface to the open interface platform 300, and the interface access personnel 400 find the combination that meets their needs through the open interface platform 300 Open the interface and access it to obtain the data returned by the combined open interface.
  • Business personnel 100 are usually people who are familiar with software project business, rather than professional software developers. They do not have the ability to realize the combination of multiple open interfaces into a combined open interface through software language coding, but only after simple training. Finally, the ability to combine multiple open interfaces is achieved by setting multiple development configuration items. The business personnel 100 can set multiple development configuration items in the data interface combination interface 200 to obtain the final combined open interface, which is an assembly of existing open interfaces.
  • the data interface combination interface 200 provides a combination development environment of open interfaces for the business personnel 100, and can provide a simple, convenient, and configurable development interface for the business personnel 100 to develop combined open interfaces, and can simplify the development work of the business personnel 100 for open interfaces.
  • various information required by the business personnel 100 for developing the open interface are provided in a configurable manner, and the information may include but not limited to the reference interface to be used and the metadata of the combined open interface.
  • the information may include combined interface information.
  • the combined interface information may include information about the combined interface to be developed, such as interface name, interface description, etc.; it may also include information about multiple existing open interfaces that the combined interface needs to use.
  • the existing open interfaces of are reference interfaces.
  • a composite interface can refer to N existing open interfaces, from reference interface 1 to reference interface N.
  • the reference interface can provide corresponding data for the combination interface, for example, the output parameter data of the reference data can be used as the input parameter data or output parameter data of the combination interface, etc.
  • Business personnel can develop combined open interfaces by setting configuration items corresponding to the above information.
  • the business personnel 100 can also set the assembly information of the combined open interface in the data interface combination interface 200.
  • the assembly information can be used to describe related data during the interface assembly process, such as specifying the data type of the output parameter of the reference interface, the output parameter data Whether it is allowed to be empty, the error code of interface access, the error message of interface access, etc.
  • the business personnel 100 can also set the corresponding tailoring information for the combined open interface in the data interface combination interface 200, and obtain the data obtained from the reference interface but the combined interface does not need to be output by setting the cutting information from the output parameters of the combined open interface. Remove to avoid outputting unnecessary data.
  • the data interface combination interface 200 also provides the function of adding fields for the business personnel 100.
  • the field here refers to an output parameter in the combined open interface.
  • the output parameter in the combined open interface can be directly from the output parameter of the reference interface, or can be It is a parameter obtained after processing the input parameter and/or output parameter of the reference interface, and may also be a new parameter directly set by the business personnel 100 .
  • the business personnel 100 can add multiple fields as required, for example, add M fields, from adding field 1 to adding field M.
  • Fields added by business personnel can be represented by Key Value (KV). For example, an added field is "promotion": “Big Max Promotion Info", where the key is "promotion” and the value is "Big Max Promotion Info” .
  • KV Key Value
  • the open interface platform 300 is used to publish open interfaces, where the open interfaces may include existing open interfaces or combined open interfaces developed by the business personnel 100. After the open interface platform 300 publishes the open interfaces, the interface access personnel 400 can The open interface is accessed through the published information of the open interface.
  • the published information of the open interface is used to provide relevant information for accessing the open interface, such as the access address of the open interface, the input parameter information of the open interface, and the output parameter information of the open interface.
  • the interface access personnel 400 are usually professional software developers, who can access the open interfaces provided by the open interface platform 300 in their own applications through software language coding, provide corresponding data for the input parameters of the open interfaces and obtain the output parameter data of the open interfaces , and then use the output parameter data in your own application.
  • the method provided by the technical solution of this application by providing the data interface combination interface 200 for the business personnel 100, enables the business personnel 100 to realize the development of the combined open interface through simple configuration development, which is very difficult for the business personnel 100 without using
  • the development method of the software language coding thereby simplifying the development of the combined open interface, can improve the efficiency of the combined open interface development, so that the business personnel 100 can respond to the needs of the third-party developers in a timely manner, and facilitate the cooperation with the third-party developers, thereby improving customer satisfaction.
  • Fig. 2 shows a block diagram of a hardware structure of an electronic device 20 for implementing a method for combining data interfaces according to some embodiments of the present application.
  • the electronic device 20 may include one or more processors 201, a system control logic 202 connected to at least one of the processors 201, a system memory 203 connected to the system control logic 202, and A non-volatile memory (Non-Volatile Memory, NVM) 204 connected to the system control logic 202 and a network interface 206 connected to the system control logic 202 .
  • NVM Non-Volatile Memory
  • processor 201 may include one or more single-core or multi-core processors.
  • the processor 201 may include any combination of general-purpose processors and special-purpose processors (eg, graphics processors, application processors, baseband processors, etc.).
  • the processor 201 may be configured to execute various consistent embodiments.
  • the processor 201 can be used to implement the method of combining data interfaces.
  • system control logic 202 may include any suitable interface controller to provide any suitable interface to any suitable device or component in the processor 201 that is in communication with the system control logic 202 .
  • system control logic 202 may include one or more memory controllers to provide an interface to system memory 203 .
  • System memory 203 can be used to load and store data and/or instructions.
  • the system memory 203 can be loaded with the instruction for obtaining the reference interface in the embodiment of the present application, and can also save the added field data provided by the business personnel.
  • system memory 203 of the electronic device 20 may include any suitable volatile memory, such as a suitable dynamic random access memory (Dynamic Random Access Memory, DRAM).
  • DRAM Dynamic Random Access Memory
  • NVM memory 204 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions.
  • the NVM memory 204 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as a hard disk drive (Hard Disk Drive, HDD), an optical disc (Compact Disc, CD) drive, at least one of Digital Versatile Disc (DVD) drive.
  • the NVM memory 204 may be used to store information related to the combined open interface developed by business personnel.
  • NVM memory 204 may comprise a portion of storage resources on the device on which electronic device 20 is installed, or it may be accessed by, but not necessarily part of, the device. For example, NVM memory 204 may be accessed over a network via network interface 206 .
  • system memory 203 and NVM storage 204 may include, respectively, temporary and permanent copies of instructions 205 .
  • the instructions 205 may include: instructions that cause the electronic device 20 to implement the method shown in FIG. 2 when executed by at least one of the processors 201 .
  • instructions 205 , hardware, firmware and/or software components thereof may additionally/alternatively reside in system control logic 202 , network interface 206 and/or processor 201 .
  • the network interface 206 may include a transceiver for providing a radio interface for the electronic device 20 to communicate with any other suitable devices (such as front-end modules, antennas, etc.) through one or more networks.
  • the network interface 206 may be integrated with other components of the electronic device 20 .
  • the network interface 206 can be integrated into at least one of the processor 201, the system memory 203, the NVM memory 204, and a firmware device (not shown) with instructions, when at least one of the processors 201 executes the instructions , the electronic device 20 implements the methods shown in the method embodiments.
  • the network interface 206 may be used to transmit the combined open interface developed by the business personnel to the open interface platform for publishing.
  • Network interface 206 may further include any suitable hardware and/or firmware to provide a multiple-input multiple-output radio interface.
  • network interface 206 may be a network adapter, a wireless network adapter, a telephone modem and/or a wireless modem.
  • At least one of the processors 201 may be packaged together with the logic of one or more controllers for the system control logic 202 to form a System In a Package (SiP). In some embodiments, at least one of the processors 201 may be integrated on the same die with logic for one or more controllers of the system control logic 202 to form a System on Chip (SoC).
  • SiP System In a Package
  • SoC System on Chip
  • the electronic device 20 may further include: an input/output (I/O) device 207 .
  • the I/O device 207 may include a user interface, enabling the user to interact with the electronic device 20 ; the design of the peripheral component interface enables the peripheral component to also interact with the electronic device 20 .
  • the structure shown in FIG. 2 does not constitute a specific limitation on the electronic device 20 .
  • the electronic device 20 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components may be realized by hardware or software, or a combination of software and hardware.
  • the scheme of combining data interfaces in some embodiments of the present application includes:
  • S301 The server side provides an interface combination interface to the business side;
  • the business end is used to receive the development operation of the combined open interface by business personnel or external users
  • the server end is used to receive the combined interface development information generated by the business end according to the development operation of the business personnel or external users, and generate the corresponding combined interface development information based on the combined interface development information Composite interface.
  • the hardware device corresponding to the server end and the service end may be the electronic device 20 .
  • Business personnel are often familiar with the business of the application, that is, the business functions that the application can provide. These business functions can be encapsulated into open interfaces and published to the open interface platform 300 for external users to access. If business personnel or external users find that these open interfaces cannot fully meet their needs when using open interfaces, for example, the required data cannot be obtained by accessing one open interface, but they need to access multiple open interfaces and process the returned data of these open interfaces. Only by combining can you get the data you want.
  • open interfaces For business personnel or external users, the use of open interfaces is more complicated and difficult to use, even if you can finally get what you want by putting forward new open interface requirements to professional software developers Open interface, because the development cycle of the open interface is subject to strict process management, it will lead to a long development cycle even for a simple open interface, which cannot meet the timeliness requirements of business personnel or external users for the open interface. Therefore, by authorizing the development of the simple open interface to business personnel or external users, the development cycle of the simple open interface can be shortened, and the time requirements of the business personnel or external users for the open interface can be met in time.
  • the server side stores a preset interface combination interface, which is provided to the business side when needed.
  • the interface combination interface is used to facilitate the combined development of multiple reference interfaces by business personnel or external users. If business personnel or external users want to obtain multiple data, the multiple data come from multiple existing open interfaces, but none of the existing open interfaces can provide these multiple data at the same time, so it is necessary to develop a new combined open interface to Provide this multiple data.
  • the interface combination interface provides a configurable and graphical interface development environment for business personnel, so that business personnel do not need to have the ability of software language coding Completing the development of combined open interfaces does not require the intervention of professional software developers.
  • the interface combination interface provides related configuration items for developing combined open interfaces, and business personnel or external users realize the development of combined open interfaces by setting values of related configuration items.
  • the configuration items provided by the interface combination interface may include but not limited to the following: combination open interface information, reference interface information, assembly information, tailoring information, adding field information, and the like.
  • the combined open interface information is used to describe the relevant information of the combined open interface to be developed, such as the name of the combined open interface, the description of the combined open interface, the URL of the combined open interface, the request method of the combined open interface, and the like.
  • the reference interface information is used to describe the relevant information of the open interface referenced by the combined open interface, and the open interfaces referenced here refer to those open interfaces that can provide corresponding data for the combined open interface.
  • the referenced interface information may include, for example, the name of the open interface, the URL of the open interface, the request method of the open interface, the number of referenced open interfaces, and the like.
  • Assembly information is used to describe the information that needs to be used in the process of assembling the combined open interface, such as the data type of the output parameter information of the referenced interface, the access error code of the referenced interface, error information, the constraints of the output data of the referenced interface, etc.
  • the clipping information is used to describe the filtering information for the output parameter data of the combined open interface.
  • the added field information is used to describe the field information added in the output parameter information of the combined open interface, etc.
  • S302 The business end generates combination interface development information according to the user operation corresponding to the interface combination interface and sends it to the server;
  • the interface combination interface will encapsulate the information obtained according to the configuration item setting operation of the business personnel or external users into the combination interface development information, and develop the combination interface
  • the information is sent to the server, and the server performs follow-up processing according to the received combined interface development information.
  • the combination interface development information may include information corresponding to all configuration items provided by the interface combination interface.
  • S303 The server acquires the output parameter information of the corresponding reference interface according to the reference interface information in the combined interface development information;
  • the server acquires the reference interface information from the received combination interface development information.
  • business personnel or external users develop the combined open interface, they usually specify the open interface that needs to be referenced, and the referenced open interface provides corresponding output data for the combined open interface.
  • an identifier of the referenced open interface is used, which can be used to uniquely correspond to an existing open interface, for example, the name of the open interface can be used as the identifier of the open interface.
  • referenced interface information may contain the information of one referenced open interface or more than one referenced open interface, and business personnel or external users may specify one or more existing open interfaces for the combined open interface. Interface as an open interface for references.
  • the server side may acquire the output parameter information of the corresponding reference interface according to the obtained identifier of the reference interface.
  • the information list of all existing open interfaces can be pre-stored on the server, so that the server can query the information list according to the identifier of the reference interface to obtain the output parameter information of the reference interface.
  • the business personnel set the name of a reference interface as productAllInfo in the interface combination interface
  • the name of the reference interface is encapsulated into the combination interface development information and sent to the server
  • the server obtains the reference interface from the received combination interface development information Name, and then query the information list of the existing open interface according to the name "productAllInfo" of the reference interface to obtain the reference interface information corresponding to the reference interface.
  • Figure 4 shows an example of reference interface information, as shown in Figure 4, the reference interface "productAllInfo" contains three kinds of information: access URL, request method and standard output model, where the access URL is http://pd.ebaoli /pd/products/allInfo/ ⁇ productCode ⁇ , the request method is the get method, and the output parameter in the standard output model is the product object.
  • the product object contains multiple fields, such as promotion field, productId field, orgId field, etc.
  • the information expressed in Json format is: "product”: ⁇ "promotion”: “Big Max Promotion Info”, “productId”: 0,” orgId”: 0, "productName”: “”, “productAbbr”: “”, ... ⁇ , where the key of the promotion field is "promotion”, the value is "Big Max Promotion Info”, the key of the productId field is "productId”, With a value of 0, the orgId field has a key of "orgId” and a value of 0.
  • S304 The server side combines the output parameter information of multiple reference interfaces into the output parameter information of the combined open interface according to the assembly information in the combined interface development information;
  • the content contained in the assembly information varies according to the settings of the development configuration items by business personnel or external users, but the information that assembly information must have includes the identification of the reference interface, and the identification of the reference interface included can have one or Multiple.
  • the name of the referenced interface is used as the identifier of the referenced interface.
  • the assembly information can be saved as an assembly information template, and business personnel or external users can obtain the pre-stored assembly information template in the interface combination interface, so that the basis of the configuration items that can be set in the assembly information template
  • the development of the combined open interface can be completed with a small amount of modification on the interface, which improves the efficiency of interface development.
  • the assembling information may also include clipping information.
  • the output parameter information of the combined open interface includes the output parameter information of all referenced interfaces, and there may be parameter information that the combined open interface does not want to output in the output parameter information of the combined open interface, so you can point out which output parameter information by tailoring the information
  • the output parameters in are what the composite open interface expects to output.
  • the clipping information can also be saved as a clipping information template, and business personnel or external users can directly use the pre-stored clipping information template.
  • the assembly information may also include verification information of the input parameter information, and the verification information of the input parameter information is used to verify the input parameter information of the combined open interface to determine whether the input parameter information meets the requirements.
  • the input parameter information of the combined open interface may come from the input parameter information of the reference interface, or from the user-defined parameter information of business personnel or external users.
  • the assembly information may include a verification condition for whether the input parameter is a null value, and an error code and error message returned when the verification condition is not satisfied.
  • Figure 5 shows an example of an assembly information template, as shown in Figure 5, the assembly information template uses data in the form of Json to describe the assembly information of the combined open interface, where the "mainIntegrateType” field indicates the assembly type of the combined open interface, A value of "1" indicates that the assembly is performed by integrating the reference interface.
  • the "mainObjectName” field indicates that the combined open interface is assembled based on the reference interface “productAllInfo”.
  • the "tailorTemplate” field indicates that the tailoring information template used for assembly is " tailorProductAllInfo”.
  • the reference interface in the assembly information template is "productAllInfo", in which the name of the combined open interface after assembly is defined as “productAllInfo” through the "standardApiName” field, and the input parameter named “productCode” is also specified through the "inputRequestParams” field Check whether it is a null value. If the input parameter is a null value, the error code and error message given are respectively defined in the "nullErrorCode” field and the "nullErrorMsg” field.
  • S305 The server side adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information
  • optimization information is used to describe how to adjust the output parameter information of the combined open interface, which may increase or decrease the output parameter in the output parameter information.
  • the optimization information may include but not limited to the following: clipping information, adding field information, and so on.
  • the optimization information may include one of the clipping information or the added field information, or may include both the clipping information and the added field information.
  • the embodiment of the present application does not specifically limit the type of information included in the optimization information.
  • the server side can remove the parameter information that does not need to be output in the output parameter information of the combined open interface according to the tailoring information;
  • the tailoring information is used to tailor the output parameter information of the combined open interface, so that business personnel or external users can control the output parameter information according to their own needs.
  • the combined open interface only outputs the necessary output parameter information, and does not need to output All output parameter information from multiple reference interfaces, so as to realize flexible selection of output parameter information of combined open interfaces.
  • different ways of processing the output parameter information of the combined open interface can be defined in the tailoring information, which can include but not limited to: directly specify the output parameter information that needs to be output, and directly specify the output that does not need to be output Parameter information, specify output parameter information to be output through filter conditions, specify output parameter information that does not need to be output through filter conditions, etc.
  • the output parameter information of the combined open interface may be processed in one way, or two or more ways may be used to process the output parameter information of the combined open interface.
  • the server side processes the output parameter information of the combined open interface according to different methods defined in the tailoring information, to obtain the output parameter information that needs to be output finally. For example, if the output parameter information that needs to be output is directly specified in the clipping information, the server can directly use the specified output parameter information that needs to be output as the final output parameter information of the combined open interface; output parameter information, the server side removes the output parameter information that does not need to be output from the output parameter information of the combined open interface, and uses the remaining output parameter information as the final output parameter information of the combined open interface; the clipping information is specified by the filter condition After obtaining the output parameter information that needs to be output, the server determines the output parameter information that meets the filter condition among all the output parameter information of the combined open interface according to the filter condition, and takes the output parameter information that meets the filter condition as the final output parameter information of the combined open interface ; The output parameter information that does not need to be output is specified by the filter condition in the clipping information, then the server side determines the output parameter information that meets the filter condition among all
  • the clipping information can be saved as a clipping information template, and business personnel or external users can use the pre-stored clipping information template in the interface combination interface, thereby improving the efficiency of interface development.
  • FIG 6 shows an example of the clipping information template
  • the clipping information template uses data in the form of Json to describe the clipping information of the combined open interface, and uses the method of directly specifying the output parameter information that needs to be output , that is, the tailoring information template directly specifies that the output parameter information of the combined open interface includes the "product” object, and the fields that need to be output in the "product” object include the "productName” field, the "promotion” field, the "internalId” field, and the "lifeBasics” field , the embedded fields that need to be output in the "lifeBasics” field include “chargePeriod”, “chargeYear”, “coveragePeriod” and “coverageYear”.
  • the server may add corresponding fields in the output parameter information of the combined open interface according to the added field information.
  • the interface combination interface will use the newly set output field as the added field information in the combined interface development information.
  • the value of the added field in the added field information is a string set by business personnel or external users, for example, the value of the field "promotion" in the added field information is the string "Big Max Promotion Info ".
  • the server side can also first obtain the implementation code of the corresponding reference interface according to the reference interface information, and then open according to the implementation code of the reference interface and the combination open The final output parameter information of the interface generates the implementation code corresponding to the combined open interface.
  • the server side can publish the combined open interface and the corresponding implementation code to the open interface platform 300, and realize the access control and management of the combined open interface through the open interface platform 300.
  • Embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods.
  • Embodiments of the present application may be implemented as a computer program or program code executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device, and at least one output device.
  • Program code can be applied to input instructions to perform the functions described herein and to generate output information.
  • the output information may be applied to one or more output devices in known manner.
  • a processing system includes any system having a processor such as a Digital Signal Processor (DSP), microcontroller, Application Specific Integrated Circuit (ASIC), or microprocessor .
  • DSP Digital Signal Processor
  • ASIC Application Specific Integrated Circuit
  • the program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system.
  • Program code can also be implemented in assembly or machine language, if desired.
  • the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
  • the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof.
  • the disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute.
  • instructions may be distributed over a network or via other computer-readable media.
  • a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic CD-ROM, Read Only Memory (ROM), Random Access Memory (Random Access Memory, RAM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Only Memory Read memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic card or optical card, flash memory, or use the Internet to transmit information by means of electricity, light, sound or other forms of propagation signals (for example, carrier waves, infrared signals, digital signals etc.) tangible machine-readable storage.
  • a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
  • each unit/module mentioned in each device embodiment of this application is a logical unit/module.
  • a logical unit/module can be a physical unit/module, or a physical unit/module.
  • a part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised.
  • the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to the field of computer software. Disclosed are a method for combining data interfaces, and an electronic device and a readable storage medium. The method for combining data interfaces in the present application is applied to an electronic device that comprises a server end and a service end. A configuration-type interface combination interface is provided at a service end, such that a service person or an external user can simply and conveniently set a development configuration item and generate combined-interface development information; and a server end then determines output parameter information of a combined open interface according to received combined-interface development information, such that the service person or the external user, as a non-professional developer, can realize the development of the combined open interface without the need for the participation of a professional developer, and the development period of the combined open interface can be shortened, thereby improving the development efficiency of the combined open interface and responding to a customer requirement for the combined open interface in a timely manner, and thus improving customer satisfaction.

Description

组合数据接口的方法、电子设备和可读存储介质Method, electronic device and readable storage medium for combined data interface
本申请要求于2021年9月16日提交中国专利局、申请号为202111087327.3、申请名称为“组合数据接口的方法、电子设备和可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202111087327.3 and the application title "Method for Combining Data Interface, Electronic Device and Readable Storage Medium" submitted to the China Patent Office on September 16, 2021, the entire content of which is passed References are incorporated in this application.
技术领域technical field
本申请涉及计算机软件领域,特别涉及一种组合数据接口的方法、电子设备和可读存储介质。The present application relates to the field of computer software, in particular to a method for combining data interfaces, electronic equipment and a readable storage medium.
背景技术Background technique
当前,开放接口在互联网应用开发中得到了广泛的应用,开放接口即开放应用编程接口(Open API,Open Application Programming Interface),开放接口的出现给互联网应用的开发者带来了全新的思维方式和开发模式,使得信息互通的理念贯穿到整个互联网行业,让更多的开发者能够参与到互联网应用开发的前沿。At present, the open interface has been widely used in the development of Internet applications. The open interface is the Open Application Programming Interface (Open API, Open Application Programming Interface). The emergence of the open interface has brought a new way of thinking and The development model makes the concept of information interoperability run through the entire Internet industry, allowing more developers to participate in the forefront of Internet application development.
开放接口通常由互联网应用供应商提供,互联网应用供应商将互联网应用能够提供的业务或技术能力封装为一系列计算机可识别的数据接口,例如地图服务接口、搜索服务接口等,并将这些数据接口提供给第三方开发人员使用,第三方开发人员根据自己项目需要访问开放接口获得相应的数据。Open interfaces are usually provided by Internet application providers. Internet application providers package the business or technical capabilities that Internet applications can provide into a series of computer-recognizable data interfaces, such as map service interfaces, search service interfaces, etc., and make these data interfaces It is provided for third-party developers to use, and third-party developers can access the open interface to obtain corresponding data according to their own project needs.
由于使用开放接口的第三方开发人员的需求是多种多样的,互联网应用供应商提供的开放接口往往不能完全满足相应需求,而互联网应用供应商开发新的开放接口通常需要通过软件编码方式进行,导致新的开放接口的开发周期较长,难以满足对开放接口的时效性要求。Since the needs of third-party developers who use open interfaces are diverse, the open interfaces provided by Internet application providers often cannot fully meet the corresponding needs, and Internet application providers usually need to develop new open interfaces through software coding. This leads to a long development cycle for new open interfaces, making it difficult to meet the timeliness requirements for open interfaces.
发明内容Contents of the invention
本申请实施例提供了一种组合数据接口的方法、电子设备和可读存储介质,用于解决现有技术下对开放接口的开发周期长、不能及时响应客户需求的问题。The embodiment of the present application provides a method for combining data interfaces, an electronic device and a readable storage medium, which are used to solve the problems in the prior art that the development cycle of the open interface is long and cannot respond to customer needs in time.
第一方面,本申请实施例提供了一种组合数据接口的方法,用于包括服务器端和业务端的电子设备,该方法包括:In the first aspect, the embodiment of the present application provides a method for combining data interfaces, which is used for an electronic device including a server end and a business end, and the method includes:
业务端从服务器端接收并显示接口组合界面,接口组合界面包括多个开发配置项;The business side receives and displays the interface combination interface from the server side, and the interface combination interface includes multiple development configuration items;
业务端接收来自用户在接口组合界面上的设置操作,设置操作用于对需使用的多个引用接口和组合开放接口的元数据进行设置,并基于设置操作操作生成组合接口开发信息;The business end receives the setting operation from the user on the interface combination interface, and the setting operation is used to set the multiple reference interfaces to be used and the metadata of the combination open interface, and generate combination interface development information based on the setting operation operation;
服务器端接收组合接口开发信息;The server side receives the combined interface development information;
服务器端根据组合接口开发信息确定组合开放接口的输出参数信息。The server side determines the output parameter information of the combined open interface according to the combined interface development information.
在上述第一方面的一种可能的实现中,上述方法还包括:组合接口开发信息至少包括如下一种:引用接口信息、组装信息和优化信息。In a possible implementation of the above first aspect, the above method further includes: the combination interface development information includes at least one of the following: reference interface information, assembly information and optimization information.
在上述第一方面的一种可能的实现中,服务器端根据组合接口开发信息确定组合开放接口的输出参数信息,包括:In a possible implementation of the first aspect above, the server determines the output parameter information of the combined open interface according to the combined interface development information, including:
服务器端根据组合接口开发信息中的引用接口信息,获取对应的引用接口的输出参数信息;The server side obtains the output parameter information of the corresponding reference interface according to the reference interface information in the combined interface development information;
服务器端根据组合接口开发信息中的组装信息,将多个引用接口的输出参数信息组合为组合开放接口的输出参数信息;The server side combines the output parameter information of multiple reference interfaces into the output parameter information of the combined open interface according to the assembly information in the combined interface development information;
服务器端根据组合接口开发信息中的优化信息,对组合开放接口的输出参数信息进行调整。The server side adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information.
在上述第一方面的一种可能的实现中,优化信息至少包括如下一种:裁剪信息和增加字段信息。In a possible implementation of the foregoing first aspect, the optimization information includes at least one of the following: clipping information and field addition information.
在上述第一方面的一种可能的实现中,服务器端根据组合接口开发信息中的优化信息,对组合开放接口的输出参数信息进行调整,包括:In a possible implementation of the first aspect above, the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
服务器端根据优化信息中的裁剪信息,对组合开放接口的输出参数信息进行裁剪。The server side clips the output parameter information of the combined open interface according to the clipping information in the optimization information.
在上述第一方面的一种可能的实现中,服务器端根据组合接口开发信息中的优化信息,对组合开放接口的输出参数信息进行调整,包括:In a possible implementation of the first aspect above, the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
服务器端根据优化信息中的增加字段信息,在组合开放接口的输出参数信息中增加相应字段。The server side adds corresponding fields to the output parameter information of the combined open interface according to the added field information in the optimization information.
在上述第一方面的一种可能的实现中,该方法还包括:In a possible implementation of the first aspect above, the method further includes:
服务器端根据组装信息中输入参数的校验信息,对组合开放接口的输入参数信息进行校验。The server verifies the input parameter information of the combined open interface according to the verification information of the input parameters in the assembly information.
在上述第一方面的一种可能的实现中,该方法还包括:In a possible implementation of the first aspect above, the method further includes:
在组合开放接口的输入参数信息的校验结果不满足预设条件的情况下,服务器端确定预定义的校验错误标识和校验错误信息。In the case that the verification result of the input parameter information of the combined open interface does not meet the preset condition, the server side determines a predefined verification error identifier and verification error information.
第二方面,本申请实施例提供了一种电子设备,该电子设备包括:In a second aspect, an embodiment of the present application provides an electronic device, and the electronic device includes:
存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions to be executed by one or more processors of the electronic device, and
处理器,是电子设备的处理器之一,用于执行上述第一方面以及第一方面的各种可能实现中的任意一种组合数据接口的方法。The processor is one of the processors of the electronic device, configured to execute the method for combining data interfaces in any one of the above first aspect and various possible implementations of the first aspect.
第三方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储有指令,该指令在电子设备上执行时使电子设备执行上述第一方面以及第一方面的各种可能实现中的任意一种组合数据接口的方法。In the third aspect, the embodiment of the present application provides a readable storage medium, and instructions are stored on the readable storage medium, and when the instructions are executed on the electronic equipment, the electronic equipment executes the above-mentioned first aspect and various possibilities of the first aspect. Any one of the methods of combining data interfaces in the implementation.
第四方面,本申请实施例提供了一种计算机程序产品,包括计算机程序/指令,其特征在于,该计算机程序/指令被处理器执行时实现上述第一方面以及第一方面的各种可能实现中的任意一种组合数据接口的方法。In a fourth aspect, an embodiment of the present application provides a computer program product, including computer programs/instructions, which is characterized in that, when the computer program/instructions are executed by a processor, the above-mentioned first aspect and various possible implementations of the first aspect can be realized Any of the methods for combining data interfaces.
本申请实施例中提供了用于包括服务器端和业务端的电子设备的组合数据接口的方法,该方法通过在业务端提供配置式的接口组合界面使得业务人员或外部用户能够以简单、方便的方式对开发配置项进行设置并生成组合接口开发信息,再由服务器端根据接收的组合接口开发信息确定组合开放接口的输出参数信息,从而使得作为非专业开发人员的业务人员或外部用户能够实现组合开放接口的开发,无需专业开发人员的参与,能够缩短组合开放接口的开发周期,提高组合开放接口的开发效率,及时响应对组合开放接口的客户需 求,进而提升了客户满意度。The embodiment of the present application provides a method for combining data interfaces of electronic devices including the server side and the business side. The method provides a configurable interface combination interface on the business side so that business personnel or external users can easily and conveniently Set the development configuration items and generate combined interface development information, and then the server determines the output parameter information of the combined open interface according to the received combined interface development information, so that business personnel or external users who are non-professional developers can realize combined openness The development of the interface does not require the participation of professional developers, can shorten the development cycle of the combined open interface, improve the development efficiency of the combined open interface, and respond to customer needs for the combined open interface in a timely manner, thereby improving customer satisfaction.
附图说明Description of drawings
图1根据本申请的一些实施例,示出了一种组合开放接口的开发与发布的场景示意图。Fig. 1 shows a schematic diagram of a scenario of development and release of a combined open interface according to some embodiments of the present application.
图2根据本申请的一些实施例,示出了一种电子设备的硬件结构图。Fig. 2 shows a hardware structure diagram of an electronic device according to some embodiments of the present application.
图3根据本申请的一些实施例,示出了一种组合数据接口的方法的流程图。Fig. 3 shows a flowchart of a method for combining data interfaces according to some embodiments of the present application.
图4根据本申请的一些实施例,示出了引用接口的一个实例的示意图。Fig. 4 shows a schematic diagram of an example of a reference interface according to some embodiments of the present application.
图5根据本申请的一些实施例,示出了组装信息的一个模板实例的示意图。Fig. 5 shows a schematic diagram of an example template of assembly information according to some embodiments of the present application.
图6根据本申请的一些实施例,示出了裁剪信息的一个模板实例的示意图。Fig. 6 shows a schematic diagram of an example template of clipping information according to some embodiments of the present application.
具体实施方式Detailed ways
本申请的说明性实施例包括但不限于组合数据接口的方法、电子设备和可读存储介质。Illustrative embodiments of the present application include, but are not limited to, methods, electronic devices, and readable storage media combining data interfaces.
可以理解,如本文所使用的,术语“模块”可以指代或者包括专用集成电路(ASIC)、电子电路、执行一个或多个软件或固件程序的处理器(共享、专用、或群组)和/或存储器、组合逻辑电路、和/或提供所描述的功能的其他适当硬件组件,或者可以作为这些硬件组件的一部分。It will be appreciated that, as used herein, the term "module" may refer to or include an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) that executes one or more software or firmware programs, and and/or memory, combinational logic, and/or other suitable hardware components that provide the described functionality, or may be part of such hardware components.
可以理解,在本申请各实施例中,处理器可以是微处理器、数字信号处理器、微控制器等,和/或其任何组合。根据另一个方面,所述处理器可以是单核处理器,多核处理器等,和/或其任何组合。It can be understood that, in each embodiment of the present application, the processor may be a microprocessor, a digital signal processor, a microcontroller, etc., and/or any combination thereof. According to another aspect, the processor may be a single-core processor, a multi-core processor, etc., and/or any combination thereof.
可以理解,本申请的组合数据接口的方法适用于对多个开放数据接口进行二次组合开发的场景。It can be understood that the method for combining data interfaces in the present application is applicable to the scenario of secondary combination and development of multiple open data interfaces.
下面将结合附图对本申请的实施例作进一步地详细描述。Embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings.
图1根据本申请的一些实施例,提供了一种对开放接口进行组合开发并对外发布供用户访问的场景。如图1所示,业务人员100通过数据接口组合界面200开发组合接口,并将开发完成的组合开放接口发布到开放接口平台300,接口访问人员400通过开放接口平台300找到满足自己需求的该组合开放接口并进行访问,获得该组合开放接口返回的数据。According to some embodiments of the present application, FIG. 1 provides a scenario where open interfaces are combined and developed and released for user access. As shown in Figure 1, business personnel 100 develop a combined interface through the data interface combination interface 200, and publish the developed combined open interface to the open interface platform 300, and the interface access personnel 400 find the combination that meets their needs through the open interface platform 300 Open the interface and access it to obtain the data returned by the combined open interface.
业务人员100通常是熟悉软件项目业务的人员,而并非是专业的软件开发人员,其不具备实现将多个开放接口通过软件语言编码组合为一个组合开放接口的能力,而仅具备在经过简单培训后通过对多个开发配置项进行设置以实现组合多个开放接口的能力。业务人员100可以在数据接口组合界面200中对多个开发配置项进行设置,得到最终的组合开放接口,组合开放接口是对现有开放接口的组装。 Business personnel 100 are usually people who are familiar with software project business, rather than professional software developers. They do not have the ability to realize the combination of multiple open interfaces into a combined open interface through software language coding, but only after simple training. Finally, the ability to combine multiple open interfaces is achieved by setting multiple development configuration items. The business personnel 100 can set multiple development configuration items in the data interface combination interface 200 to obtain the final combined open interface, which is an assembly of existing open interfaces.
数据接口组合界面200为业务人员100提供了开放接口的组合开发环境,可以为业务人员100开发组合开放接口提供简单、方便、配置式的开发界面,能够简化业务人员100的开放接口开发工作。在数据接口组合界面200中,以可配置方式提供了业务人员100进行开放接口开发所需的多种信息,这些信息可以包括但不限于需使用的引用接口和组合开放接口的元数据等信息。例如,可以包括组合接口信息,组合接口信息可以包括待开发的组合接口的相关信息,如接口名称,接口描述等;还可以包括组合接口需使用的多个现有开放接口的信息,组合接口使用的现有开放接口是引用接口,例如组合接口可以引用N个现有开放接口,从引用接口1到引用接口N。引用接口可以为组合接口提供相应数据,例 如将引用数据的输出参数数据作为组合接口的输入参数数据或输出参数数据等。业务人员可以通过设置上述信息对应的配置项的方式进行组合开放接口的开发。The data interface combination interface 200 provides a combination development environment of open interfaces for the business personnel 100, and can provide a simple, convenient, and configurable development interface for the business personnel 100 to develop combined open interfaces, and can simplify the development work of the business personnel 100 for open interfaces. In the data interface combination interface 200 , various information required by the business personnel 100 for developing the open interface are provided in a configurable manner, and the information may include but not limited to the reference interface to be used and the metadata of the combined open interface. For example, it may include combined interface information. The combined interface information may include information about the combined interface to be developed, such as interface name, interface description, etc.; it may also include information about multiple existing open interfaces that the combined interface needs to use. The existing open interfaces of are reference interfaces. For example, a composite interface can refer to N existing open interfaces, from reference interface 1 to reference interface N. The reference interface can provide corresponding data for the combination interface, for example, the output parameter data of the reference data can be used as the input parameter data or output parameter data of the combination interface, etc. Business personnel can develop combined open interfaces by setting configuration items corresponding to the above information.
另外,业务人员100还可以在数据接口组合界面200中设置组合开放接口的组装信息,组装信息可以用于在接口组装过程中描述相关数据,例如指明引用接口的输出参数的数据类型、输出参数数据是否允许为空、接口访问的错误码、接口访问的错误信息等。In addition, the business personnel 100 can also set the assembly information of the combined open interface in the data interface combination interface 200. The assembly information can be used to describe related data during the interface assembly process, such as specifying the data type of the output parameter of the reference interface, the output parameter data Whether it is allowed to be empty, the error code of interface access, the error message of interface access, etc.
业务人员100还可以在数据接口组合界面200中为组合开放接口设置对应的裁剪信息,将从引用接口中得到、而组合接口不需要进行输出的数据通过设置裁剪信息从组合开放接口的输出参数中去除,避免输出不必要的数据。The business personnel 100 can also set the corresponding tailoring information for the combined open interface in the data interface combination interface 200, and obtain the data obtained from the reference interface but the combined interface does not need to be output by setting the cutting information from the output parameters of the combined open interface. Remove to avoid outputting unnecessary data.
数据接口组合界面200还为业务人员100提供了增加字段的功能,这里的字段是指组合开放接口中一项输出参数,组合开放接口中的输出参数可以是直接来自引用接口的输出参数,也可以是对引用接口的输入参数和/或输出参数进行处理后得到的参数,还可以是业务人员100直接设置的新参数。在此,业务人员100可以根据需要增加多个字段,例如增加M个字段,从增加字段1到增加字段M。业务人员增加的字段可以使用键值方式(Key Value,KV)来表示,例如一个增加字段为“promotion”:“Big Max Promotion Info”,其中键为“promotion”,值为“Big Max Promotion Info”。The data interface combination interface 200 also provides the function of adding fields for the business personnel 100. The field here refers to an output parameter in the combined open interface. The output parameter in the combined open interface can be directly from the output parameter of the reference interface, or can be It is a parameter obtained after processing the input parameter and/or output parameter of the reference interface, and may also be a new parameter directly set by the business personnel 100 . Here, the business personnel 100 can add multiple fields as required, for example, add M fields, from adding field 1 to adding field M. Fields added by business personnel can be represented by Key Value (KV). For example, an added field is "promotion": "Big Max Promotion Info", where the key is "promotion" and the value is "Big Max Promotion Info" .
开放接口平台300用于发布开放接口,这里的开放接口可以包括现有的开放接口,也可以包括由业务人员100开发的组合开放接口,开放接口平台300将开放接口发布后,接口访问人员400能够通过开放接口的发布信息对开放接口进行访问,开放接口的发布信息用于提供访问开放接口的相关信息,例如开放接口的访问地址、开放接口的输入参数信息、开放接口的输出参数信息等。The open interface platform 300 is used to publish open interfaces, where the open interfaces may include existing open interfaces or combined open interfaces developed by the business personnel 100. After the open interface platform 300 publishes the open interfaces, the interface access personnel 400 can The open interface is accessed through the published information of the open interface. The published information of the open interface is used to provide relevant information for accessing the open interface, such as the access address of the open interface, the input parameter information of the open interface, and the output parameter information of the open interface.
接口访问人员400通常是专业的软件开发人员,可以通过软件语言编码方式在自己的应用中访问开放接口平台300提供的开放接口,为开放接口的输入参数提供相应数据并获得开放接口的输出参数数据,再在自己的应用中使用输出参数数据。The interface access personnel 400 are usually professional software developers, who can access the open interfaces provided by the open interface platform 300 in their own applications through software language coding, provide corresponding data for the input parameters of the open interfaces and obtain the output parameter data of the open interfaces , and then use the output parameter data in your own application.
本申请技术方案提供的方法,通过为业务人员100提供数据接口组合界面200,使得业务人员100能够通过简单的配置式开发实现组合开放接口的开发,无需使用对于业务人员100来说具有很高难度的软件语言编码开发方式,从而简化了组合开放接口的开发,能够提高组合开放接口开发的效率,使得业务人员100能够及时响应第三方开发人员的需求,方便与第三方开发人员的协作,进而提高客户满意度。The method provided by the technical solution of this application, by providing the data interface combination interface 200 for the business personnel 100, enables the business personnel 100 to realize the development of the combined open interface through simple configuration development, which is very difficult for the business personnel 100 without using The development method of the software language coding, thereby simplifying the development of the combined open interface, can improve the efficiency of the combined open interface development, so that the business personnel 100 can respond to the needs of the third-party developers in a timely manner, and facilitate the cooperation with the third-party developers, thereby improving customer satisfaction.
图2根据本申请的一些实施例,示出了一种用于实现组合数据接口的方法的电子设备20的硬件结构框图。在图2所示的实施例中,电子设备20可以包括一个或多个处理器201,与处理器201中的至少一个连接的系统控制逻辑202,与系统控制逻辑202连接的系统内存203,与系统控制逻辑202连接的非易失性存储器(Non-Volatile Memory,NVM)204,以及与系统控制逻辑202连接的网络接口206。Fig. 2 shows a block diagram of a hardware structure of an electronic device 20 for implementing a method for combining data interfaces according to some embodiments of the present application. In the embodiment shown in FIG. 2, the electronic device 20 may include one or more processors 201, a system control logic 202 connected to at least one of the processors 201, a system memory 203 connected to the system control logic 202, and A non-volatile memory (Non-Volatile Memory, NVM) 204 connected to the system control logic 202 and a network interface 206 connected to the system control logic 202 .
在一些实施例中,处理器201可以包括一个或多个单核或多核处理器。在一些实施例中,处理器201可以包括通用处理器和专用处理器(例如,图形处理器,应用处理器,基带处理器等)的任意组合。在电子设备20采用增强型基站(Evolved Node B,eNB)或无线接入网(Radio Access Network,RAN)控制器的实施例中,处理器201可以被配置为执行各种符合的实施例。例如,处理器201可以用于实现组合数据接口的方法。In some embodiments, processor 201 may include one or more single-core or multi-core processors. In some embodiments, the processor 201 may include any combination of general-purpose processors and special-purpose processors (eg, graphics processors, application processors, baseband processors, etc.). In an embodiment where the electronic device 20 adopts an enhanced base station (Evolved Node B, eNB) or a radio access network (Radio Access Network, RAN) controller, the processor 201 may be configured to execute various consistent embodiments. For example, the processor 201 can be used to implement the method of combining data interfaces.
在一些实施例中,系统控制逻辑202可以包括任意合适的接口控制器,以向处理器201 中至少一个与系统控制逻辑202通信的、任意合适的设备或组件提供任意合适的接口。In some embodiments, the system control logic 202 may include any suitable interface controller to provide any suitable interface to any suitable device or component in the processor 201 that is in communication with the system control logic 202 .
在一些实施例中,系统控制逻辑202可以包括一个或多个存储器控制器,以提供连接到系统内存203的接口。系统内存203可以用于加载以及存储数据和/或指令。例如,系统内存203可以加载本申请实施例中获取引用接口的指令,也可以保存业务人员提供的增加字段数据等。In some embodiments, system control logic 202 may include one or more memory controllers to provide an interface to system memory 203 . System memory 203 can be used to load and store data and/or instructions. For example, the system memory 203 can be loaded with the instruction for obtaining the reference interface in the embodiment of the present application, and can also save the added field data provided by the business personnel.
在一些实施例中电子设备20的系统内存203可以包括任意合适的易失性存储器,例如合适的动态随机存取存储器(Dynamic Random Access Memory,DRAM)。In some embodiments, the system memory 203 of the electronic device 20 may include any suitable volatile memory, such as a suitable dynamic random access memory (Dynamic Random Access Memory, DRAM).
NVM存储器204可以包括用于存储数据和/或指令的一个或多个有形的、非暂时性的计算机可读介质。在一些实施例中,NVM存储器204可以包括闪存等任意合适的非易失性存储器和/或任意合适的非易失性存储设备,例如硬盘驱动器(Hard Disk Drive,HDD),光盘(Compact Disc,CD)驱动器,数字通用光盘(Digital Versatile Disc,DVD)驱动器中的至少一个。在本申请实施例中,NVM存储器204可以用于存储业务人员开发完成的组合开放接口的相关信息。NVM memory 204 may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. In some embodiments, the NVM memory 204 may include any suitable non-volatile memory such as flash memory and/or any suitable non-volatile storage device, such as a hard disk drive (Hard Disk Drive, HDD), an optical disc (Compact Disc, CD) drive, at least one of Digital Versatile Disc (DVD) drive. In the embodiment of the present application, the NVM memory 204 may be used to store information related to the combined open interface developed by business personnel.
NVM存储器204可以包括安装电子设备20的装置上的一部分存储资源,或者它可以由设备访问,但不一定是设备的一部分。例如,可以经由网络接口206通过网络访问NVM存储器204。NVM memory 204 may comprise a portion of storage resources on the device on which electronic device 20 is installed, or it may be accessed by, but not necessarily part of, the device. For example, NVM memory 204 may be accessed over a network via network interface 206 .
特别地,系统内存203和NVM存储器204可以分别包括:指令205的暂时副本和永久副本。指令205可以包括:由处理器201中的至少一个执行时导致电子设备20实施如图2所示的方法的指令。在一些实施例中,指令205、硬件、固件和/或其软件组件可另外地/替代地置于系统控制逻辑202,网络接口206和/或处理器201中。In particular, system memory 203 and NVM storage 204 may include, respectively, temporary and permanent copies of instructions 205 . The instructions 205 may include: instructions that cause the electronic device 20 to implement the method shown in FIG. 2 when executed by at least one of the processors 201 . In some embodiments, instructions 205 , hardware, firmware and/or software components thereof may additionally/alternatively reside in system control logic 202 , network interface 206 and/or processor 201 .
网络接口206可以包括收发器,用于为电子设备20提供无线电接口,进而通过一个或多个网络与任意其他合适的设备(如前端模块,天线等)进行通信。在一些实施例中,网络接口206可以集成于电子设备20的其他组件。例如,网络接口206可以集成于处理器201的,系统内存203,NVM存储器204,和具有指令的固件设备(未示出)中的至少一种,当处理器201中的至少一个执行所述指令时,电子设备20实现如方法实施例中示出的方法。在本申请实施例中,网络接口206可以用于将业务人员开发完成的组合开放接口传输至开放接口平台进行发布。The network interface 206 may include a transceiver for providing a radio interface for the electronic device 20 to communicate with any other suitable devices (such as front-end modules, antennas, etc.) through one or more networks. In some embodiments, the network interface 206 may be integrated with other components of the electronic device 20 . For example, the network interface 206 can be integrated into at least one of the processor 201, the system memory 203, the NVM memory 204, and a firmware device (not shown) with instructions, when at least one of the processors 201 executes the instructions , the electronic device 20 implements the methods shown in the method embodiments. In the embodiment of the present application, the network interface 206 may be used to transmit the combined open interface developed by the business personnel to the open interface platform for publishing.
网络接口206可以进一步包括任意合适的硬件和/或固件,以提供多输入多输出无线电接口。例如,网络接口206可以是网络适配器,无线网络适配器,电话调制解调器和/或无线调制解调器。 Network interface 206 may further include any suitable hardware and/or firmware to provide a multiple-input multiple-output radio interface. For example, network interface 206 may be a network adapter, a wireless network adapter, a telephone modem and/or a wireless modem.
在一些实施例中,处理器201中的至少一个可以与用于系统控制逻辑202的一个或多个控制器的逻辑封装在一起,以形成系统封装(System In a Package,SiP)。在一些实施例中,处理器201中的至少一个可以与用于系统控制逻辑202的一个或多个控制器的逻辑集成在同一管芯上,以形成片上系统(System on Chip,SoC)。In some embodiments, at least one of the processors 201 may be packaged together with the logic of one or more controllers for the system control logic 202 to form a System In a Package (SiP). In some embodiments, at least one of the processors 201 may be integrated on the same die with logic for one or more controllers of the system control logic 202 to form a System on Chip (SoC).
电子设备20可以进一步包括:输入/输出(I/O)设备207。I/O设备207可以包括用户界面,使得用户能够与电子设备20进行交互;外围组件接口的设计使得外围组件也能够与电子设备20交互。The electronic device 20 may further include: an input/output (I/O) device 207 . The I/O device 207 may include a user interface, enabling the user to interact with the electronic device 20 ; the design of the peripheral component interface enables the peripheral component to also interact with the electronic device 20 .
可以理解的是,图2示意的结构并不构成对电子设备20的具体限定。在本申请另外一些实施例中电子设备20可以包括比图示更多或更少的部件,或者组合某些部件,或者 拆分某些部件,或者不同的部件布置。图示的部件可以由硬件或软件,或软件和硬件的组合实现。It can be understood that the structure shown in FIG. 2 does not constitute a specific limitation on the electronic device 20 . In some other embodiments of the present application, the electronic device 20 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components may be realized by hardware or software, or a combination of software and hardware.
下面结合上述图2所示的结构,根据图3并结合具体场景,详细介绍本申请的技术方案。如图3所示,本申请的一些实施例中组合数据接口的方案包括:The technical solution of the present application will be described in detail below in combination with the structure shown in FIG. 2 and according to FIG. 3 and specific scenarios. As shown in Figure 3, the scheme of combining data interfaces in some embodiments of the present application includes:
S301:服务器端向业务端提供接口组合界面;S301: The server side provides an interface combination interface to the business side;
业务端用于接收业务人员或外部用户对组合开放接口的开发操作,服务器端用于接收业务端根据业务人员或外部用户的开发操作生成的组合接口开发信息,并根据组合接口开发信息生成对应的组合接口。服务器端和业务端对应的硬件设备可以为电子设备20。The business end is used to receive the development operation of the combined open interface by business personnel or external users, and the server end is used to receive the combined interface development information generated by the business end according to the development operation of the business personnel or external users, and generate the corresponding combined interface development information based on the combined interface development information Composite interface. The hardware device corresponding to the server end and the service end may be the electronic device 20 .
业务人员往往对应用的业务即应用能够提供的业务功能比较熟悉,这些业务功能可以封装为开放接口并发布到开放接口平台300上供外部用户进行访问。如果业务人员或外部用户在使用开放接口时发现这些开放接口不能完全满足自己需要,例如需要的数据不能通过访问一个开放接口得到,而是要访问多个开放接口并将这些开放接口的返回数据进行组合才能得到自己想要的数据,对于业务人员或外部用户来说开放接口的使用复杂度较高,不易使用,即使可以通过向专业的软件开发人员提出新的开放接口需求来最终得到想要的开放接口,由于开放接口的开发周期受到严格的过程管理,会导致即使是简单的开放接口的开发周期也较长,不能满足业务人员或外部用户对开放接口的时效性要求。因此,通过将简单的开放接口的开发授权给业务人员或外部用户,能够降低简单的开放接口的开发周期,及时满足业务人员或外部用户对开放接口的时间要求。Business personnel are often familiar with the business of the application, that is, the business functions that the application can provide. These business functions can be encapsulated into open interfaces and published to the open interface platform 300 for external users to access. If business personnel or external users find that these open interfaces cannot fully meet their needs when using open interfaces, for example, the required data cannot be obtained by accessing one open interface, but they need to access multiple open interfaces and process the returned data of these open interfaces. Only by combining can you get the data you want. For business personnel or external users, the use of open interfaces is more complicated and difficult to use, even if you can finally get what you want by putting forward new open interface requirements to professional software developers Open interface, because the development cycle of the open interface is subject to strict process management, it will lead to a long development cycle even for a simple open interface, which cannot meet the timeliness requirements of business personnel or external users for the open interface. Therefore, by authorizing the development of the simple open interface to business personnel or external users, the development cycle of the simple open interface can be shortened, and the time requirements of the business personnel or external users for the open interface can be met in time.
在此,服务器端存储有预先设定的接口组合界面,在业务端需要时向业务端提供。接口组合界面用于方便业务人员或外部用户对多个引用接口进行组合开发。如果业务人员或外部用户希望得到多个数据,这多个数据分别来自多个现有开放接口,然而没有一个现有开放接口能够同时提供这多个数据,因此需要开发一个新的组合开放接口来提供这多个数据。Here, the server side stores a preset interface combination interface, which is provided to the business side when needed. The interface combination interface is used to facilitate the combined development of multiple reference interfaces by business personnel or external users. If business personnel or external users want to obtain multiple data, the multiple data come from multiple existing open interfaces, but none of the existing open interfaces can provide these multiple data at the same time, so it is necessary to develop a new combined open interface to Provide this multiple data.
业务人员或外部用户通过接口组合界面对新的组合开放接口进行开发,接口组合界面为业务人员提供了一个配置化、图形化的接口开发环境,使得业务人员不需要具有软件语言编码的能力即可完成组合开放接口的开发,不需要专业的软件开发人员的介入。Business personnel or external users develop new combined open interfaces through the interface combination interface. The interface combination interface provides a configurable and graphical interface development environment for business personnel, so that business personnel do not need to have the ability of software language coding Completing the development of combined open interfaces does not require the intervention of professional software developers.
本申请的实施例中,接口组合界面提供了用于对组合开放接口进行开发的相关配置项,业务人员或外部用户通过对相关配置项的值进行设置来实现组合开放接口的开发。In the embodiment of the present application, the interface combination interface provides related configuration items for developing combined open interfaces, and business personnel or external users realize the development of combined open interfaces by setting values of related configuration items.
本申请的一些实施例中,接口组合界面提供的配置项可以包括但不限于如下:组合开放接口信息、引用接口信息、组装信息、裁剪信息、增加字段信息等。组合开放接口信息用于描述待开发的组合开放接口的相关信息,例如组合开放接口名称、组合开放接口描述、组合开放接口的URL、组合开放接口的请求方法等。引用接口信息用于描述组合开放接口引用的开放接口的相关信息,这里引用的开放接口是指能够为组合开放接口提供相应数据的那些开放接口。引用接口信息例如可以包括开放接口的名称、开放接口的URL、开放接口的请求方法、引用的开放接口数量等。组装信息用于描述对组合开放接口进行组装过程中需要用到的信息,例如引用接口的输出参数信息的数据类型、引用接口的访问错误码、错误信息、引用接口的输出数据的约束条件等。裁剪信息用于描述对组合开放接口的输出参数数据的过滤信息。增加字段信息用于描述在组合开放接口的输出参数信息中增加的字段信息等。In some embodiments of the present application, the configuration items provided by the interface combination interface may include but not limited to the following: combination open interface information, reference interface information, assembly information, tailoring information, adding field information, and the like. The combined open interface information is used to describe the relevant information of the combined open interface to be developed, such as the name of the combined open interface, the description of the combined open interface, the URL of the combined open interface, the request method of the combined open interface, and the like. The reference interface information is used to describe the relevant information of the open interface referenced by the combined open interface, and the open interfaces referenced here refer to those open interfaces that can provide corresponding data for the combined open interface. The referenced interface information may include, for example, the name of the open interface, the URL of the open interface, the request method of the open interface, the number of referenced open interfaces, and the like. Assembly information is used to describe the information that needs to be used in the process of assembling the combined open interface, such as the data type of the output parameter information of the referenced interface, the access error code of the referenced interface, error information, the constraints of the output data of the referenced interface, etc. The clipping information is used to describe the filtering information for the output parameter data of the combined open interface. The added field information is used to describe the field information added in the output parameter information of the combined open interface, etc.
S302:业务端根据接口组合界面对应的用户操作生成组合接口开发信息并发送给服务器端;S302: The business end generates combination interface development information according to the user operation corresponding to the interface combination interface and sends it to the server;
业务人员或外部用户在业务端的接口组合界面上完成组合开放接口的开发后,接口组合界面将根据业务人员或外部用户的配置项设置操作得到的信息封装为组合接口开发信息,并将组合接口开发信息发送给服务器端,由服务器端根据接收的组合接口开发信息进行后续处理。After the business personnel or external users complete the development of the combined open interface on the interface combination interface of the business end, the interface combination interface will encapsulate the information obtained according to the configuration item setting operation of the business personnel or external users into the combination interface development information, and develop the combination interface The information is sent to the server, and the server performs follow-up processing according to the received combined interface development information.
本申请的实施例中,组合接口开发信息可以包括接口组合界面提供的全部配置项对应的信息。In the embodiment of the present application, the combination interface development information may include information corresponding to all configuration items provided by the interface combination interface.
S303:服务器端根据组合接口开发信息中的引用接口信息,获取对应的引用接口的输出参数信息;S303: The server acquires the output parameter information of the corresponding reference interface according to the reference interface information in the combined interface development information;
在此,服务器端从接收的组合接口开发信息中获取引用接口信息。在业务人员或外部用户进行组合开放接口的开发时,通常会指定需要进行引用的开放接口,引用的开放接口为组合开放接口提供相应的输出数据。在指定引用的开放接口时,通常使用引用的开放接口的标识,该标识可以用来唯一对应一个现有的开放接口,例如,可以使用开放接口的名称作为该开放接口的标识。Here, the server acquires the reference interface information from the received combination interface development information. When business personnel or external users develop the combined open interface, they usually specify the open interface that needs to be referenced, and the referenced open interface provides corresponding output data for the combined open interface. When specifying a referenced open interface, usually an identifier of the referenced open interface is used, which can be used to uniquely correspond to an existing open interface, for example, the name of the open interface can be used as the identifier of the open interface.
可以理解,引用接口信息中可以包含一个被引用的开放接口的信息,也可以包含一个以上被引用的开放接口的信息,业务人员或外部用户可以为组合开放接口指定一个或一个以上的现有开放接口作为引用的开放接口。It can be understood that the referenced interface information may contain the information of one referenced open interface or more than one referenced open interface, and business personnel or external users may specify one or more existing open interfaces for the combined open interface. Interface as an open interface for references.
本申请的一些实施例中,服务器端可以根据获取的引用接口的标识来获取对应的引用接口的输出参数信息。在此,服务器端上可以预先存储现有的全部开放接口的信息列表,从而服务器端可以根据引用接口的标识在信息列表中查询,以得到该引用接口的输出参数信息。In some embodiments of the present application, the server side may acquire the output parameter information of the corresponding reference interface according to the obtained identifier of the reference interface. Here, the information list of all existing open interfaces can be pre-stored on the server, so that the server can query the information list according to the identifier of the reference interface to obtain the output parameter information of the reference interface.
例如,业务人员在接口组合界面中设置一个引用接口的名称为productAllInfo,该引用接口的名称被封装到组合接口开发信息中发送给服务器端,服务器端从接收的组合接口开发信息中得到引用接口的名称,再根据该引用接口的名称“productAllInfo”在现有开放接口的信息列表中查询,得到该引用接口对应的引用接口信息。图4示出了引用接口信息的一个实例,如图4所示,该引用接口“productAllInfo”包含3种信息:访问URL、请求方法和标准输出模型,其中访问URL为http://pd.ebaoli/pd/products/allInfo/{productCode},请求方法为get方法,标准输出模型中的输出参数为product对象。product对象中包含多个字段,如promotion字段、productId字段、orgId字段等,以Json格式表示的信息为:“product”:{“promotion”:“Big Max Promotion Info”,“productId”:0,“orgId”:0,“productName”:“”,“productAbbr”:“”,…},其中promotion字段的键为“promotion”,值为“Big Max Promotion Info”,productId字段的键为“productId”,值为0,orgId字段的键为“orgId”,值为0。For example, the business personnel set the name of a reference interface as productAllInfo in the interface combination interface, the name of the reference interface is encapsulated into the combination interface development information and sent to the server, and the server obtains the reference interface from the received combination interface development information Name, and then query the information list of the existing open interface according to the name "productAllInfo" of the reference interface to obtain the reference interface information corresponding to the reference interface. Figure 4 shows an example of reference interface information, as shown in Figure 4, the reference interface "productAllInfo" contains three kinds of information: access URL, request method and standard output model, where the access URL is http://pd.ebaoli /pd/products/allInfo/{productCode}, the request method is the get method, and the output parameter in the standard output model is the product object. The product object contains multiple fields, such as promotion field, productId field, orgId field, etc. The information expressed in Json format is: "product": {"promotion": "Big Max Promotion Info", "productId": 0," orgId": 0, "productName": "", "productAbbr": "", ...}, where the key of the promotion field is "promotion", the value is "Big Max Promotion Info", the key of the productId field is "productId", With a value of 0, the orgId field has a key of "orgId" and a value of 0.
S304:服务器端根据组合接口开发信息中的组装信息,将多个引用接口的输出参数信息组合为组合开放接口的输出参数信息;S304: The server side combines the output parameter information of multiple reference interfaces into the output parameter information of the combined open interface according to the assembly information in the combined interface development information;
在此,组装信息包含的内容根据业务人员或外部用户对开发配置项的设置不同而有一定差异,但是组装信息必须要有的信息包括引用接口的标识,包含的引用接口的标识可以有一个或多个。本申请的一些实施例中,将引用接口的名称作为引用接口的标识。服务器 端通过引用接口的标识得到对应的输出参数信息后,将全部引用接口的输出参数信息作为组合开放接口的输出参数。Here, the content contained in the assembly information varies according to the settings of the development configuration items by business personnel or external users, but the information that assembly information must have includes the identification of the reference interface, and the identification of the reference interface included can have one or Multiple. In some embodiments of the present application, the name of the referenced interface is used as the identifier of the referenced interface. After the server obtains the corresponding output parameter information through the identification of the reference interface, it uses the output parameter information of all reference interfaces as the output parameters of the combined open interface.
本申请的一些实施例中,组装信息可以保存为组装信息模板,业务人员或外部用户可以在接口组合界面中获取预先存储的组装信息模板,从而可以在组装信息模板中设置好的配置项的基础上进行少量的改动即可完成组合开放接口的开发,提高接口开发的效率。In some embodiments of the present application, the assembly information can be saved as an assembly information template, and business personnel or external users can obtain the pre-stored assembly information template in the interface combination interface, so that the basis of the configuration items that can be set in the assembly information template The development of the combined open interface can be completed with a small amount of modification on the interface, which improves the efficiency of interface development.
本申请的一些实施例中,组装信息中还可以包括裁剪信息。组合开放接口的输出参数信息中包含全部引用接口的输出参数信息,而组合开放接口的输出参数信息中可能存在组合开放接口并不希望输出的参数信息,因此可以通过裁剪信息来指出哪些输出参数信息中的输出参数是组合开放接口希望输出的。类似地,裁剪信息也可以保存为裁剪信息模板,业务人员或外部用户可以直接使用预存的裁剪信息模板。In some embodiments of the present application, the assembling information may also include clipping information. The output parameter information of the combined open interface includes the output parameter information of all referenced interfaces, and there may be parameter information that the combined open interface does not want to output in the output parameter information of the combined open interface, so you can point out which output parameter information by tailoring the information The output parameters in are what the composite open interface expects to output. Similarly, the clipping information can also be saved as a clipping information template, and business personnel or external users can directly use the pre-stored clipping information template.
本申请的一些实施例中,组装信息还可以包括输入参数信息的校验信息,输入参数信息的校验信息用于对组合开放接口的输入参数信息进行校验,判断输入参数信息是否满足要求。组合开放接口的输入参数信息可以来自引用接口的输入参数信息,也可以来自业务人员或外部用户的自定义参数信息。例如,组装信息中可以包含对输入参数进行是否为空值的校验条件,及在校验条件不满足时返回的错误码和错误信息等。In some embodiments of the present application, the assembly information may also include verification information of the input parameter information, and the verification information of the input parameter information is used to verify the input parameter information of the combined open interface to determine whether the input parameter information meets the requirements. The input parameter information of the combined open interface may come from the input parameter information of the reference interface, or from the user-defined parameter information of business personnel or external users. For example, the assembly information may include a verification condition for whether the input parameter is a null value, and an error code and error message returned when the verification condition is not satisfied.
图5示出了组装信息模板的一个实例,如图5所示,该组装信息模板使用Json形式的数据来描述组合开放接口的组装信息,其中通过“mainIntegrateType”字段指明组合开放接口的组装类型,值为“1”表明是通过集成引用接口来进行组装,“mainObjectName”字段指明组合开放接口是以引用接口“productAllInfo”为主进行组装,“tailorTemplate”字段指明进行组装时使用的裁剪信息模板为“tailorProductAllInfo”。组装信息模板中的引用接口为“productAllInfo”,其中通过“standardApiName”字段定义了组装后的组合开放接口的名称也为“productAllInfo”,还通过“inputRequestParams”字段对名称为“productCode”的输入参数进行了是否为空值的校验,如果该输入参数为空值时给出的错误码和错误信息分别在“nullErrorCode”字段和“nullErrorMsg”字段中定义。Figure 5 shows an example of an assembly information template, as shown in Figure 5, the assembly information template uses data in the form of Json to describe the assembly information of the combined open interface, where the "mainIntegrateType" field indicates the assembly type of the combined open interface, A value of "1" indicates that the assembly is performed by integrating the reference interface. The "mainObjectName" field indicates that the combined open interface is assembled based on the reference interface "productAllInfo". The "tailorTemplate" field indicates that the tailoring information template used for assembly is " tailorProductAllInfo". The reference interface in the assembly information template is "productAllInfo", in which the name of the combined open interface after assembly is defined as "productAllInfo" through the "standardApiName" field, and the input parameter named "productCode" is also specified through the "inputRequestParams" field Check whether it is a null value. If the input parameter is a null value, the error code and error message given are respectively defined in the "nullErrorCode" field and the "nullErrorMsg" field.
S305:服务器端根据组合接口开发信息中的优化信息,对组合开放接口的输出参数信息进行调整;S305: The server side adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information;
在此,优化信息用于描述如何对组合开放接口的输出参数信息进行调整,既可以对输出参数信息中的输出参数进行增加,也可对输出参数进行减少。优化信息可以包括但不限于如下:裁剪信息、增加字段信息等。Here, the optimization information is used to describe how to adjust the output parameter information of the combined open interface, which may increase or decrease the output parameter in the output parameter information. The optimization information may include but not limited to the following: clipping information, adding field information, and so on.
可以理解,优化信息中可以包括裁剪信息或增加字段信息中的一种,也可以同时包括裁剪信息和增加字段信息,本申请实施例对优化信息中包括的信息种类不做具体限制。It can be understood that the optimization information may include one of the clipping information or the added field information, or may include both the clipping information and the added field information. The embodiment of the present application does not specifically limit the type of information included in the optimization information.
本申请的一些实施例中,服务器端可以根据裁剪信息,去除组合开放接口的输出参数信息中不需要输出的参数信息;In some embodiments of the present application, the server side can remove the parameter information that does not need to be output in the output parameter information of the combined open interface according to the tailoring information;
在此,裁剪信息用于对组合开放接口的输出参数信息进行裁剪,使得业务人员或外部用户可以根据自身需要对输出参数信息进行控制,组合开放接口只对必要的输出参数信息进行输出,不必输出来自多个引用接口的全部输出参数信息,从而实现对组合开放接口的输出参数信息的灵活选择。Here, the tailoring information is used to tailor the output parameter information of the combined open interface, so that business personnel or external users can control the output parameter information according to their own needs. The combined open interface only outputs the necessary output parameter information, and does not need to output All output parameter information from multiple reference interfaces, so as to realize flexible selection of output parameter information of combined open interfaces.
本申请的一些实施例中,在裁剪信息中可以定义对组合开放接口的输出参数信息进行处理的不同方式,可以包括但不限于:直接指定需要输出的输出参数信息、直接指定不需 要输出的输出参数信息、通过过滤条件指定要输出的输出参数信息、通过过滤条件指定不需要输出的输出参数信息等。In some embodiments of the present application, different ways of processing the output parameter information of the combined open interface can be defined in the tailoring information, which can include but not limited to: directly specify the output parameter information that needs to be output, and directly specify the output that does not need to be output Parameter information, specify output parameter information to be output through filter conditions, specify output parameter information that does not need to be output through filter conditions, etc.
可以理解,在裁剪信息中可以使用一种方式对组合开放接口的输出参数信息进行处理,也可以使用两种或两种以上方式对组合开放接口的输出参数信息进行处理。It can be understood that in the clipping information, the output parameter information of the combined open interface may be processed in one way, or two or more ways may be used to process the output parameter information of the combined open interface.
服务器端根据裁剪信息中定义的不同方式对组合开放接口的输出参数信息进行处理,得到最终需要输出的输出参数信息。例如,裁剪信息中直接指定了需要输出的输出参数信息,则服务器端可以直接将指定的需要输出的输出参数信息作为组合开放接口的最终输出参数信息;又例如,裁剪信息中直接指定了不需要输出的输出参数信息,则服务器端从组合开放接口的输出参数信息中去掉不需要输出的输出参数信息,将剩余的输出参数信息作为组合开放接口的最终输出参数信息;裁剪信息中通过过滤条件指定了需要输出的输出参数信息,则服务器端根据过滤条件在组合开放接口的全部输出参数信息中确定满足过滤条件的输出参数信息,将满足过滤条件的输出参数信息作为组合开放接口的最终输出参数信息;裁剪信息中通过过滤条件指定了不需要输出的输出参数信息,则服务器端根据过滤条件在组合开放接口的全部输出参数信息中确定满足过滤条件的输出参数信息,并在全部输出参数信息中去除满足过滤条件的输出参数信息,将剩下的输出参数信息作为组合开放接口的最终输出参数信息。The server side processes the output parameter information of the combined open interface according to different methods defined in the tailoring information, to obtain the output parameter information that needs to be output finally. For example, if the output parameter information that needs to be output is directly specified in the clipping information, the server can directly use the specified output parameter information that needs to be output as the final output parameter information of the combined open interface; output parameter information, the server side removes the output parameter information that does not need to be output from the output parameter information of the combined open interface, and uses the remaining output parameter information as the final output parameter information of the combined open interface; the clipping information is specified by the filter condition After obtaining the output parameter information that needs to be output, the server determines the output parameter information that meets the filter condition among all the output parameter information of the combined open interface according to the filter condition, and takes the output parameter information that meets the filter condition as the final output parameter information of the combined open interface ;The output parameter information that does not need to be output is specified by the filter condition in the clipping information, then the server side determines the output parameter information that meets the filter condition among all the output parameter information of the combined open interface according to the filter condition, and removes it from all the output parameter information For the output parameter information that satisfies the filter condition, the remaining output parameter information is used as the final output parameter information of the combined open interface.
本申请的一些实施例中,裁剪信息可以保存为裁剪信息模板,业务人员或外部用户可以在接口组合界面中使用预先存储的裁剪信息模板,从而提高接口开发的效率。In some embodiments of the present application, the clipping information can be saved as a clipping information template, and business personnel or external users can use the pre-stored clipping information template in the interface combination interface, thereby improving the efficiency of interface development.
图6示出了裁剪信息模板的一个实例,如图6所示,该裁剪信息模板使用Json形式的数据来描述组合开放接口的裁剪信息,并且使用的是直接指定需要输出的输出参数信息的方式,即该裁剪信息模板直接指定组合开放接口的输出参数信息包括“product”对象,“product”对象中需要输出的字段包括“productName”字段、“promotion”字段、“internalId”字段和“lifeBasics”字段,“lifeBasics”字段中需要输出的嵌入字段包括“chargePeriod”、“chargeYear”、“coveragePeriod”和“coverageYear”。Figure 6 shows an example of the clipping information template, as shown in Figure 6, the clipping information template uses data in the form of Json to describe the clipping information of the combined open interface, and uses the method of directly specifying the output parameter information that needs to be output , that is, the tailoring information template directly specifies that the output parameter information of the combined open interface includes the "product" object, and the fields that need to be output in the "product" object include the "productName" field, the "promotion" field, the "internalId" field, and the "lifeBasics" field , the embedded fields that need to be output in the "lifeBasics" field include "chargePeriod", "chargeYear", "coveragePeriod" and "coverageYear".
本申请的一些实施例中,服务器端可以根据增加字段信息,在组合开放接口的输出参数信息中增加相应字段。In some embodiments of the present application, the server may add corresponding fields in the output parameter information of the combined open interface according to the added field information.
在此,业务人员或外部用户可以通过接口组合界面为组合开放接口的输出参数信息设置新的输出字段,接口组合界面将完成设置的新输出字段作为组合接口开发信息中的增加字段信息。本申请的一些实施例中,增加字段信息中所增加的字段的值为业务人员或外部用户设置的字符串,例如,增加字段信息中的字段“promotion”的值为字符串“Big Max Promotion Info”。Here, business personnel or external users can set a new output field for the output parameter information of the combined open interface through the interface combination interface, and the interface combination interface will use the newly set output field as the added field information in the combined interface development information. In some embodiments of the present application, the value of the added field in the added field information is a string set by business personnel or external users, for example, the value of the field "promotion" in the added field information is the string "Big Max Promotion Info ".
在服务器端确定组合开放接口最终的输出参数信息后,本申请的一些实施例中,服务器端还可以先根据引用接口信息获取对应的引用接口的实现代码,再根据引用接口的实现代码和组合开放接口最终的输出参数信息生成组合开放接口对应的实现代码。After the server side determines the final output parameter information of the combination open interface, in some embodiments of the present application, the server side can also first obtain the implementation code of the corresponding reference interface according to the reference interface information, and then open according to the implementation code of the reference interface and the combination open The final output parameter information of the interface generates the implementation code corresponding to the combined open interface.
本申请的一些实施例中,服务器端可以将组合开放接口及对应的实现代码发布到开放接口平台300上,通过开放接口平台300实现对组合开放接口的访问控制和管理。In some embodiments of the present application, the server side can publish the combined open interface and the corresponding implementation code to the open interface platform 300, and realize the access control and management of the combined open interface through the open interface platform 300.
本申请公开的机制的各实施例可以被实现在硬件、软件、固件或这些实现方法的组合中。本申请的实施例可实现为在可编程系统上执行的计算机程序或程序代码,该可编程系统包括至少一个处理器、存储系统(包括易失性和非易失性存储器和/或存储元件)、至少 一个输入设备以及至少一个输出设备。Various embodiments of the mechanisms disclosed in this application may be implemented in hardware, software, firmware, or a combination of these implementation methods. Embodiments of the present application may be implemented as a computer program or program code executed on a programmable system comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements) , at least one input device, and at least one output device.
可将程序代码应用于输入指令,以执行本申请描述的各功能并生成输出信息。可以按已知方式将输出信息应用于一个或多个输出设备。为了本申请的目的,处理系统包括具有诸如数字信号处理器(Digital Signal Processor,DSP)、微控制器、专用集成电路(Application Specific Integrated Circuit,ASIC)或微处理器之类的处理器的任何系统。Program code can be applied to input instructions to perform the functions described herein and to generate output information. The output information may be applied to one or more output devices in known manner. For the purposes of this application, a processing system includes any system having a processor such as a Digital Signal Processor (DSP), microcontroller, Application Specific Integrated Circuit (ASIC), or microprocessor .
程序代码可以用高级程序化语言或面向对象的编程语言来实现,以便与处理系统通信。在需要时,也可用汇编语言或机器语言来实现程序代码。事实上,本申请中描述的机制不限于任何特定编程语言的范围。在任一情形下,该语言可以是编译语言或解释语言。The program code can be implemented in a high-level procedural language or an object-oriented programming language to communicate with the processing system. Program code can also be implemented in assembly or machine language, if desired. In fact, the mechanisms described in this application are not limited in scope to any particular programming language. In either case, the language may be a compiled or interpreted language.
在一些情况下,所公开的实施例可以以硬件、固件、软件或其任何组合来实现。所公开的实施例还可以被实现为由一个或多个暂时或非暂时性机器可读(例如,计算机可读)存储介质承载或存储在其上的指令,其可以由一个或多个处理器读取和执行。例如,指令可以通过网络或通过其他计算机可读介质分发。因此,机器可读介质可以包括用于以机器(例如,计算机)可读的形式存储或传输信息的任何机制,包括但不限于,软盘、光盘、光碟、只读存储器(CD-ROMs)、磁光盘、只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁卡或光卡、闪存、或用于利用因特网以电、光、声或其他形式的传播信号来传输信息(例如,载波、红外信号数字信号等)的有形的机器可读存储器。因此,机器可读介质包括适合于以机器(例如计算机)可读的形式存储或传输电子指令或信息的任何类型的机器可读介质。In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments can also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which can be executed by one or more processors read and execute. For example, instructions may be distributed over a network or via other computer-readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy disks, optical disks, optical disks, read-only memories (CD-ROMs), magnetic CD-ROM, Read Only Memory (ROM), Random Access Memory (Random Access Memory, RAM), Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Only Memory Read memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic card or optical card, flash memory, or use the Internet to transmit information by means of electricity, light, sound or other forms of propagation signals (for example, carrier waves, infrared signals, digital signals etc.) tangible machine-readable storage. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).
在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the drawings, some structural or methodological features may be shown in a particular arrangement and/or order. However, it should be understood that such specific arrangements and/or orderings may not be required. Rather, in some embodiments, these features may be arranged in a different manner and/or order than shown in the illustrative figures. Additionally, the inclusion of structural or methodological features in a particular figure does not imply that such features are required in all embodiments, and in some embodiments these features may not be included or may be combined with other features.
需要说明的是,本申请各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本申请所提出的技术问题的关键。此外,为了突出本申请的创新部分,本申请上述各设备实施例并没有将与解决本申请所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that each unit/module mentioned in each device embodiment of this application is a logical unit/module. Physically, a logical unit/module can be a physical unit/module, or a physical unit/module. A part of the module can also be realized with a combination of multiple physical units/modules, the physical implementation of these logical units/modules is not the most important, the combination of functions realized by these logical units/modules is the solution The key to the technical issues raised. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units/modules that are not closely related to solving the technical problems proposed by this application, which does not mean that the above-mentioned device embodiments do not exist other units/modules.
需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and descriptions of this patent, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply There is no such actual relationship or order between these entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
虽然通过参照本申请的某些优选实施例,已经对本申请进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本申请的精神和范围。Although this application has been shown and described with reference to certain preferred embodiments thereof, those skilled in the art will understand that various changes in form and details may be made therein without departing from this disclosure. The spirit and scope of the application.

Claims (10)

  1. 一种组合数据接口的方法,用于包括服务器端和业务端的电子设备,其特征在于,包括:A method for combining data interfaces, used for electronic equipment including a server side and a business side, is characterized in that it includes:
    所述业务端从所述服务器端接收并显示接口组合界面,所述接口组合界面包括多个开发配置项;The service end receives and displays an interface combination interface from the server end, and the interface combination interface includes a plurality of development configuration items;
    所述业务端接收来自用户在所述接口组合界面上的设置操作,所述设置操作用于对需使用的多个引用接口和组合开放接口的元数据进行设置,并基于所述设置操作操作生成组合接口开发信息;The service end receives a setting operation from the user on the interface combination interface, the setting operation is used to set the multiple reference interfaces to be used and the metadata of the combined open interface, and generate Composite interface development information;
    所述服务器端接收所述组合接口开发信息;The server receives the combination interface development information;
    所述服务器端根据所述组合接口开发信息确定组合开放接口的输出参数信息。The server side determines the output parameter information of the combined open interface according to the combined interface development information.
  2. 根据权利要求1所述的方法,其特征在于,所述组合接口开发信息至少包括如下一种:引用接口信息、组装信息和优化信息。The method according to claim 1, wherein the combination interface development information includes at least one of the following: reference interface information, assembly information and optimization information.
  3. 根据权利要求2所述的方法,其特征在于,所述服务器端根据所述组合接口开发信息确定组合开放接口的输出参数信息,包括:The method according to claim 2, wherein the server side determines the output parameter information of the combined open interface according to the combined interface development information, including:
    所述服务器端根据所述组合接口开发信息中的引用接口信息,获取对应的引用接口的输出参数信息;The server side obtains the output parameter information of the corresponding reference interface according to the reference interface information in the combined interface development information;
    所述服务器端根据所述组合接口开发信息中的组装信息,将多个引用接口的输出参数信息组合为组合开放接口的输出参数信息;The server side combines the output parameter information of multiple reference interfaces into the output parameter information of the combined open interface according to the assembly information in the combined interface development information;
    所述服务器端根据所述组合接口开发信息中的优化信息,对所述组合开放接口的输出参数信息进行调整。The server side adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information.
  4. 根据权利要求3所述的方法,其特征在于,所述优化信息至少包括如下一种:裁剪信息和增加字段信息。The method according to claim 3, wherein the optimization information includes at least one of the following: clipping information and added field information.
  5. 根据权利要求4所述的方法,其特征在于,所述服务器端根据所述组合接口开发信息中的优化信息,对所述组合开放接口的输出参数信息进行调整,包括:The method according to claim 4, wherein the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
    所述服务器端根据所述优化信息中的裁剪信息,对组合开放接口的输出参数信息进行裁剪。The server side tailors the output parameter information of the combined open interface according to the tailoring information in the optimization information.
  6. 根据权利要求4所述的方法,其特征在于,所述服务器端根据所述组合接口开发信息中的优化信息,对所述组合开放接口的输出参数信息进行调整,包括:The method according to claim 4, wherein the server adjusts the output parameter information of the combined open interface according to the optimization information in the combined interface development information, including:
    所述服务器端根据所述优化信息中的增加字段信息,在组合开放接口的输出参数信息中增加相应字段。The server adds corresponding fields to the output parameter information of the combined open interface according to the added field information in the optimization information.
  7. 根据权利要求3所述的方法,其特征在于,该方法还包括:The method according to claim 3, characterized in that the method further comprises:
    所述服务器端根据所述组装信息中输入参数的校验信息,对组合开放接口的输入参数信息进行校验。The server side verifies the input parameter information of the combined open interface according to the verification information of the input parameters in the assembly information.
  8. 根据权利要求7所述的方法,其特征在于,该方法还包括:The method according to claim 7, characterized in that the method further comprises:
    在所述组合开放接口的输入参数信息的校验结果不满足预设条件的情况下,所述服务器端确定预定义的校验错误标识和校验错误信息。In the case that the verification result of the input parameter information of the combined open interface does not meet the preset condition, the server side determines a predefined verification error identifier and verification error information.
  9. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    存储器,用于存储由电子设备的一个或多个处理器执行的指令,以及memory for storing instructions to be executed by one or more processors of the electronic device, and
    处理器,是电子设备的处理器之一,用于执行权利要求1-8中任一项所述的组合数据接口的方法。The processor is one of the processors of the electronic device, configured to execute the method for combining data interfaces according to any one of claims 1-8.
  10. 一种可读存储介质,其特征在于,所述可读存储介质上存储有指令,该指令在电子设备上执行时使电子设备执行权利要求1-8中任一项所述的组合数据接口的方法。A readable storage medium, characterized in that instructions are stored on the readable storage medium, and when the instructions are executed on the electronic equipment, the electronic equipment executes the combined data interface described in any one of claims 1-8. method.
PCT/CN2022/116537 2021-09-16 2022-09-01 Method for combining data interfaces, and electronic device and readable storage medium WO2023040671A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111087327.3 2021-09-16
CN202111087327.3A CN113791766B (en) 2021-09-16 2021-09-16 Method for combining data interfaces, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
WO2023040671A1 true WO2023040671A1 (en) 2023-03-23

Family

ID=78878592

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/116537 WO2023040671A1 (en) 2021-09-16 2022-09-01 Method for combining data interfaces, and electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN113791766B (en)
WO (1) WO2023040671A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113791766B (en) * 2021-09-16 2023-05-16 易保网络技术(上海)有限公司 Method for combining data interfaces, electronic device and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304678A1 (en) * 2013-04-09 2014-10-09 Level 3 Communications, Llc System and method for resource-definition-oriented software generation and development
CN109766166A (en) * 2018-12-29 2019-05-17 优刻得科技股份有限公司 Business flow processing method, apparatus, storage medium and equipment
CN111142867A (en) * 2019-12-31 2020-05-12 谷云科技(广州)有限责任公司 Service visual arrangement system and method under micro-service architecture
CN113037830A (en) * 2021-03-04 2021-06-25 浪潮云信息技术股份公司 Micro-service API (application program interface) arranging method and system based on gateway
CN113791766A (en) * 2021-09-16 2021-12-14 易保网络技术(上海)有限公司 Method for combining data interfaces, electronic device and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160012451A1 (en) * 2014-07-10 2016-01-14 Verizon Patent And Licensing Inc. Combined application programming interface and device management for remote device diagnostics and management
CN106649488B (en) * 2016-09-30 2020-05-05 广东网金数据服务有限公司 Method and device for calling multi-data-source interactive interface
CN110286897A (en) * 2019-05-22 2019-09-27 深圳壹账通智能科技有限公司 API Visual Dynamic configuration method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140304678A1 (en) * 2013-04-09 2014-10-09 Level 3 Communications, Llc System and method for resource-definition-oriented software generation and development
CN109766166A (en) * 2018-12-29 2019-05-17 优刻得科技股份有限公司 Business flow processing method, apparatus, storage medium and equipment
CN111142867A (en) * 2019-12-31 2020-05-12 谷云科技(广州)有限责任公司 Service visual arrangement system and method under micro-service architecture
CN113037830A (en) * 2021-03-04 2021-06-25 浪潮云信息技术股份公司 Micro-service API (application program interface) arranging method and system based on gateway
CN113791766A (en) * 2021-09-16 2021-12-14 易保网络技术(上海)有限公司 Method for combining data interfaces, electronic device and readable storage medium

Also Published As

Publication number Publication date
CN113791766B (en) 2023-05-16
CN113791766A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
US11368522B2 (en) Lightweight IoT information model
KR102224379B1 (en) Service layer resource management for general interoperability and scalability
US11805166B2 (en) Enhanced M2M content management based on interest
TW201826869A (en) Method, system and device for connecting devices
CN109792596B (en) System and method for unified data management in a communication network
JP6734404B2 (en) Enable Semantics Inference Service in M2M/IOT Service Layer
CN108376078A (en) Upgrade method, device and the household appliance of equipment
CN110099369B (en) Method and device for processing information in M2M
WO2023040671A1 (en) Method for combining data interfaces, and electronic device and readable storage medium
KR20190061060A (en) Profile-based content and services
US20150142804A1 (en) Methods, apparatuses and computer program products for utilizing subtyping to support evolution of data types
CN104077414A (en) Decoding device and decoding method applied to LTE network signals
CN109522307A (en) Server, the declaration form data query method based on Mongodb and storage medium
CN112799734B (en) Flow management method, image processing method, and corresponding platform and device thereof
WO2016206437A1 (en) Rom package generation method and device
CN114900387A (en) Cross-platform fusion access method, system, gateway and storage medium of equipment
WO2022041280A1 (en) Method and apparatus for generating file in internet of things, computer device, and storage medium
US11997160B2 (en) Lightweight IoT information model
CN117270956B (en) Configuration method of hardware equipment, client, hardware equipment network management system and medium
WO2018144517A1 (en) Semantic query processing with information asymmetry
WO2022001269A1 (en) Configuration data merging method and apparatus, system, electronic device and medium
WO2022228076A1 (en) Automatic printing method and electronic device
US20230038513A1 (en) Interface display method and device, storage medium, and electronic device
CN110719180A (en) Communication configuration method, device and equipment
TWI461023B (en) Method of defining condition scenario in management object

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22869042

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE