Data service management method and device based on Swager and medium

Through the combination of Swagger specifications and Gateway extension gateway, online integration of data service interfaces and status monitoring are realized, solving the problems of low efficiency of digital data service management and online integration of microservices, and improving the efficiency and processing capabilities of data service management.

CN118984338AActive Publication Date: 2024-11-19INSPUR ZHUOSHU BIG DATA IND DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411051350.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-11-19
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

In the prior art, the digital data service management method is inefficient and has poor processing capabilities, and cannot solve the problem of online integration of microservices.

Method used

The interface data is defined through the preset Swagger specification, the interface definition document is generated, and the document visualization is used to realize the integration and status monitoring of the online service interface pool, which improves the efficiency and processing capabilities of interface management.

Benefits of technology

It realizes online integration of service interfaces and online configuration of interface microservices, improves the efficiency and processing capabilities of digital data service management, and solves the problems of dispersed interface documents and confusing version management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118984338A_ABST
    Figure CN118984338A_ABST
Patent Text Reader

Abstract

The invention discloses a data service management method and device based on Swagger and a medium, and the method comprises the steps: carrying out the interface data definition of a system data interface through a preset Swagger standard, and obtaining a data service interface; based on the interface rule of the data service interface, generating a corresponding interface definition document, and performing document format setting on the interface definition document to obtain an online interface document; based on a preset Gateway extension gateway, performing document visualization on the online interface document to obtain an interface service configuration gateway; according to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration; and carrying out service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface. According to the method, the technical problems that in the prior art, a digital data service management method is low in efficiency and poor in processing capacity, and micro-service online integration cannot be achieved are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of enterprise data management, and in particular to a data service management method, device and medium based on Swagger. Background Art

[0002] With the advent of the digital age, various digital service systems have emerged one after another, and the interface interactions between systems have become increasingly complex. Traditional interface management methods have many shortcomings, such as scattered interface documents, chaotic version management, and low interface testing efficiency, which seriously affect the development, testing and maintenance efficiency of digital services.

[0003] As a widely used API document generation tool, Swagger can automatically generate, update and display RESTful-style Web service interface documents, greatly simplifying the writing and maintenance of interface documents. However, in the microservice architecture, due to the large number of services distributed on different nodes, using Swagger alone for interface management has the problems of low efficiency and poor processing power. Each microservice needs to configure Swagger independently, resulting in scattered interface documents, which is not conducive to centralized management and unified display. In addition, the existing data service management methods cannot solve the problem of online integration of microservices. Summary of the invention

[0004] The embodiments of the present application provide a Swagger-based data service management method, device, and medium, which solve the technical problems of low efficiency, poor processing capability, and inability to solve the online integration of microservices in the prior art digital data service management method.

[0005] In a first aspect, an embodiment of the present application provides a Swagger-based data service management method, characterized in that the method includes: defining the interface data of the system data interface through a preset Swagger specification to obtain a data service interface; generating a corresponding interface definition document based on the interface rules of the data service interface, and setting the document format of the interface definition document to obtain an online interface document; based on a preset Gateway extension gateway, visualizing the online interface document to obtain an interface service configuration gateway; according to the interface service configuration gateway and the online interface document, obtaining an online service interface pool through interface parameter configuration; performing service integration on the data service interface in the online service interface pool to obtain a comprehensive service interface.

[0006] In an embodiment of the present application, the system data interface is defined through the preset Swagger specification to obtain a data service interface, specifically including: constructing a first data service interface based on the Swagger specification; constructing interface configuration items for the first data service interface to obtain a second data service interface; wherein the interface configuration items include: interface path, request method, interface parameters, and corresponding conditions; configuring the interface configuration items for the second data service interface to obtain a data service interface.

[0007] In an embodiment of the present application, a corresponding interface definition document is generated based on the interface rules of the data service interface, specifically including: parsing the interface rules of the data service interface to determine the interface document generation parameters; the interface document generation parameters include: interface path parameters, request method parameters, interface parameters, and corresponding condition parameters; based on the interface document generation parameters, the interface definition document is generated through the Swagger interface document to obtain.

[0008] In an embodiment of the present application, based on a preset Gateway extension gateway, the online interface document is visualized to obtain an interface service configuration gateway, specifically including: extending the gateway configuration of the preset basic Gateway gateway to determine the visualized Gateway gateway; based on the visualized Gateway gateway, intercepting the service request of the online interface document to obtain a service interface access entry; updating the service interface access entry to the visualized Gateway gateway to obtain an interface service configuration gateway.

[0009] In an embodiment of the present application, an online service interface pool is obtained through interface parameter configuration according to the interface service configuration gateway and the online interface document, specifically including: matching the online interface document through the interface service configuration gateway to determine the interface scanning strategy; based on the interface scanning strategy, scanning the registered interface of the preset service bus to obtain the online service interface pool.

[0010] In an embodiment of the present application, service integration is performed on the data service interfaces in the online service interface pool to obtain a comprehensive service interface, specifically including: based on the online service interface pool, determining the service integration demand data through business demand configuration; matching the corresponding data service interface according to the service integration demand data to obtain an integrated data interface group; performing an integration parameter adaptability query on the integrated data interface group to determine the integration judgment result of the integrated data interface group; when the integration judgment result is that it can be integrated, performing interface integration on the integrated data interface group to obtain a comprehensive service interface.

[0011] In an embodiment of the present application, after scanning the registered interface of the preset service bus based on the interface scanning strategy to obtain the online service interface pool, the method also includes: selecting an interface from the online service interface pool, and configuring the service requirements for the data service interface selected by the interface to obtain data service interface update parameters; updating the data service interface update parameters to the data service interface to obtain a data service interface update document.

[0012] In an embodiment of the present application, after performing service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface, the method further includes: performing service status monitoring on the preset data service management status based on the comprehensive service interface and the interface service configuration gateway; wherein the service status monitoring includes: load monitoring, authority monitoring, log management, traffic monitoring, and anomaly monitoring; updating the data service management status based on the service status monitoring, and updating the management policy of the data service management based on the updated data service management status.

[0013] In the second aspect, an embodiment of the present application also provides a Swagger-based data service management device, characterized in that the device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: define the interface data of the system data interface through a preset Swagger specification to obtain a data service interface; generate a corresponding interface definition document based on the interface rules of the data service interface, and set the document format of the interface definition document to obtain an online interface document; based on the preset Gateway extension gateway, visualize the online interface document to obtain an interface service configuration gateway; according to the interface service configuration gateway and the online interface document, obtain an online service interface pool through interface parameter configuration; perform service integration on the data service interface in the online service interface pool to obtain a comprehensive service interface.

[0014] In the third aspect, the embodiment of the present application also provides a non-volatile computer storage medium for data service management based on Swagger, storing computer executable instructions, characterized in that the computer executable instructions are set to: define the interface data of the system data interface through the preset Swagger specification to obtain the data service interface; based on the interface rules of the data service interface, generate the corresponding interface definition document, and set the document format of the interface definition document to obtain an online interface document; based on the preset Gateway extension gateway, visualize the online interface document to obtain an interface service configuration gateway; according to the interface service configuration gateway and the online interface document, obtain an online service interface pool through interface parameter configuration; perform service integration on the data service interface in the online service interface pool to obtain a comprehensive service interface.

[0015] The embodiments of the present application provide a Swagger-based data service management method, device, and medium. Through online document visualization and service interface integration in an interface pool, the technical problems of low efficiency, poor processing capability, and inability to solve the online integration of microservices in the prior art digital data service management methods are solved, and online integration of service interfaces and online configuration of interface microservices are realized, thereby improving the efficiency and processing capability of digital data service management. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 A flow chart of a data service management method based on Swagger provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of the internal structure of a data service management device based on Swagger provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] The embodiments of the present application provide a Swagger-based data service management method, device, and medium. Through online document visualization and service interface integration in an interface pool, the technical problems of low efficiency, poor processing capability, and inability to solve the online integration of microservices in the prior art digital data service management methods are solved, and online integration of service interfaces and online configuration of interface microservices are realized, thereby improving the efficiency and processing capability of digital data service management.

[0021] The technical solution proposed in the embodiments of the present application is described in detail below with reference to the accompanying drawings.

[0022] Figure 1 A flow chart of a data service management method based on Swagger provided in the embodiment of this application. Figure 1 As shown, a data service management method based on Swagger provided in an embodiment of the present application specifically includes the following steps:

[0023] Step 101: Define the system data interface through the preset Swagger specification to obtain the data service interface.

[0024] Specifically, it includes: constructing a first data service interface based on the Swagger specification; constructing interface configuration items for the first data service interface to obtain a second data service interface; wherein the interface configuration items include: interface path, request method, interface parameters, and corresponding conditions; configuring the interface configuration items for the second data service interface to obtain a data service interface.

[0025] This application designs the Swagger specification and the system data interface to define the interface data, obtains the data service interface, realizes the automatic generation and online configuration of the data service interface, and improves the generation efficiency of the data service interface in service management.

[0026] In the examples of the present application, detailed explanation is given by the following Example 1.

[0027] Example 1: Swagger is an open source API specification and tool set that can be used to define, build, and document RESTful-style web services.

[0028] Swagger provides a unified way to describe and interact with service interfaces and can automatically generate interface documentation.

[0029] Data services, namely microservices, provide an API gateway technology that can centrally manage and control all service requests and provide a unified access portal.

[0030] Step 102: Generate a corresponding interface definition document based on the interface rules of the data service interface, and set the document format of the interface definition document to obtain an online interface document.

[0031] Specifically, it includes: parsing the interface rules of the data service interface to determine the interface document generation parameters; the interface document generation parameters include: interface path parameters, request method parameters, interface parameters, and corresponding condition parameters; based on the interface document generation parameters, the interface definition document is generated through the Swagger interface document.

[0032] This application generates a corresponding interface definition document based on the interface rules of the data service interface, and formats the interface definition document to obtain an online interface document, thereby realizing the online generation of the interface document and providing a data basis for the business interface configuration.

[0033] In the examples of the present application, detailed explanation is given by the following Example 2.

[0034] Example 2: Parse the interface rules of the data service interface, determine the interface document generation parameters, and use relevant tools and libraries to automatically generate the interface document according to the established Swagger specification.

[0035] These tools can parse the Swagger specification file and generate documents based on the information defined in the specification, including detailed descriptions of the interface path, request method, parameters, response, etc.

[0036] The generated documents can be presented in formats such as HTML and Markdown, making it easier for developers and users to review and understand the service interface.

[0037] Step 103: Based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway.

[0038] Specifically, it includes: extending the gateway configuration of the preset basic Gateway gateway and determining the visual Gateway gateway; based on the visual Gateway gateway, intercepting the service request of the online interface document and obtaining the service interface access entrance; updating the service interface access entrance to the visual Gateway gateway to obtain the interface service configuration gateway.

[0039] This application visualizes the online interface documents based on the preset Gateway extension gateway to obtain the interface service configuration gateway, thereby realizing the visualization and online configuration of the interface service configuration and improving the efficiency of the interface service configuration.

[0040] In the examples of the present application, this is explained in detail through the following Example 3.

[0041] Example 3: Use Gateway technology to manage and control access to data services. Gateway acts as an intermediate layer, intercepting all service requests and providing a unified access portal.

[0042] The Gateway can verify the legitimacy of the request, perform identity authentication and authorization, and manage access rights. At the same time, the Gateway can also provide load balancing, caching, current limiting and other functions to enhance the reliability and performance of the service.

[0043] Since the inherent layer of the Gateway gateway cannot realize the visualization and online configuration of the interface service configuration on the user side, this application extends the Gateway gateway and realizes visualization by adding a gateway layer, namely, the interface service configuration gateway.

[0044] The interface service configures the gateway's client interface for a list of service requests.

[0045] Step 104: According to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration.

[0046] Specifically, it includes: matching the online interface document through the interface service configuration gateway to determine the interface scanning strategy; based on the interface scanning strategy, scanning the registered interface of the preset service bus to obtain the online service interface pool.

[0047] After scanning the registered interface of the preset service bus based on the interface scanning strategy to obtain the online service interface pool, the method also includes: selecting an interface from the online service interface pool, and configuring the service requirements of the data service interface selected by the interface to obtain data service interface update parameters; updating the data service interface update parameters to the data service interface to obtain a data service interface update document.

[0048] This application configures the gateway and online interface documents according to the interface service, and obtains the online service interface pool through interface parameter configuration, thereby realizing the online configuration of the interface microservices of the business service and improving the efficiency and processing capacity of digital data service management.

[0049] In the examples of the present application, a detailed explanation is given by the following Example 4.

[0050] Example 4: Through the interface service configuration gateway, match the online interface document, determine the interface scanning strategy, scan the registered interface of the preset service bus, and obtain the online service interface pool. By automatically scanning the data interface registered on the service bus, an online interface pool is formed, and a new data service can be formed according to the selected interface, and parameters and return values ​​are automatically filled to form a new service interface document.

[0051] Step 105: Perform service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface.

[0052] Specifically, it includes: based on the online service interface pool, determining the service integration demand data through business demand configuration; matching the corresponding data service interface according to the service integration demand data to obtain the integrated data interface group; querying the integration parameter adaptability of the integrated data interface group to determine the integration judgment result of the integrated data interface group; when the integration judgment result is that it can be integrated, integrating the integrated data interface group to obtain a comprehensive service interface.

[0053] After performing service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface, the method further includes: performing service status monitoring on the preset data service management status based on the comprehensive service interface and the interface service configuration gateway; wherein the service status monitoring includes: load monitoring, authority monitoring, log management, traffic monitoring, and anomaly monitoring; updating the data service management status according to the service status monitoring, and updating the management strategy of the data service management according to the updated data service management status.

[0054] This application integrates the data service interfaces in the online service interface pool to obtain a comprehensive service interface and monitors the service status of the preset data service management status, thereby realizing online integration of service interfaces and online configuration of interface microservices, and improving the efficiency and processing capabilities of digital data service management.

[0055] In the examples of the present application, this is explained in detail through the following Example 5.

[0056] Example 5: Based on the online service interface pool, the service integration demand data is determined through business demand configuration; according to the service integration demand data, the corresponding data service interface is matched to obtain the integrated data interface group; the integration parameter adaptability query is performed on the integrated data interface group to determine the integration judgment result of the integrated data interface group; when the integration judgment result is that it can be integrated, the integrated data interface group is integrated to obtain a comprehensive service interface.

[0057] Since microservices start with a single service during their actual execution, they need to be integrated to achieve multifunctional microservices during actual application.

[0058] Based on the parameters of the data service interface, determine whether the microservices that you want to integrate can be integrated through the internal parameters, parameter types, and parameter sources in the parameter mapping.

[0059] It should be noted that the types of Swagger interface documents in this application specifically include: standard data services, model results interfaces, enterprise portrait tags, and other interface modules.

[0060] The above is an embodiment of the method proposed in this application. Based on the same inventive concept, the embodiment of this application also provides a data service management device based on Swagger, whose structure is as follows Figure 2 shown.

[0061] Figure 2 A schematic diagram of the internal structure of a data service management device based on Swagger provided in an embodiment of the present application. Figure 2 As shown, the device includes:

[0062] at least one processor 201;

[0063] and, a memory 202 communicatively connected to the at least one processor;

[0064] The memory 202 stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor 201 to enable at least one processor 201 to:

[0065] Through the preset Swagger specification, the system data interface is defined for interface data to obtain the data service interface; based on the interface rules of the data service interface, the corresponding interface definition document is generated, and the document format of the interface definition document is set to obtain the online interface document; based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway; according to the interface service configuration gateway and the online interface document, the online service interface pool is obtained through interface parameter configuration; the data service interface in the online service interface pool is service integrated to obtain a comprehensive service interface.

[0066] Some embodiments of the present application provide corresponding Figure 1 A non-volatile computer storage medium for data service management based on Swagger stores computer executable instructions, wherein the computer executable instructions are set to:

[0067] Through the preset Swagger specification, the system data interface is defined for interface data to obtain the data service interface; based on the interface rules of the data service interface, the corresponding interface definition document is generated, and the document format of the interface definition document is set to obtain the online interface document; based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway; according to the interface service configuration gateway and the online interface document, the online service interface pool is obtained through interface parameter configuration; the data service interface in the online service interface pool is service integrated to obtain a comprehensive service interface.

[0068] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the IoT device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0069] The system and medium provided in the embodiments of the present application correspond one-to-one to the method. Therefore, the system and medium also have similar beneficial technical effects to the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the system and medium will not be repeated here.

[0070] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0071] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0072] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0073] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0074] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0075] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0076] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0077] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0078] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A data service management method based on Swagger, characterized in that: The method comprises: Through the preset Swagger specification, the system data interface is defined to obtain the data service interface; Based on the interface rules of the data service interface, a corresponding interface definition document is generated, and the interface definition document is formatted to obtain an online interface document; Based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway; According to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration; The data service interfaces in the online service interface pool are service integrated to obtain a comprehensive service interface.

2. According to a Swagger-based data service management method according to claim 1, it is characterized in that: Through the preset Swagger specification, the system data interface is defined as the interface data to obtain the data service interface, which includes: Based on the Swagger specification, construct a first data service interface; Constructing interface configuration items for the first data service interface to obtain a second data service interface; wherein the interface configuration items include: interface path, request method, interface parameters, and corresponding conditions; The second data service interface is configured with the interface configuration item to obtain the data service interface.

3. According to a Swagger-based data service management method according to claim 1, it is characterized in that: Based on the interface rules of the data service interface, a corresponding interface definition document is generated, specifically including: Performing interface rule analysis on the data service interface to determine interface document generation parameters; the interface document generation parameters include: interface path parameters, request method parameters, interface parameters, and corresponding condition parameters; Based on the interface document generation parameters, the interface definition document is obtained through Swagger interface document generation.

4. According to a Swagger-based data service management method according to claim 1, it is characterized in that: Based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway, which specifically includes: Expand the default gateway configuration and determine the visualization gateway. Based on the visual Gateway, intercept the service request of the online interface document to obtain the service interface access entry; The service interface access entry is updated to the visualization Gateway to obtain the interface service configuration gateway.

5. According to a Swagger-based data service management method according to claim 1, it is characterized in that: According to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration, specifically including: The interface service configuration gateway matches the online interface document to determine the interface scanning strategy; Based on the interface scanning strategy, the registered interface of the preset service bus is scanned to obtain the online service interface pool.

6. According to a Swagger-based data service management method according to claim 1, it is characterized in that: Performing service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface, specifically including: Based on the online service interface pool, service integration demand data is determined through business demand configuration; According to the service integration demand data, matching corresponding data service interfaces to obtain an integrated data interface group; Performing an integration parameter adaptability query on the integrated data interface group to determine an integration judgment result of the integrated data interface group; When the integration judgment result is that integration is possible, the integration data interface group is interface integrated to obtain the comprehensive service interface.

7. According to a Swagger-based data service management method according to claim 5, it is characterized in that: After scanning the registered interface of the preset service bus based on the interface scanning strategy to obtain the online service interface pool, the method further includes: Selecting an interface from the online service interface pool, and configuring service requirements for the data service interface selected from the interface to obtain data service interface update parameters; The data service interface update parameters are updated to the data service interface to obtain a data service interface update document.

8. According to a Swagger-based data service management method according to claim 1, it is characterized in that: After performing service integration on the data service interfaces in the online service interface pool to obtain a comprehensive service interface, the method further includes: Based on the comprehensive service interface and the interface service configuration gateway, the preset data service management status is monitored; wherein the service status monitoring includes: load monitoring, authority monitoring, log management, flow monitoring, and abnormality monitoring; The data service management state is updated according to the service state monitoring, and the management policy of the data service management is updated according to the updated data service management state.

9. A data service management device based on Swagger, characterized in that: The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: Through the preset Swagger specification, the system data interface is defined to obtain the data service interface; Based on the interface rules of the data service interface, a corresponding interface definition document is generated, and the interface definition document is formatted to obtain an online interface document; Based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway; According to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration; The data service interfaces in the online service interface pool are service integrated to obtain a comprehensive service interface.

10. A non-volatile computer storage medium for data service management based on Swagger, storing computer executable instructions, characterized in that: The computer executable instructions are configured to: Through the preset Swagger specification, the system data interface is defined to obtain the data service interface; Based on the interface rules of the data service interface, a corresponding interface definition document is generated, and the interface definition document is formatted to obtain an online interface document; Based on the preset Gateway extension gateway, the online interface document is visualized to obtain the interface service configuration gateway; According to the interface service configuration gateway and the online interface document, an online service interface pool is obtained through interface parameter configuration; The data service interfaces in the online service interface pool are service integrated to obtain a comprehensive service interface.

Citation Information

Patent Citations

  • Interface document generation method and system and storage medium

    CN113641355A

  • Interface document generation method and device, nonvolatile storage medium and electronic equipment

    CN116755768A

  • Interface version management method and device, electronic equipment and computer readable storage medium

    CN118363847A