CN115469915A - Method, device, equipment and medium for managing API (application program interface) based on tree structure classification - Google Patents

Method, device, equipment and medium for managing API (application program interface) based on tree structure classification Download PDF

Info

Publication number
CN115469915A
CN115469915A CN202210966129.2A CN202210966129A CN115469915A CN 115469915 A CN115469915 A CN 115469915A CN 202210966129 A CN202210966129 A CN 202210966129A CN 115469915 A CN115469915 A CN 115469915A
Authority
CN
China
Prior art keywords
api
classification
root node
child
current root
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210966129.2A
Other languages
Chinese (zh)
Inventor
李臻阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
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 Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202210966129.2A priority Critical patent/CN115469915A/en
Publication of CN115469915A publication Critical patent/CN115469915A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • G06F16/2246Trees, e.g. B+trees
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models

Abstract

The application relates to the technical field of computer software development, in particular to a method, a device, equipment and a medium for managing API (application program interface) based on tree structure classification, wherein the method comprises the following steps: determining a current root node and classification information corresponding to the current root node; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and API information of each child node of the plurality of child nodes, filling the classification information of the tree structure into a tree list, and displaying the filled tree list. Therefore, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in related technologies due to the fact that the management cost is continuously improved along with the increase of the API is solved, and the large-scale single application or micro-service application can be classified and managed.

Description

Method, device, equipment and medium for managing API (application program interface) based on tree structure classification
Technical Field
The present Application relates to the field of computer software development technologies, and in particular, to a method, an apparatus, a device, and a medium for managing an API (Application Programming Interface) based on a tree structure classification.
Background
With the development of computer software technology, more and more APIs are available in web applications, the management cost is continuously increased, and it is difficult to quickly understand the structure and composition of the whole application API.
In the related art, one open API management method, device and system and a computer readable storage medium aim to automatically acquire information of an open API and perform API management aiming at business personnel, and the other application program interface API management method and device aim to manage input and output of the API and facilitate a caller to acquire information
However, the related art does not classify and manage the API of the entire item.
Disclosure of Invention
The application provides a method, a device, a vehicle and a storage medium for classifying and managing Application Programming Interfaces (API) based on a tree structure, so that the problem that the structure and the composition of the API of the whole application are difficult to know quickly in the related technology along with the increase of the API is solved, and the method, the device, the vehicle and the storage medium are suitable for classifying and managing large-scale single application or micro-service application.
An embodiment of a first aspect of the present application provides a method for managing APIs based on tree structure classification, including the following steps: determining a current root node and classification information corresponding to the current root node; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; and based on a preset flattening processing method, obtaining tree-structured classification information according to the current root node, the classification information, the plurality of child nodes of the current root node and the API information of each child node of the plurality of child nodes, filling the tree-structured classification information into a tree list, and displaying the filled tree list.
According to the technical means, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in related technologies along with the increase of the API and the continuous improvement of the management cost can be solved, and the method and the device are suitable for classifying and managing large single-body applications or micro-service applications.
Optionally, in some embodiments, the obtaining, based on the preset flattening processing method, classification information of a tree structure according to the current root node, the classification information, the multiple child nodes of the current root node, and API information of each child node of the multiple child nodes includes: respectively arranging API information of the current root node, the classification information, the plurality of sub-nodes of the current root node and each sub-node of the plurality of sub-nodes in a reverse order according to target fields, and if the target fields are the same, then sequencing according to a dictionary sequence of a preset classification path to obtain the classification information of the tree structure; when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database main keys are assigned to the target fields, and when the child classifications corresponding to each child node are stored in the preset database, the target fields corresponding to each child node are the same.
According to the technical means, the application can manage the API through the API path, presents the API structure and composition of the large application and is convenient for related personnel to manage.
Optionally, in some embodiments, the API information includes at least one of an API creator, an API creation time, an API online time, an API name, an API running state, an API path, argument data, and argument data.
According to the technical means, the method and the device can be applied to large-scale single-body application or micro-service application, and management is convenient.
Optionally, in some embodiments, the classification information includes at least one of a classification name, a classification description, a parent classification path, and a child classification path.
According to the technical means, the method and the system can be used for developers in the development process, and are convenient to manage.
An embodiment of a second aspect of the present application provides an apparatus for managing APIs based on tree structure classification, including: the determining module is used for determining a current root node and classification information corresponding to the current root node; an obtaining module, configured to determine, based on the classification information, a plurality of child nodes of the current root node, and obtain Application Programming Interface (API) information of each child node of the plurality of child nodes; and the classification module is used for obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and the API information of each child node of the plurality of child nodes based on a preset flattening processing method, filling the classification information of the tree structure into a tree list, and displaying the filled tree list.
Optionally, in some embodiments, the classification module is specifically configured to: respectively arranging API information of the current root node, the classification information, the plurality of sub-nodes of the current root node and each sub-node of the plurality of sub-nodes in a reverse order according to target fields, and if the target fields are the same, then sequencing according to a dictionary sequence of a preset classification path to obtain the classification information of the tree structure; when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database main keys are assigned to the target fields, and when the child classifications corresponding to each child node are stored in the preset database, the target fields corresponding to each child node are the same.
Optionally, in some embodiments, the API information includes at least one of an API creator, an API creation time, an API online time, an API name, an API running state, an API path, argument data, and argument data.
Optionally, in some embodiments, the classification information includes at least one of a classification name, a classification description, a parent classification path, and a child classification path.
An embodiment of a third aspect of the present application provides a vehicle, comprising: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the method for managing the API based on the tree structure classification according to the embodiment.
A fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor, and is used to implement the method for managing APIs based on tree-structured classification as described in the foregoing embodiments.
Therefore, the classification information corresponding to the current root node and the current root node is determined; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and API information of each child node of the plurality of child nodes, filling the classification information of the tree structure into a tree list, and displaying the filled tree list. Therefore, the API is managed through the API path, the API structure and the composition of the large application are presented, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in the related technology along with the increase of the API and the continuous improvement of the management cost is solved, and the large single application or the micro-service application can be classified and managed.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart of a method for managing APIs based on tree structure classification according to an embodiment of the application;
FIG. 2 is a schematic diagram of a tree structure provided in accordance with one embodiment of the present application;
FIG. 3 is an E-R diagram of a data table structure provided in accordance with one embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for managing APIs based on tree structure classification according to an embodiment of the application;
fig. 5 is a schematic diagram of an electronic device provided according to an embodiment of the application.
Description of the reference numerals: 10-means for a tree structure based classification management API, 100-determining module, 200-obtaining module and 300-classifying module.
Detailed Description
Reference will now be made in detail to the embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Methods, apparatuses, devices, and media for managing APIs based on tree structure classification according to embodiments of the present application are described below with reference to the accompanying drawings. Aiming at the problems that the management cost is continuously improved along with the increase of the API and the structure and the composition of the API of the whole application are difficult to be quickly known in the related technology, the application provides a method for classifying and managing the API based on a tree structure, wherein in the method, the current root node and the classification information corresponding to the current root node are determined; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and API information of each child node of the plurality of child nodes, filling the classification information of the tree structure into a tree list, and displaying the filled tree list. Therefore, the API is managed through the API path, the API structure and the composition of the large application are presented, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in the related technology along with the increase of the API and the continuous improvement of the management cost is solved, and the large single application or the micro-service application can be classified and managed.
Specifically, fig. 1 is a schematic flowchart of a method for managing APIs based on tree structure classification according to an embodiment of the present application.
As shown in fig. 1, the method for managing APIs based on tree structure classification includes the following steps:
in step S101, a current root node and classification information corresponding to the current root node are determined.
Optionally, in some embodiments, the classification information includes at least one of a classification name, a classification description, a parent classification path, and a child classification path.
It should be understood by those skilled in the art that, as shown in fig. 2, the oval node in fig. 2 is the root node, the rectangular node is the classification node, and the cloud node is the API node. In the monolithic application, the path of the root node is the context of the project, the root node is a logical node and does not exist as a real classification, and all classifications are child nodes of the root classification. The child nodes of the root classification are used as real classifications, namely top classification of the real classifications, the top classification is generally used as division of a project module, the value of a path is the path of the module, more specific services are divided downwards by taking the top classification as a father classification, if no interface exists in a certain child classification temporarily, the classification is a leaf node, a specific API must appear as the leaf node, and the complete path of the API is formed by connecting the paths from the leaf node to all the nodes of the root node.
In micro-service application, the root node is/, the service name of each module is divided into two-level classification, the interface of the same context in each module is divided into the sub-classification of the module, and the specific API is used as a leaf node.
Specifically, in the embodiment of the present application, a root node is selected, and the current root node and the classification information of the current root node are determined.
In the actual execution process, the embodiment of the application can provide an operable page, and developers enter information through an interface: classification name, description, parent classification path, child classification path. And after selection, the classified path takes the father classified path as a prefix, and further inputs the classified path to be combined to confirm the final classified path. If there is no API under the classification, the classification is also used as a leaf node, and the data table structure stored in the embodiment of the present application may be as shown in fig. 3.
In step S102, a plurality of child nodes of the current root node are determined based on the classification information, and application programming interface API information of each of the plurality of child nodes is acquired.
Optionally, in some embodiments, the API information includes at least one of an API creator, an API creation time, an API on-line time, an API name, an API running state, an API path, in-parameter data, and out-parameter data.
Specifically, a root node is selected, the API classifications are used as child nodes of the root classification, and a leaf node is used for each API.
In an actual execution process, an operable interface can be provided, developers can input API information through the interface, the API is stored as a leaf node of a tree structure, a category to which the API belongs needs to be selected, a path of the category to which the API belongs is a prefix of an API path, in addition, API names, running states (online and offline), API paths, entries and entries are required to be input, and creators, creation time, and online time can be automatically generated.
The in-and out-references are stored in a separate data table and are identified by param _ type, 1 is in-reference, 2 is out-reference, and are associated to the id of the interface table through api _ id, as shown in fig. 3.
In step S103, based on a preset flattening processing method, classification information of a tree structure is obtained according to the current root node, the classification information, the plurality of child nodes of the current root node, and API information of each of the plurality of child nodes, and the classification information of the tree structure is filled into a tree list, and the filled tree list is displayed.
Optionally, in some embodiments, based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the multiple child nodes of the current root node, and API information of each child node of the multiple child nodes, includes: the method comprises the steps that the current root node, classification information, the multiple sub-nodes of the current root node and API information of each sub-node of the multiple sub-nodes are arranged in a reverse order according to target fields, and if the target fields are the same, the API information is sorted according to a dictionary sequence of a preset classification path to obtain the classification information of a tree structure; when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database main keys are assigned to target fields, and when the child classifications corresponding to each child node are stored in the preset database, the target fields corresponding to each child node are the same.
Specifically, in some embodiments, in order to conveniently display the API classification and make the API classification path readable, the tree structure is flattened, the classification of the tree structure is displayed in a list form, the secondary classification (sub-classification of the root node) is used as the root node of each branch, the secondary classification is arranged in reverse order according to the creation order of the secondary classification, then the interface paths of the secondary classification are sorted, a data table for storing classification information is shown in an API _ group table in fig. 3, and the flattening manner is described specifically below:
1. the child nodes of the root classification, namely the top-level classification, assign the automatically generated database primary key id to the field root _ id when storing the database;
2. the sub-classifications under the top classification are stored in a database root _ id which is the id of the top classification;
3. the classification displayed by the list is firstly arranged in the reverse order of the root _ id, and if the root _ id is the same, the classification is then arranged according to the dictionary order of the classification path.
According to the method for managing the API based on the tree structure classification, classification information corresponding to a current root node and the current root node is determined; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and API information of each child node of the plurality of child nodes, filling the classification information of the tree structure into a tree list, and displaying the filled tree list. Therefore, the API is managed through the API path, the API structure and the composition of the large application are presented, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in the related technology along with the increase of the API and the continuous improvement of the management cost is solved, and the large single application or the micro-service application can be classified and managed.
Next, an apparatus for managing APIs based on tree-structured classification proposed according to an embodiment of the present application is described with reference to the drawings.
Fig. 4 is a block diagram illustrating an apparatus for managing APIs based on tree structure classification according to an embodiment of the present application.
As shown in fig. 4, the apparatus 10 for managing API based on tree structure classification includes: a determination module 100, an acquisition module 200, and a classification module 300.
The determining module 100 is configured to determine a current root node and classification information corresponding to the current root node; an obtaining module 200, configured to determine, based on the classification information, a plurality of child nodes of the current root node, and obtain application programming interface API information of each child node of the plurality of child nodes; and a classification module 300, which is based on a preset flattening processing method, obtains classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and the API information of each child node of the plurality of child nodes, fills the classification information of the tree structure into the tree list, and displays the filled tree list.
Optionally, in some embodiments, the classification module 300 is specifically configured to: the method comprises the steps that API information of a current root node, classification information, a plurality of sub-nodes of the current root node and each sub-node of the plurality of sub-nodes are arranged in a reverse order according to target fields, and if the target fields are the same, the API information is sorted according to a dictionary sequence of a preset classification path to obtain classification information of a tree structure; when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database main keys are assigned to target fields, and when the child classifications corresponding to each child node are stored in the preset database, the target fields corresponding to each child node are the same.
Optionally, in some embodiments, the API information includes at least one of an API creator, an API creation time, an API on-line time, an API name, an API running state, an API path, in-argument data, and out-argument data.
Optionally, in some embodiments, the classification information includes at least one of a classification name, a classification description, a parent classification path, and a child classification path.
It should be noted that the foregoing explanation of the method embodiment for managing the API based on tree structure classification is also applicable to the apparatus for managing the API based on tree structure classification of this embodiment, and is not repeated here.
According to the device for managing the API based on the tree structure classification, which is provided by the embodiment of the application, classification information corresponding to a current root node and the current root node is determined; determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; based on a preset flattening processing method, obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and API information of each child node of the plurality of child nodes, filling the classification information of the tree structure into a tree list, and displaying the filled tree list. Therefore, the API is managed through the API path, the API structure and the composition of the large application are presented, the problem that the structure and the composition of the API of the whole application are difficult to quickly know in the related technology along with the increase of the API and the continuous improvement of the management cost is solved, and the large single application or the micro-service application can be classified and managed.
Fig. 5 is a schematic structural diagram of a vehicle according to an embodiment of the present application. The vehicle may include:
memory 501, processor 502, and computer programs stored on memory 501 and executable on processor 502.
The processor 502, when executing a program, implements the method of the tree structure based classification management API provided in the above embodiments.
Further, the vehicle further includes:
a communication interface 503 for communication between the memory 501 and the processor 502.
A memory 501 for storing computer programs operable on the processor 502.
The Memory 501 may include a high-speed RAM (Random Access Memory) Memory, and may also include a non-volatile Memory, such as at least one disk Memory.
If the memory 501, the processor 502 and the communication interface 503 are implemented independently, the communication interface 503, the memory 501 and the processor 502 may be connected to each other through a bus and perform communication with each other. The bus may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 501, the processor 502, and the communication interface 503 are integrated on one chip, the memory 501, the processor 502, and the communication interface 503 may complete mutual communication through an internal interface.
The processor 502 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present Application.
Embodiments of the present application also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for managing APIs based on tree-structured taxonomy.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or N embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "N" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more N executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a programmable gate array, a field programmable gate array, or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are exemplary and should not be construed as limiting the present application and that changes, modifications, substitutions and alterations in the above embodiments may be made by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method for managing API based on tree structure classification is characterized by comprising the following steps:
determining a current root node and classification information corresponding to the current root node;
determining a plurality of child nodes of the current root node based on the classification information, and acquiring Application Programming Interface (API) information of each child node of the plurality of child nodes; and
based on a preset flattening processing method, obtaining tree-structured classification information according to the current root node, the classification information, the plurality of child nodes of the current root node and the API information of each child node of the plurality of child nodes, filling the tree-structured classification information into a tree list, and displaying the filled tree list.
2. The method according to claim 1, wherein the deriving classification information of a tree structure according to the current root node, the classification information, API information of a plurality of child nodes of the current root node and each child node of the plurality of child nodes based on a preset flattening processing method includes:
respectively arranging API information of the current root node, the classification information, the plurality of sub-nodes of the current root node and each sub-node of the plurality of sub-nodes in a reverse order according to target fields, and if the target fields are the same, then sequencing according to a dictionary sequence of a preset classification path to obtain the classification information of the tree structure;
when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database primary keys are assigned to the target fields, and when the child classes corresponding to the child nodes are stored in the preset database, the child classes corresponding to the child nodes are the same as the target fields corresponding to the child nodes.
3. The method of claim 1, wherein the API information comprises at least one of API creator, API creation time, API on-line time, API name, API running state, API path, in-call data, and out-call data.
4. The method of claim 1, wherein the classification information comprises at least one of a classification name, a classification description, a parent classification path, and a child classification path.
5. An apparatus for managing APIs based on tree structured taxonomy, comprising:
the determining module is used for determining a current root node and classification information corresponding to the current root node;
an obtaining module, configured to determine, based on the classification information, a plurality of child nodes of the current root node, and obtain application programming interface API information of each child node of the plurality of child nodes; and
and the classification module is used for obtaining classification information of a tree structure according to the current root node, the classification information, the plurality of child nodes of the current root node and the API information of each child node of the plurality of child nodes based on a preset flattening processing method, filling the classification information of the tree structure into a tree list, and displaying the filled tree list.
6. The apparatus of claim 5, wherein the classification module is specifically configured to:
respectively arranging API information of the current root node, the classification information, the plurality of sub-nodes of the current root node and each sub-node of the plurality of sub-nodes in a reverse order according to target fields, and if the target fields are the same, then sequencing according to a dictionary sequence of a preset classification path to obtain the classification information of the tree structure;
when a plurality of child nodes of the current root node are stored in a preset database, automatically generated database main keys are assigned to the target fields, and when the child classifications corresponding to each child node are stored in the preset database, the target fields corresponding to each child node are the same.
7. The apparatus of claim 5, wherein the API information comprises at least one of API creator, API creation time, API on-line time, API name, API run state, API path, in-call data, and out-call data.
8. The apparatus of claim 5, wherein the classification information comprises at least one of a classification name, a classification description, a parent classification path, and a child classification path.
9. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to implement the method of the tree structure based classification management API of any one of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, the program being executable by a processor for implementing the method for a tree structure based classification management API as claimed in any one of claims 1-4.
CN202210966129.2A 2022-08-12 2022-08-12 Method, device, equipment and medium for managing API (application program interface) based on tree structure classification Pending CN115469915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210966129.2A CN115469915A (en) 2022-08-12 2022-08-12 Method, device, equipment and medium for managing API (application program interface) based on tree structure classification

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210966129.2A CN115469915A (en) 2022-08-12 2022-08-12 Method, device, equipment and medium for managing API (application program interface) based on tree structure classification

Publications (1)

Publication Number Publication Date
CN115469915A true CN115469915A (en) 2022-12-13

Family

ID=84366351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210966129.2A Pending CN115469915A (en) 2022-08-12 2022-08-12 Method, device, equipment and medium for managing API (application program interface) based on tree structure classification

Country Status (1)

Country Link
CN (1) CN115469915A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521119A (en) * 2023-06-30 2023-08-01 南京中卫信软件科技股份有限公司 Communication method of hardware equipment and browser in information system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116521119A (en) * 2023-06-30 2023-08-01 南京中卫信软件科技股份有限公司 Communication method of hardware equipment and browser in information system
CN116521119B (en) * 2023-06-30 2023-09-12 中卫信软件股份有限公司 Communication method of hardware equipment and browser in information system

Similar Documents

Publication Publication Date Title
CN110554958B (en) Graph database testing method, system, device and storage medium
US10650559B2 (en) Methods and systems for simplified graphical depictions of bipartite graphs
CN108932257A (en) The querying method and device of multi-dimensional data
CN111625694B (en) Multistage label processing method and device and computer equipment
CN106164795B (en) Optimization method for classified alarm
JP2007264768A (en) System development support program, apparatus and method
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
Schiemer et al. The structuralist thesis reconsidered
CN115469915A (en) Method, device, equipment and medium for managing API (application program interface) based on tree structure classification
CN114594927A (en) Low code development method, device, system, server and storage medium
CN114791846A (en) Method for realizing observability aiming at cloud native chaos engineering experiment
CN111967234A (en) Visual report generation method and device, terminal equipment and storage medium
CN113810234B (en) Method and device for processing micro-service link topology and readable storage medium
CN112836124A (en) Image data acquisition method and device, electronic equipment and storage medium
Mansour et al. Constant-time local computation algorithms
JP3277906B2 (en) Hierarchical structure creation method and apparatus
CN115146988A (en) Method, device, storage medium and equipment for executing service
CN114118944A (en) Forensic laboratory grading management method, terminal device and storage medium
CN112148513B (en) Method, device and storage medium for dumping single-point service data
Varadharajulu et al. Spatial data supply chains
CN114117192A (en) Object query method, device, server and storage medium
CN106528577B (en) Method and device for setting file to be cleaned
CN116644215B (en) Data updating method and system of cross-organization structure
CN111061640B (en) Software reliability test case screening method and system
CN116340886B (en) Method, device, computer and medium for constructing operation scene of intelligent driving system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination