CN110688142B - Method, device and storage medium for publishing application programming interface - Google Patents

Method, device and storage medium for publishing application programming interface Download PDF

Info

Publication number
CN110688142B
CN110688142B CN201910959557.0A CN201910959557A CN110688142B CN 110688142 B CN110688142 B CN 110688142B CN 201910959557 A CN201910959557 A CN 201910959557A CN 110688142 B CN110688142 B CN 110688142B
Authority
CN
China
Prior art keywords
input
code
parameter
script file
data type
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.)
Active
Application number
CN201910959557.0A
Other languages
Chinese (zh)
Other versions
CN110688142A (en
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.)
Transwarp Technology Shanghai Co Ltd
Original Assignee
Transwarp Technology Shanghai 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 Transwarp Technology Shanghai Co Ltd filed Critical Transwarp Technology Shanghai Co Ltd
Priority to CN201910959557.0A priority Critical patent/CN110688142B/en
Publication of CN110688142A publication Critical patent/CN110688142A/en
Application granted granted Critical
Publication of CN110688142B publication Critical patent/CN110688142B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The embodiment of the invention discloses a method, equipment and a storage medium for publishing an application programming interface. The method comprises the following steps: acquiring and analyzing at least one input unit code to obtain input data type information matched with the input unit code; acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter; generating a configuration file; configuring a container according to the configuration file, and storing the script file of the application program to be issued into a directory of the container; and uploading the container, and issuing an access address of the script file, wherein the access address is used for running the script file to realize the application programming interface service. The embodiment of the invention can avoid the dependency of function realization on the server, reduce the repeated work of API release and improve the efficiency of API release.

Description

Method, device and storage medium for publishing application programming interface
Technical Field
The embodiment of the invention relates to the field of data processing, in particular to a method, equipment and a storage medium for issuing an application programming interface.
Background
With the development of the internet, internet-based applications become more popular, and more enterprises provide people with services by deploying the services in clusters.
In practice, the process of providing a service actually refers to the process of executing code that has already been issued. At present, the process of putting the code into production generally adopts the following two ways: 1. the code is placed into the server and a connection to the server is made by a remote connection tool (ssh) command to cause the server to run the code. 2. The code is rewritten into an Application Programming Interface (API) that provides a service, and the code is executed by calling the API.
The first mode has high dependency on the server, and when the server is abnormal (such as shutdown, ssh connection failure, network connection abnormality, and the like), the application program providing the service cannot continue to operate normally; meanwhile, program codes need to be copied and updated regularly, the range involved in updating is large, and the maintenance difficulty is large; problems occurring when the server runs the program codes are generally checked through the log files and cannot be fed back in time; when the program code is configured in other servers, the operating environment of the aforementioned server needs to be copied to ensure that the program code operates normally, and even under different environments, the configuration files are different, which results in high migration cost.
The second way may generate a large amount of repetitive work in the process of generating different APIs, for example, for each script file, the data type of the input parameter needs to be re-determined, and the API service is deployed according to the input data type and other description information, these steps are usually performed manually, and it is necessary to consider the irresistible error rate caused by manual work and the corresponding high labor cost of extra workload caused by positioning and repairing the error; in the code updating process, manual synchronous modification needs to be performed on the description document, the data file and other associated files (such as a file containing the code or a file calling the code) and the like of the API, so that the modification workload is large, the efficiency is low, and the error rate is high.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a storage medium for publishing an application programming interface, which can avoid dependency of function implementation on a server, reduce repeated deployment of API publishing, and improve API publishing efficiency.
In a first aspect, an embodiment of the present invention provides an application programming interface publishing method, including:
acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code;
acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter;
generating a configuration file according to the obtained input data type information and the obtained output data type information;
configuring a container according to the configuration file, and storing the script file of the application program to be issued under a directory of the container so as to deploy application program programming interface service corresponding to the script file;
and uploading the container, and issuing an access address of the script file, wherein the access address is used for realizing the application programming interface service.
In a second aspect, an embodiment of the present invention provides an apparatus for publishing an application programming interface, including:
the input unit code analysis module is used for acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code;
the output data type information acquisition module is used for acquiring at least one output parameter and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter;
the configuration file generation module is used for generating a configuration file according to the obtained input data type information and the obtained output data type information;
the interface service deployment module is used for configuring a container according to the configuration file and storing the script file of the application program to be issued into a directory of the container so as to deploy the application program programming interface service corresponding to the script file;
and the interface service online module is used for online the container and issuing an access address of the script file, wherein the access address is used for operating the script file to realize the application programming interface service.
In a third aspect, an embodiment of the present invention further provides an apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for publishing the application programming interface according to any one of the embodiments of the present invention when executing the computer program.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for publishing an application programming interface according to any one of the embodiments of the present invention.
The embodiment of the invention carries out analysis on the input parameters and the output parameters in the script file developed based on the Jupyter Notebook tool through the Jupyter nbrevert to obtain the corresponding input data type information and the output data type information, automatically generates the configuration file, configures the container according to the configuration file, deploys the script file and the dependent file thereof into the container to realize the release of the API, replaces the numerical value of the input parameters with the input content of a user through marking the input parameters in the script file, runs the script file after the Jupyter Notebook tool is replaced to realize the input based on the user and run the program code encapsulated by the API so as to realize the API service, completes the process of releasing the file developed by the Jupyter Notebook tool which only provides the program code development function into the API, and considers the optimization of the API development process and the improvement of the API release efficiency.
Drawings
FIG. 1a is a flowchart of a method for publishing an application programming interface according to a first embodiment of the present invention;
FIG. 1b is a schematic diagram of an interface for deploying a script file according to one embodiment of the invention;
FIG. 1c is a schematic diagram of an interface for testing an API according to one embodiment of the present invention;
FIG. 1d is a flowchart of a method for publishing an API according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for publishing an application programming interface according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an apparatus for issuing application programming interfaces according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
For the understanding of the solution, the publishing process of the application programming interface in the prior art is briefly described first.
And editing the program code of the application program to be issued by the user through a programming tool to form a script file. Writing a configuration file of an application programming interface by a user, wherein the configuration file comprises: the name of the input parameter, the data type of the input parameter, the description content of the input parameter, the name of the output parameter, the data type of the output parameter and the description content of the output parameter. And respectively copying the script file and the configuration file under a preset directory of a platform system by a user to complete deployment operation, wherein the platform system is an open public cloud platform and allows the user to run an application program on the platform system. The platform system configures relevant information, such as running environment configuration, resource allocation and the like, for the application program to be issued based on the configuration file, and maps one route to the application program to be issued so as to realize that the application program to be issued accesses through a network by using an access address, namely, API issuing is realized. Meanwhile, the platform system publishes the description information of the application program to be published so that other users can know the function, parameter information, other information and the like of the application program to be published. At this time, other users may call the application to be published in the platform system based on the description information of the application to be published.
Also for the sake of easy understanding, technical terms in the embodiments of the present invention are preferably explained:
the application to be issued is actually an application executed by the issued AP I at the time of call.
The input unit code may refer to a code including input parameters for extracting names of the input parameters therefrom and determining data types of the input parameters.
The input parameters may refer to parameters included in the program code as input to the API.
The code for determining the input parameter from the program code of the input parameter selection instruction may refer to an instruction input by the user.
A script file may refer to a file that stores program code and related information, such as a json format file.
The input parameter tag is used to identify that a certain segment code contains an input parameter and to determine the segment code as an input unit code.
The data type can refer to a data type in a programming language, and the data type analysis module is used for analyzing the input unit code.
The output parameters may be parameters contained in the program code that are output as an API.
The configuration file is used for the server to configure relevant information for the deployed application program, such as running environment configuration and resource allocation, and a route is mapped to the application program to be issued, so that the application program to be issued can access through a network by using an access address.
A container may refer to a lightweight, portable, self-contained software package that specifically contains everything needed to run itself: program code of the application program, environment, system tool, system library, configuration file, etc. required for running.
The parameter code template is used for displaying the input data type information to a user and enabling the user to assign the correct type of numerical value to each input parameter.
The fill location is used for the user to fill in the value assigned to the input parameter.
The access address may refer to a storage address of a script file of the application to be issued.
The test instruction is used for taking the numerical value input by the user aiming at the input parameter as the input of the API and running the script file pointed by the API.
The replacement position may refer to a position in the target input unit code where the input parameter is located.
Example one
Fig. 1a is a flowchart of an application programming interface publishing method in one embodiment of the present invention, where this embodiment is applicable to a case where a program code input by a user is deployed as an application programming interface and published, and the method may be executed by an application programming interface publishing apparatus provided in this embodiment of the present invention, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated into an electronic device, for example, a computer device. As shown in fig. 1a, the method of this embodiment specifically includes:
step 110, acquiring at least one input unit code labeled for a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code.
The application program to be issued is actually an application program executed by the issued AP I when called. The input unit code may refer to a code including input parameters for extracting names of the input parameters therefrom and determining data types of the input parameters. The input unit code is actually a code labeled in the program code according to the user input. The input parameter may refer to a parameter included in the program code and input as an API. The application to be issued includes an input unit code and a plurality of pre-unit codes before the input unit code.
Optionally, the obtaining at least one input unit code labeled for a program code in an application program to be released includes: receiving an input parameter selection instruction; adding an input parameter label at least one position matched with the input parameter selection instruction in the script file, wherein the input parameter label is used for marking an input unit code in a program code; and respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
Specifically, the code used by the input parameter selection instruction to determine the input parameter from the program code may be an instruction input by the user. A script file may refer to a file that stores program code and related information, such as a json format file. The position in the script file, which is matched with the input parameter selection instruction, may be a position to which tag information may be added, where the tag information is used to describe a function of the code and label the code for subsequent invocation, and the like. The input parameter tag is used to identify that a certain segment code contains an input parameter and to determine the segment code as an input unit code. Generally, a script file includes fields for storing tag information, such as a metadata (metadata) field, and tag information, where the tag information may be inserted into the metadata field according to an input parameter selection instruction: parameter tag information for marking the position of the selected input unit code, i.e., the position of the input parameter, in the program code. In addition, the input of the API can be determined by analyzing the tag in the subsequent on-line and execution of the API, namely the input of the API is successfully defined only through the input parameter selection instruction of the user, and the input process for defining the API is simplified.
The input of the API is defined by selecting the instruction based on the input parameters of the user, so that the operation of defining the input by the user is omitted, and the input efficiency of the API is improved.
The input unit code is analyzed, and at least one input parameter and the data type corresponding to each input parameter are actually determined from the input unit code. The input data type information may refer to information of the input parameter, and may specifically include a name of the input parameter and/or a data type of the input parameter.
Optionally, analyzing the input unit code to obtain input data type information matched with the input unit code, where the analyzing may include: analyzing the input unit code through a data type analyzing module, acquiring at least one input parameter included in the input unit code, and determining a data type corresponding to each input parameter; and taking the input parameters and the data types corresponding to the input parameters as the input data type information.
Specifically, the data type may refer to a data type in a programming language, and specifically may include at least one of the following: numeric type (e.g., integer), character type (e.g., char), construction type (e.g., array), pointer type, and null type, among others. The data type analysis module is used for analyzing the input unit code, exemplarily, the application program to be issued can be functionally developed through a jupyternotewood tool, and the data type analysis module can be a functional program developed based on the Jupyter notewood tool and is used for realizing analysis operation on the data type of the input parameter in the process of executing the input unit code, so as to determine the data type of the input parameter.
In addition, in a specific example, the data type parsing module is specifically configured to: acquiring at least one input parameter included by the input unit code, and determining a data type corresponding to the input parameter according to the numerical characteristic of the numerical value given by the input parameter and a preset data type comparison relation.
The input parameter name and the data type of the input parameter are determined by analyzing the input unit code through the data type analyzing module, the operation that a user manually inputs the input parameter name and the corresponding data type is omitted, the definition process of the input parameter name and the corresponding data type is simplified, the API publishing efficiency is improved, meanwhile, the data type is prevented from being manually determined, the data type analyzing accuracy is improved, and the labor cost is reduced.
Optionally, the analyzing the input unit code by the data type analyzing module includes: and operating the preposed codes associated with the input unit codes and the input unit codes through the data type analysis module to obtain an analysis result.
Specifically, the data type analyzing module may be a preconfigured functional program, and is configured to execute a plurality of front unit codes associated with the input unit codes and the input unit codes, and in a process of executing the codes, implement an analyzing function on the input unit codes to obtain input data type information matched with the input unit codes.
That is, the data type analysis module realizes the analysis of the input unit code by the instant operation of the input unit code.
The input unit codes are pre-executed by the data type analysis module, the analysis function is realized in the execution process, the error checking function and the analysis function are simultaneously operated, and the analysis speed is improved.
Specifically, the program code of the application to be issued may be edited by using a Jupyter Notebook web page programming tool. Specifically, after the editing is completed, the program code in the application program to be published may obtain the program code in the script file of the application program to be published through the jupyternoteebook tool, for example, the program code formed by the user directly writing in the jupyternoteebook, or the script file completed by the user writing through another programming tool, but the formed program code may be opened and edited through the jupyternoteebook tool.
Optionally, before obtaining the input unit code labeled for the program code in the application program to be released, the method further includes: receiving a program code input by the user, and generating a script file comprising the program code; or receiving the script file provided by the user and extracting the program code in the script file.
The method for releasing the application programming interface of the embodiment of the disclosure provides an edit page for code input for a user, and the user can directly input a program code to generate a corresponding script file; or the user may directly provide a pre-programmed script file.
The script file and the corresponding program code of the user are determined by configuring two modes, so that the flexibility of the input mode of the application program to be issued is improved.
And step 120, acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter.
The output parameter may be a parameter included in the program code and output as an API, specifically determined by a user selecting from at least one parameter included in the program code.
Specifically, after the program code is run, each parameter included in the program code has a corresponding result, the result corresponding to the output parameter is searched according to the name of the output parameter determined by the user, and the result is analyzed to determine the data type corresponding to the output parameter, so that the output parameter and the corresponding data type are used as the output data type information matched with the output parameter, and the API output is defined. Optionally, the result of the output parameter may be analyzed by the data type analyzing module to obtain the data type of the output parameter. In addition, the data type of the output parameter may not be analyzed, and thus, the embodiment of the present invention is not particularly limited.
In practice, the user may rename the name of the output parameter. For example, the output parameter is named a, may be renamed to "test", and the result returned to the user is changed from "a: xxxx" to "test: xxx".
Illustratively, the program code may be run through the Jupyter notewood module, and the data type of the output parameter may be obtained through the jupyterbcontvert module.
In a specific example, the storage structure of the script file is actually stored in a cell (cell), each cell can be executed separately, and a plurality of cells form the complete program code. The method comprises the following specific steps:
Cell:[
{
“cell_type”:“code”,
“metadata”:{},
“source”:[
“a=1”,
“b=0.1”
]
},
{
“cell_type”:“code”,
“metadata”:{},
“source”:[
“c=a+b”
]
}
],
it should be noted that the above codes are only examples, and are not complete codes.
Tag information can be added in { } behind the metadata field for marking input parameters, and in the subsequent operation process, which part is the input of the API can be determined according to the tag information. Meanwhile, any one unit can be set as the input of the API, namely, the input unit code.
FIG. 1b shows a schematic diagram of an interactive interface for a user to define API services and define output parameters, as shown in FIG. 1 b. As for the previous example, in the code detail area of the interactive interface, the code of one unit is displayed in one box according to the form of the corresponding box of the unit. The user can select the input unit code corresponding to the input parameter from the unit codes through a 'set API service input' option (the user actually inputs an input parameter selection instruction by clicking the option). Illustratively, the user sets the cell of (1) the box as an input cell code, and accordingly, the result of parsing the input cell code may be displayed in the input parameter setting area. In addition, the user may redefine the output parameter name at the set output field to define the output of the API.
Step 130, generating a configuration file according to the obtained input data type information and the obtained output data type information.
The obtained input data type information may include a plurality of input parameters and data types corresponding to the input parameters; the obtained output data type information may include a plurality of output parameters and data types corresponding to the output parameters. In fact, the user can select multiple input parameters as input and multiple output parameters as output of the API in the program code as required, and support the user to readjust the input parameter types.
The configuration file may also include description information of input parameters, description information of output parameters, and function description information of the API. Specifically, the input data type information and the output data type information may be respectively and correspondingly filled in the matched positions based on a preset template, so as to generate the configuration file.
It can be understood that, in the method for publishing the application programming interface provided by the embodiment of the present invention, the user only needs to provide the written program code and determine the name of the output parameter, and other operations are automatically performed by the computer device, and the other operations include at least one of the following: determination of configuration information, file storage, input and output definition of an interface and the like. Therefore, the automation degree of the release of the application programming interface is greatly increased, the labor cost is reduced, and the release efficiency of the application programming interface is improved.
Step 140, configuring a container according to the configuration file, and storing the script file of the application program to be issued in a directory of the container to deploy the application programming interface service corresponding to the script file.
Specifically, a container may refer to a lightweight, portable, self-contained software package, specifically containing all that is required to run itself: program code of the application program, environment, system tool, system library, configuration file, etc. required for running. The container may have applications contained therein that may function in the same manner anywhere. The created and tested container can run directly on any virtual machine, physical server, or public cloud host. The container can isolate the application program from the surrounding environment, such as a development environment and a test environment, so that the application program runs in an independent space, and particularly, resources, environments, networks, libraries and the like are isolated, and the dependence problem cannot occur. And one host can simultaneously run a plurality of containers which are independent of each other, so that the conflict between different software running on the same basic framework is reduced.
Storing the script file of the application program to be issued and the related dependence thereof in the directory of the container, namely deploying the application program to be issued into one container. Meanwhile, script files of other application programs to be issued are stored in directories of other containers, so that the other application programs to be issued are deployed in the other containers, isolation among the application programs to be issued is achieved, and the running environment and/or memory resources and the like required by the corresponding containers can be correspondingly configured for the application programs to be issued.
Configuring a container for implementing operation of the container, and the like, specifically may include at least one of the following: creating a container (such as the address of container deployment), configuring parameters for container operation (such as operation environment information and resource allocation information), and describing information of the API of the container deployment. In addition, other information of the container may also be configured, for example, other files on which the script file depends, such as other associated code files, databases, tables, and the like, and the embodiments of the present invention are not limited in particular.
Optionally, the configuration container includes: configuring a container by adopting a Docker technology; or the container may be configured using Kubernetes technology.
The Docker is an application container engine, and packages an execution file, a command and the like of an application program to form an image (image), and then deploys and runs the image on a host machine or a virtual machine; and the mirror image in the run state is called a "container". Kubernets is a container cluster management system, and kubernets can be used for managing a Docker cluster, and can also support other container types (such as rockets).
And 150, logging on the container, and issuing an access address of the script file, wherein the access address is used for operating the script file to realize the application programming interface service.
The online container actually refers to running the container, and the API can provide services when the container runs. The access address is used for pointing to the script file of the application program to be issued, and may refer to a storage address of the script file of the application program to be issued. And the operation of the script file pointed by the API interface can be realized by accessing the address, so that the API service is realized.
On the basis of the foregoing embodiment, optionally, after the container is online and the access address of the script file is issued, the method may further include: acquiring input parameters respectively matched with each input parameter tag and data types corresponding to the input parameters according to at least one input parameter tag included in the script file; filling at least one input parameter and a data type corresponding to the input parameter in a matched position in a preset parameter code template to generate and display an input parameter code, wherein a filling position for filling numerical values of the input parameter is reserved in the input parameter code; generating input contents of an application programming interface according to the numerical values input by a user at the filling positions of the input parameter codes; and when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
The parameter code template is used for displaying input data type information to a user and enabling the user to give a numerical value of a correct type to each input parameter. The parameter code template specifically includes an input parameter name, a data type of the input parameter, a filling position of the input parameter, and the like. The fill-in location is used for the user to fill in the numerical values assigned to the input parameters, wherein the content filled in at the fill-in location serves as the input to the API. The test instruction is used for taking the numerical value input by the user aiming at the input parameter as the input of the API and running the script file pointed by the API. The test instruction may refer to an instruction instructing the server to execute a script file pointed to by the API.
In a specific example, as in the previous example, the input parameters are: and a is equal to 1 and b is equal to 0.1, and accordingly, the data type of the input parameter a is integer type, and the data type of the input parameter b is floating point type. As shown in fig. 1c, the parameter code region displays input data type information to the user and provides the data type of the input parameter to the user through the "type" field. And meanwhile, a filling position for filling the numerical value of the input parameter is reserved behind the value field, and the user can add the numerical value corresponding to the input parameter at the filling position. And the user runs the script file corresponding to the API through the test option and displays the running result in the experiment result area.
After the API is released, the input data type information is displayed to a user, a filling position is provided for the user to input parameters, after the user sends a test instruction, a code/script file is executed, the code/script file is operated to the position of the input parameter modified by metadata, the real input parameters of the user grade are automatically transmitted, the assignment of the input parameters in the script file which is actually operated is updated, the output result of the API service is obtained and returned, the process that the user tests the function of the API according to the output result is realized, the visual test method of the API service is provided, the API service is conveniently tested by the user who releases the API service, new codes and new data cannot be generated, and redundant information is avoided.
Optionally, the calling the application programming interface according to the access address, and outputting an output result matched with the input content for display may include: acquiring the script file pointed by the access address, and determining target input unit codes respectively labeled by the input parameter labels from the script file; in each target input unit code, replacing the content at the replacement position matched with the input content, and running a script file after replacement; and acquiring an operation result, and displaying the operation result as an output result matched with the input content.
The replacement position may be a position where an input parameter in the target input unit code is located, and when the execution program is executed to the position, the input parameter in the original script file is updated, and a value of the input parameter is replaced with the current input content, so that a result obtained by running the updated script file is calculated based on the value of the current input parameter. By replacing the numerical value of the input parameter, the API obtains the service of the API based on the new input content of the user, obtains the output result and efficiently obtains the operation result of the current input content.
In this embodiment, Jupyter notewood is used as a development tool of a program code, and only results can be stored and displayed, and cannot be directly used for implementing API service.
In a specific example, as shown in fig. 1d, a specific process of publishing a script file developed by Jupyter notewood as Api and putting the script file into production and use may be:
and step 151, executing the notewood code through the Jupyter nbboot module to respectively analyze the data type of the input parameter and the data type of the output parameter.
The notewood code is actually program code developed by the Jupyter notewood tool.
And 152, storing the analyzed input data type information and output data type information into a database.
Wherein, step 151 and step 152 are the preparation operation steps for the API service online.
Step 153, labeling the input parameters in the notewood code, and generating a configuration file based on the input data type information and the output data type information to realize definition of API input.
Step 154, configure the container through the Docker technology, deploy the notewood code into the container, and start the container.
Wherein, step 153 and step 154 are implementation operation steps of the API service online.
And step 155, replacing the numerical value of the input parameter in the notewood code with the numerical value input by the user, and running the replaced notewood code.
Step 156, the run result is returned to the user as the API service result.
The input unit codes are determined through the input parameter tags, the numerical values in the input unit codes are replaced based on the input content of the user, the numerical values of the input parameters in the script file are updated to the numerical values input by the user, then the updated script file is operated to realize API service, and therefore the script file developed based on a tool only providing a code development function is published as the API service, the universality of a method for publishing the API service is improved, the popularization is facilitated, and meanwhile the expansibility of the method for publishing the API service is increased.
The embodiment of the invention determines the input data type information and the output data type information of the program code according to the input unit code marked in the program code and receives the output parameters, and generates the configuration file based on the input data type information and the output data type information, thereby reducing the repeated operation of compiling the configuration file to define the input and the output of the API in the process of manually releasing the API, simultaneously deploying the configuration file and the script file into the container, realizing the release of the API, reducing the migration cost of the program code, solving the problems of high migration cost of the program code providing service and high workload and labor cost for repeatedly releasing the API in the prior art, simplifying the manual operation in the process of releasing the API, improving the efficiency of releasing the API, reducing the labor cost, and simultaneously reducing the configuration difficulty of each parameter of the program code operation packaged by the API, the universality of the API service issuing method is improved.
Example two
Fig. 2 is a flowchart of a method for publishing an application programming interface according to a second embodiment of the present invention, which is applicable to publishing a script file developed by a Jupyter Notebook tool as an application scenario of an API service. As shown in fig. 2, the method of this embodiment specifically includes:
step 201, acquiring a program code in a script file of an application program to be issued through a Jupyter notebox module.
The Jupyter Notebook module, the application to be issued, the script file, the program code, the input parameter selection instruction, the input unit code, the input data type information, the output parameter, the output data type information, the configuration file, the container, the access address, and the like of this embodiment may refer to the description of the above embodiments.
Step 202, an input parameter selection instruction is received.
Wherein, the input parameter selection instruction is input by a user.
Step 203, adding an input parameter tag at least one position matched with the input parameter selecting instruction in the script file, wherein the input parameter tag is used for marking an input unit code in a program code.
And 204, respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
And step 205, analyzing each input unit code through a Jupyter nbcredit module to obtain input data type information matched with each input unit code.
And step 206, acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code through a Jupyter nbcredit module to obtain output data type information matched with the output parameter.
Wherein the output parameters are input by a user. In fact, the sequence of step 202 and step 206 is not sequential, i.e. the time sequence of receiving the input parameter selection instruction and inputting the output parameter is not limited. Thus, the order of steps 202-206 may be adjusted.
Step 207, generating a configuration file according to the obtained input data type information and the obtained output data type information.
And 208, configuring a container according to the configuration file, and storing the script file of the application program to be issued into a directory of the container so as to deploy the application programming interface service corresponding to the script file.
And 209, uploading the container, and issuing an access address of the script file, wherein the access address is used for operating the script file to realize the application programming interface service.
Step 210, according to at least one input parameter tag included in the script file, obtaining an input parameter respectively matched with each input parameter tag, and a data type corresponding to the input parameter.
Step 211, filling at least one input parameter and the data type corresponding to the input parameter in a matched position in a preset parameter code template, generating an input parameter code and displaying the input parameter code, wherein a filling position for filling the numerical value of the input parameter is reserved in the input parameter code.
Step 212, generating the input content of the application programming interface according to the numerical value input by the user at the filling position of the input parameter code.
And step 213, when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
The embodiment of the invention carries out analysis on the input parameters and the output parameters in the script file developed based on the Jupyter Notebook tool through the Jupyter nbrevert to obtain the corresponding input data type information and the output data type information, automatically generates the configuration file, configures the container according to the configuration file, deploys the script file into the container to realize the release of the API, replaces the numerical value of the input parameters with the input content of a user through marking the input parameters in the script file, runs the script file after the replacement by the Jupyter Notebook tool to realize the input based on the user, runs the program code packaged by the API to realize the API service, completes the process of releasing the file developed by the Jupyter Notebook tool which only provides the program code development function as the API, and considers the optimization of the API development process and the improvement of the API release efficiency.
EXAMPLE III
Fig. 3 is a schematic diagram of an apparatus for issuing an api in a third embodiment of the present invention. The third embodiment is a corresponding apparatus for implementing the method for distributing the application programming interface provided in the foregoing embodiments of the present invention, and the apparatus may be implemented in a software and/or hardware manner, and may generally integrate a computer device and the like.
Accordingly, the apparatus of the present embodiment may include:
the input unit code analysis module 310 is configured to acquire at least one input unit code labeled for a program code in an application program to be issued, and analyze the input unit code to obtain input data type information matched with the input unit code;
an output data type information obtaining module 320, configured to obtain at least one output parameter, and analyze a result corresponding to the output parameter extracted from an operation result of the program code to obtain output data type information matched with the output parameter;
a configuration file generating module 330, configured to generate a configuration file according to the obtained input data type information and the obtained output data type information;
the interface service deployment module 340 is configured to configure a container according to the configuration file, and store the script file of the application program to be issued into a directory of the container, so as to deploy an application programming interface service corresponding to the script file;
an interface service online module 350, configured to online the container and issue an access address of the script file, where the access address is used to run the script file to implement the application programming interface service.
The embodiment of the invention determines the input data type information and the output data type information of the program code according to the input unit code marked in the program code and receives the output parameters, and generates the configuration file based on the input data type information and the output data type information, thereby reducing the repeated operation of compiling the configuration file to define the input and the output of the API in the process of manually releasing the API, simultaneously deploying the configuration file and the script file into the container, realizing the release of the API, reducing the migration cost of the program code, solving the problems of high migration cost of the program code providing service and high workload and labor cost for repeatedly releasing the API in the prior art, simplifying the manual operation in the process of releasing the API, improving the efficiency of releasing the API, reducing the labor cost, and simultaneously reducing the configuration difficulty of each parameter of the program code operation packaged by the API, the universality of the API service issuing method is improved.
Further, the input unit code parsing module 310 is specifically configured to: analyzing the input unit code through a data type analyzing module, acquiring at least one input parameter included in the input unit code, and determining a data type corresponding to each input parameter; and taking the input parameters and the data types corresponding to the input parameters as the input data type information.
Further, the input unit code parsing module 310 is specifically configured to: receiving an input parameter selection instruction; adding an input parameter label at least one position matched with the input parameter selection instruction in the script file, wherein the input parameter label is used for marking an input unit code in a program code; and respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
Further, the apparatus is specifically configured to: acquiring input parameters respectively matched with each input parameter tag and data types corresponding to the input parameters according to at least one input parameter tag included in the script file; filling at least one input parameter and a data type corresponding to the input parameter in a matched position in a preset parameter code template to generate and display an input parameter code, wherein a filling position for filling numerical values of the input parameter is reserved in the input parameter code; generating input contents of an application programming interface according to the numerical values input by a user at the filling positions of the input parameter codes; and when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
Further, the apparatus is specifically configured to: acquiring the script file pointed by the access address, and determining target input unit codes respectively labeled by the input parameter labels from the script file; in each target input unit code, replacing the content at the replacement position matched with the input content, and running a script file after replacement; and acquiring an operation result, and displaying the operation result as an output result matched with the input content.
Further, the apparatus is specifically configured to: receiving the program codes input by the user through a Jupiter notebox module, and generating a script file comprising the program codes; or receiving the script file provided by the user through a Jupiter notebox module, and extracting the program code in the script file.
Further, the input unit code parsing module 310 is specifically configured to: and analyzing the input unit code through a Jupyter nbconvert module.
The publishing device of the application programming interface can execute the publishing method of the application programming interface provided by the embodiment of the invention, and has the corresponding functional modules and the beneficial effects of the executed publishing method of the application programming interface.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors 16 or processing units, a memory 28, and a bus 18 that couples various system components including the memory 28 and the processors 16. The computer device 12 may be a server or a client.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read-Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 20. As shown, Network adapter 20 communicates with other modules of computer device 12 via bus 18. it should be understood that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, Redundant processing units, external disk drive Arrays, (Redundant Arrays of Inesponsive Disks, RAID) systems, tape drives, data backup storage systems, and the like.
The processor 16 executes various functional applications and data processing by executing programs stored in the memory 28, for example, to perform the following operations:
acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code;
acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter;
generating a configuration file according to the obtained input data type information and the obtained output data type information;
configuring a container according to the configuration file, and storing the script file of the application program to be issued under a directory of the container so as to deploy application program programming interface service corresponding to the script file;
and uploading the container, and issuing an access address of the script file, wherein the access address is used for running the script file to realize the application programming interface service.
On the basis of the above embodiments, the processor 16 is configured to obtain the input data type information matching the input unit code by:
analyzing the input unit code through a data type analyzing module, acquiring at least one input parameter included in the input unit code, and determining a data type corresponding to each input parameter;
and taking the input parameters and the data types corresponding to the input parameters as the input data type information.
On the basis of the above embodiments, the processor 16 is configured to parse the input unit code by:
and operating the preposed unit code associated with the input unit code and the input unit code through the data type analysis module to obtain an analysis result.
On the basis of the above embodiments, the processor 16 is configured to obtain at least one input unit code labeled for a program code in an application to be published by:
receiving an input parameter selection instruction;
adding an input parameter label at least one position matched with the input parameter selection instruction in the script file, wherein the input parameter label is used for marking an input unit code in a program code;
and respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
On the basis of the above embodiments, the processor 16 is further configured to:
acquiring input parameters respectively matched with each input parameter tag and data types corresponding to the input parameters according to at least one input parameter tag included in the script file;
filling at least one input parameter and a data type corresponding to the input parameter in a matched position in a preset parameter code template to generate and display an input parameter code, wherein a filling position for filling numerical values of the input parameter is reserved in the input parameter code;
generating input contents of an application programming interface according to the numerical values input by a user at the filling positions of the input parameter codes;
and when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
On the basis of the above embodiments, the processor 16 is configured to call the application programming interface to output an output result matching the input content for display by:
acquiring the script file pointed by the access address, and determining target input unit codes respectively labeled by the input parameter labels from the script file;
in each target input unit code, replacing the content at the replacement position matched with the input content, and running a script file after replacement;
and acquiring an operation result, and displaying the operation result as an output result matched with the input content.
On the basis of the above embodiments, the processor 16 is further configured to:
receiving a program code input by the user, and generating a script file comprising the program code; or
And receiving the script file provided by the user and extracting the program code in the script file.
EXAMPLE five
An embodiment five of the present invention provides 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 issuing the application programming interface according to the embodiments of the present invention:
that is, the program when executed by the processor implements: acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code; acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter; generating a configuration file according to the obtained input data type information and the obtained output data type information; configuring a container according to the configuration file, and storing the script file of the application program to be issued under a directory of the container so as to deploy application program programming interface service corresponding to the script file; and uploading the container, and issuing an access address of the script file, wherein the access address is used for running the script file to realize the application programming interface service.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a LAN or a WAN, or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (15)

1. A method for publishing an application programming interface, comprising:
acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code;
acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter;
generating a configuration file according to the obtained input data type information and the obtained output data type information;
configuring a container according to the configuration file, and storing the script file of the application program to be issued under a directory of the container so as to deploy application program programming interface service corresponding to the script file;
and uploading the container, and issuing an access address of the script file, wherein the access address is used for running the script file to realize the application programming interface service.
2. The method of claim 1, wherein the parsing the input unit code to obtain input data type information matching the input unit code comprises:
analyzing the input unit code through a data type analyzing module, acquiring at least one input parameter included in the input unit code, and determining a data type corresponding to each input parameter;
and taking the input parameters and the data types corresponding to the input parameters as the input data type information.
3. The method of claim 2, wherein parsing the input unit code with a data type parsing module comprises:
and operating the preposed unit code associated with the input unit code and the input unit code through the data type analysis module to obtain an analysis result.
4. The method of claim 1, wherein obtaining at least one input unit code labeled for program code in an application to be published comprises:
receiving an input parameter selection instruction;
adding an input parameter label at least one position matched with the input parameter selection instruction in the script file, wherein the input parameter label is used for marking an input unit code in a program code;
and respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
5. The method of claim 4, wherein after uploading the container and issuing the access address of the script file, further comprising:
acquiring input parameters respectively matched with each input parameter tag and data types corresponding to the input parameters according to at least one input parameter tag included in the script file;
filling at least one input parameter and a data type corresponding to the input parameter in a matched position in a preset parameter code template to generate and display an input parameter code, wherein a filling position for filling numerical values of the input parameter is reserved in the input parameter code;
generating input contents of an application programming interface according to the numerical values input by a user at the filling positions of the input parameter codes;
and when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
6. The method of claim 5, wherein said calling the application programming interface to output the output result matching the input content for display according to the access address comprises:
acquiring the script file pointed by the access address, and determining target input unit codes respectively labeled by the input parameter labels from the script file;
in each target input unit code, replacing the content at the replacement position matched with the input content, and running a script file after replacement;
and acquiring an operation result, and displaying the operation result as an output result matched with the input content.
7. The method of claim 1, prior to obtaining input unit code labeled for program code in an application to be published, further comprising:
receiving a program code input by a user, and generating a script file comprising the program code; or
And receiving the script file provided by the user and extracting the program code in the script file.
8. A computer device comprising a processor and a memory, the memory to store instructions that, when executed, cause the processor to:
acquiring at least one input unit code labeled aiming at a program code in an application program to be issued, and analyzing the input unit code to obtain input data type information matched with the input unit code;
acquiring at least one output parameter, and analyzing a result corresponding to the output parameter extracted from the operation result of the program code to obtain output data type information matched with the output parameter;
generating a configuration file according to the obtained input data type information and the obtained output data type information;
configuring a container according to the configuration file, and storing the script file of the application program to be issued under a directory of the container so as to deploy application program programming interface service corresponding to the script file;
and uploading the container, and issuing an access address of the script file, wherein the access address is used for running the script file to realize the application programming interface service.
9. The computer device of claim 8, wherein the processor is configured to obtain the input data type information matching the input unit code by:
analyzing the input unit code through a data type analyzing module, acquiring at least one input parameter included in the input unit code, and determining a data type corresponding to each input parameter;
and taking the input parameters and the data types corresponding to the input parameters as the input data type information.
10. The computer device of claim 9, wherein the processor is configured to parse the input unit code by:
and operating the preposed unit code associated with the input unit code and the input unit code through the data type analysis module to obtain an analysis result.
11. The computer device of claim 8, wherein the processor is configured to obtain at least one input unit code labeled for program code in an application to be published by:
receiving an input parameter selection instruction;
adding an input parameter label at least one position matched with the input parameter selection instruction in the script file, wherein the input parameter label is used for marking an input unit code in a program code;
and respectively extracting the code labeled by each input parameter label from the script file as an input unit code.
12. The computer device of claim 11, wherein the processor is further configured to:
acquiring input parameters respectively matched with each input parameter tag and data types corresponding to the input parameters according to at least one input parameter tag included in the script file;
filling at least one input parameter and a data type corresponding to the input parameter in a matched position in a preset parameter code template to generate and display an input parameter code, wherein a filling position for filling numerical values of the input parameter is reserved in the input parameter code;
generating input contents of an application programming interface according to the numerical values input by a user at the filling positions of the input parameter codes;
and when a test instruction is received, calling the application programming interface according to the access address, and outputting an output result matched with the input content for display.
13. The computer device of claim 12, wherein the processor is configured to invoke the application programming interface to output the output matching the input content for display by:
acquiring the script file pointed by the access address, and determining target input unit codes respectively labeled by the input parameter labels from the script file;
in each target input unit code, replacing the content at the replacement position matched with the input content, and running a script file after replacement;
and acquiring an operation result, and displaying the operation result as an output result matched with the input content.
14. The computer device of claim 8, wherein the processor is further configured to:
receiving a program code input by a user, and generating a script file comprising the program code; or
And receiving the script file provided by the user and extracting the program code in the script file.
15. A storage medium for storing instructions for performing the method of issuing an application programming interface according to any one of claims 1 to 7.
CN201910959557.0A 2019-10-10 2019-10-10 Method, device and storage medium for publishing application programming interface Active CN110688142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910959557.0A CN110688142B (en) 2019-10-10 2019-10-10 Method, device and storage medium for publishing application programming interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910959557.0A CN110688142B (en) 2019-10-10 2019-10-10 Method, device and storage medium for publishing application programming interface

Publications (2)

Publication Number Publication Date
CN110688142A CN110688142A (en) 2020-01-14
CN110688142B true CN110688142B (en) 2020-07-07

Family

ID=69111851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910959557.0A Active CN110688142B (en) 2019-10-10 2019-10-10 Method, device and storage medium for publishing application programming interface

Country Status (1)

Country Link
CN (1) CN110688142B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117221385A (en) * 2020-02-14 2023-12-12 瑞典爱立信有限公司 Method, network entity and medium for service API release
CN113407229A (en) * 2020-03-17 2021-09-17 百度在线网络技术(北京)有限公司 Method and device for generating offline script
CN111427576B (en) * 2020-03-27 2023-06-27 远光软件股份有限公司 Method, device, storage medium and terminal for configuring application program interface
CN113542322A (en) * 2020-04-15 2021-10-22 北京京东尚科信息技术有限公司 Installation method and device for active directory program, computing equipment and medium
CN112181644B (en) * 2020-09-21 2021-08-06 上海微亿智造科技有限公司 Method, system and device for cross-domain machine learning component Jupitter
CN111880839A (en) * 2020-09-28 2020-11-03 珠海大横琴科技发展有限公司 API processing method and device
CN112631694B (en) * 2020-12-11 2023-08-11 远光软件股份有限公司 API (application program interface) encapsulation calling method and system
CN112650500A (en) * 2020-12-31 2021-04-13 中国农业银行股份有限公司 Automatic compiling method and device adopting jupyter
CN113515925A (en) * 2021-08-06 2021-10-19 上海中通吉网络技术有限公司 Method for automatically generating dubbo service based on PMML (model and configuration)
CN114860390B (en) * 2022-07-07 2023-01-17 中航金网(北京)电子商务有限公司 Container data management method, device, program product, medium and electronic equipment
CN117667031A (en) * 2022-08-25 2024-03-08 中兴通讯股份有限公司 Parameter adaptation method and device between Application Programming Interfaces (APIs)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281152B (en) * 2011-06-08 2014-10-29 烽火通信科技股份有限公司 Distributed communication system, implementation method, marshalling and unmarshalling method of remote API (Application Program Interface)
CN102609264A (en) * 2012-02-14 2012-07-25 深圳市同洲视讯传媒有限公司 Method and device for generating calling codes by calling application programming interfaces
CN107133163A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 A kind of method and apparatus for verifying description class API

Also Published As

Publication number Publication date
CN110688142A (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN110688142B (en) Method, device and storage medium for publishing application programming interface
US8321856B2 (en) Supplying software updates synchronously
CN107066242B (en) Method and system for determining identification of software in software container
US8417798B2 (en) Deploying artifacts for packaged software application in cloud computing environment
US8527939B2 (en) GUI modeling of knowledge base in a modeling environment
US8352913B2 (en) Generating and resolving component names in an integrated development environment
US10885087B2 (en) Cognitive automation tool
US11741002B2 (en) Test automation systems and methods using logical identifiers
CN111680253A (en) Page application data packet generation method and device, computer equipment and storage medium
CN109614325B (en) Method and device for determining control attribute, electronic equipment and storage medium
CN112463256A (en) Method, system, electronic device and storage medium for determining configuration file
CN113448678A (en) Application information generation method, deployment method, device, system and storage medium
US10452371B2 (en) Automating enablement state inputs to workflows in z/OSMF
US9703848B2 (en) Caching linked queries for optimized compliance management
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
US11288170B1 (en) Log analysis debugging without running on real production environment
CN112435072A (en) Model creating method and device, electronic equipment and storage medium
CN112835568A (en) Project construction method and device
US11640281B2 (en) Tool for introspection in object-oriented source code
US11726778B2 (en) Translating clusters of a monolith application to microservices
US20190317877A1 (en) Application state monitoring
US10606729B2 (en) Estimating the number of coding styles by analyzing source code
CN114610327B (en) Automatic publishing and deploying method, device, medium and computer equipment
US10922106B2 (en) Systems and methods for providing globalization features in a service management application interface
CN108037949B (en) Installation package multi-channel packaging method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 200233 11-12 / F, building B, 88 Hongcao Road, Xuhui District, Shanghai

Patentee after: Star link information technology (Shanghai) Co.,Ltd.

Address before: 200233 11-12 / F, building B, 88 Hongcao Road, Xuhui District, Shanghai

Patentee before: TRANSWARP TECHNOLOGY (SHANGHAI) Co.,Ltd.