CN115934156A - API (application program interface) version automatic matching method, device, equipment and storage medium - Google Patents

API (application program interface) version automatic matching method, device, equipment and storage medium Download PDF

Info

Publication number
CN115934156A
CN115934156A CN202211679863.7A CN202211679863A CN115934156A CN 115934156 A CN115934156 A CN 115934156A CN 202211679863 A CN202211679863 A CN 202211679863A CN 115934156 A CN115934156 A CN 115934156A
Authority
CN
China
Prior art keywords
api
interface
updated
api interface
version
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
CN202211679863.7A
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.)
Huizhou Keda Te Zhixian Technology Co ltd
Original Assignee
Huizhou Keda Te Zhixian Technology 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 Huizhou Keda Te Zhixian Technology Co ltd filed Critical Huizhou Keda Te Zhixian Technology Co ltd
Priority to CN202211679863.7A priority Critical patent/CN115934156A/en
Publication of CN115934156A publication Critical patent/CN115934156A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention belongs to the technical field of software development and discloses an automatic matching method, device, equipment and storage medium for API (application program interface) interface versions. The method comprises the steps of acquiring the version number of an Application Programming Interface (API) to be used when the API is called; when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used; acquiring an updated API according to the updating information; when the version number of the updated API is consistent with the version number of the API to be used, the updated API is used as the matched API to be called, and the API required in program development is searched for the corresponding API meeting the development requirement to be updated.

Description

API (application program interface) version automatic matching method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of software development, in particular to an automatic matching method, device, equipment and storage medium for API (application program interface) interface versions.
Background
Global intelligence has become an inaudible wave, more and more intelligent devices are present, and simultaneously the high requirement requirements of the intelligent devices are reflected, the intelligent devices with systems are undoubtedly just needed, the Android systems are already mainstream systems of the intelligent devices, but the device layers of the Android systems on the market are numerous, and corresponding Android developers are also increased rapidly, so that problems are often encountered in the development process of the APP, for example, the jar package version in the system Framework is inconsistent with the jar package version in a development tool, so that an API interface which is not desired to be used is not used.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an automatic API (application program interface) version matching method, device, equipment and storage medium, and aims to solve the technical problem that in the prior art, matching of API versions is complicated during APP development.
In order to achieve the above object, the present invention provides an API version automatic matching method, where the API version automatic matching method includes:
when the application programming interface API is called, acquiring the version number of the application programming interface API to be used;
when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used;
acquiring an updated API according to the updating information;
and when the version number of the updated API interface is consistent with the version number of the API interface to be used, calling the updated API interface as the matched API interface.
Optionally, when the API interface to be used does not exist in the local application programming interface library, generating update information according to the version number of the API interface to be used, where the generating update information includes:
traversing a local application programming interface library according to the version number of the API interface to be used;
and when the version number of the API interface to be used is not traversed, generating updating information according to the version number of the API interface to be used.
Optionally, the obtaining the updated API interface according to the update information includes:
uploading the updating information to a cloud end, and receiving the updating information to obtain an updated API interface by the cloud end;
and storing the updated API interface into a local application programming interface library for updating the API interface.
Optionally, the uploading the update information to a cloud, and receiving an API interface that the cloud acquires an update according to the update information includes:
sending the updating information to a cloud end through an air interface, enabling the cloud end to search a corresponding API (application program interface) according to the updating information, packaging the corresponding API into a jar file, and generating an updated API;
and acquiring the updated API through the air interface, and storing the updated API into a local application programming interface library for API interface updating.
Optionally, after the storing the updated API interface in the local API library for API interface update, the method further includes:
comparing the updated API interface of the local application programming interface library with the version number of the API interface to be used;
and when the version number of the updated API is consistent with the version number of the API to be used, stopping updating the API to be used.
Optionally, the storing the updated API interface in a local application programming interface library for API interface update includes:
storing the updated API interface to a local application programming interface library;
or the like, or, alternatively,
and replacing the updated API interface with the corresponding prior version of the API interface.
Optionally, after obtaining the updated API interface according to the update information, the method further includes:
and when the version number of the updated API is inconsistent with the version number of the API to be used, sending an exception prompt and finishing automatic matching.
In addition, in order to achieve the above object, the present invention further provides an API version automatic matching device, including:
the version obtaining module is used for obtaining the version number of the application programming interface API to be used when the application programming interface API is called;
the version detection module is used for generating updating information according to the version number of the API interface to be used when the API interface to be used does not exist in the local application programming interface library;
the interface updating module is used for acquiring an updated API interface according to the updating information;
and the interface calling module is used for calling the updated API interface as the matched API interface when the version number of the updated API interface is consistent with the version number of the API interface to be used.
In addition, in order to achieve the above object, the present invention further provides an API version automatic matching device, where the API version automatic matching device includes: the system comprises a memory, a processor and an API interface version automatic matching program which is stored on the memory and can run on the processor, wherein the API interface version automatic matching program is configured to realize the steps of the API interface version automatic matching method.
In addition, to achieve the above object, the present invention further provides a storage medium, where an API version automatic matching program is stored, and when the API version automatic matching program is executed by a processor, the steps of the API version automatic matching method are implemented as described above.
The method comprises the steps of acquiring the version number of the application programming interface API to be used when the application programming interface API is called; when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used; acquiring an updated API according to the updating information; when the version number of the updated API is consistent with that of the API to be used, the updated API is used as a matched API to be called, and the API which correspondingly meets the development requirement is searched for to be updated according to the API required in APP development.
Drawings
Fig. 1 is a schematic structural diagram of an API interface version automatic matching device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of an API automatic matching method according to the present invention;
FIG. 3 is a flowchart illustrating automatic API interface matching according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the API version auto-matching method according to the present invention;
FIG. 5 is a flowchart illustrating API interface detection according to an embodiment of the method for automatically matching API interface versions of the present invention;
FIG. 6 is a flowchart illustrating a cloud update process of an API interface according to an embodiment of the API interface version automatic matching method of the present invention;
fig. 7 is a block diagram of an API interface version automatic matching apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an API interface version automatic matching device of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the API interface version automatic matching apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a definition of an API interface version auto-match device, and may include more or fewer components than shown, or some components combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and an API interface version automatic matching program.
In the API interface version automatic matching apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the API interface version automatic matching device of the present invention may be arranged in the API interface version automatic matching device, and the API interface version automatic matching device calls the API interface version automatic matching program stored in the memory 1005 through the processor 1001 and executes the API interface version automatic matching method provided by the embodiment of the present invention.
An embodiment of the present invention provides an API version automatic matching method, and referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of the API version automatic matching method according to the present invention.
In this embodiment, the method for automatically matching API interface versions includes the following steps:
step S10: and when the application programming interface API is called, acquiring the version number of the application programming interface API to be used.
It should be noted that the execution main body of this embodiment is an API interface version automatic matching device, where the API interface version automatic matching device has functions of data processing, data communication, program operation, and the like, and the API interface version automatic matching device may be an integrated controller, a control computer, and other devices with similar functions, which is not limited in this embodiment.
It should be noted that an Application Programming Interface (API) is a set of functions that provide a developer with specific functions, and can satisfy the implementation of a certain function by the developer without considering what the underlying code is. The version number of the application programming interface API refers to the version identification number of the application programming interface, and each application programming interface has its corresponding version number for each operating system, each software, and each application programming interface, and the version number enables a user to know the functions and facilities used.
In a specific implementation, referring to fig. 3, fig. 3 is a flowchart of automatically matching API interfaces. When a developer develops a program, in order to implement a specific function, but because the re-implementation of the function requires a great amount of work, in order to save development cost, a packaged application programming interface API is usually used to meet development requirements, when the developer calls an application programming interface API, the developer calls a system API, when the system API is called, the version number of the API method source is determined, the version number is searched in a local API library, whether the system API exists in the local programming interface library is determined, if the corresponding API is found, the system API is directly called, if the system API does not exist, the version number of the API interface to be used is obtained, the API interface in the local programming interface library is updated, when the update is successful, the developer stops the automatic matching of the API interface, and if the update fails, the developer sends an abnormal prompt and stops the automatic matching of the API version.
Step S20: and when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used.
It should be noted that the local API library refers to a storage space used for storing an application programming interface in a device for program development, where the application programming interface libraries may be in a storage medium of a development-side device or an external storage medium externally connected to the development-side device, and the update information refers to information related to the application programming interface required by the development side, such as a source of the API, a name of the API, a version number of the API, and the like, which is not limited in this embodiment.
In a specific implementation, when a development end needs an API to be used, the development end can obtain a version number of the API to be used, and search for a corresponding API in a local application programming interface library according to the version number of the API to be used, and if no API interface to be used exists in the local application programming interface library, can generate information including a source of the API to be used, a name of the API, a version number of the API, and the like according to the version number of the API to be used, and package the information to obtain update information.
Step S30: and acquiring an updated API according to the updating information.
It should be noted that the updated API refers to a newly added API or a newly replaced API in the local application programming interface library, where the newly added API or the newly replaced API is an API capable of satisfying the current program development end.
In the specific implementation, after the update information is generated, the target API interface information can be sent to the cloud server according to the information of the target API interface in the update information, after the cloud server receives the update information, the update information can be analyzed to obtain the target API interface information required by the development end, the cloud server finds the corresponding API interface according to the API interface information, packages the found corresponding API interface, sends the packaged API interface to the development end, updates the API interface of the local application programming interface library of the development end, if the update fails, the cloud server also sends the update failure information to the development end, and when the development end receives the update failure information sent by the cloud server, the development end makes an exception prompt.
Step S40: and when the version number of the updated API interface is consistent with the version number of the API interface to be used, calling the updated API interface as the matched API interface.
It should be noted that the API interface to be used refers to an API interface that needs to be used by the development end in the process of performing APP development, and it needs to detect whether the API interface in the local application programming interface library can meet the development requirement when performing program development, and it needs to compare the version number of the API interface in the local application programming interface library with the version number of the API interface to be used when detecting, and determine whether to call the updated API interface according to the comparison result.
In specific implementation, after a development end receives an API (application programming interface) sent by a cloud server and finishes updating a local application programming interface library, the development end calls the updated API, when calling, the version number of the updated API to be called needs to be detected, the version number of the updated API is firstly obtained, the version number of the updated API is compared with the version number of the API to be used, and when the version number of the updated API is consistent with the version number of the API to be used, the development end calls the updated API as a matched API.
In the embodiment, when the application programming interface API is called, the version number of the application programming interface API to be used is obtained; when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used; acquiring an updated API according to the updating information; when the version number of the updated API is consistent with that of the API to be used, the updated API is used as a matched API to be called, and the API which correspondingly meets the development requirement is searched for to be updated according to the API required in APP development.
Referring to fig. 4, fig. 4 is a flowchart illustrating an API interface version automatic matching method according to a second embodiment of the present invention.
Based on the first embodiment, in the step S20, the method for automatically matching API interface versions in this embodiment includes:
step S201: and traversing the local application programming interface library according to the version number of the API interface to be used.
Step S202: and when the version number of the API interface to be used is not traversed, generating updating information according to the version number of the API interface to be used.
In specific implementation, referring to fig. 5, fig. 5 is a flowchart of API interface detection, when a development end performs program development, an API interface that cooperates with code execution needs to be used, and since an API interface with a corresponding function needs to be used to implement a program function when the development end performs program development and compilation, when the development end needs to implement a corresponding function through an API interface, the development end can automatically identify an API interface to be called and a version number of an API to be used, and traverse the API interface in a local application programming interface library through the version number of the API to be used in the local application programming interface library. During the passing, the version number of each API interface in the local application programming interface library is required to be read, the API version number to be used is compared with the version number of each API interface in the local application programming interface library one by one,
in the comparison process, when the version number of the API interface to be used is not traversed through comparison detection, 5, exporting the API interface information to be used, and generating the API interface information to be used into updating information.
Further, in order to update the API interface, the method further includes:
uploading the updating information to a cloud end, and receiving the updating information to obtain an updated API interface by the cloud end;
and 0, storing the updated API interface into a local application programming interface library for API interface updating.
In specific implementation, the development end can send the update information to the cloud end, and when sending the update information, the update information can be sent in the form of the internet or in other ways. The information is sent to a development end
After the information is uploaded to the cloud end, the cloud end can process and analyze the updating information to obtain information such as API interface name, API interface source, API interface version number and the like contained in the updating 5 information, search an API interface to be used in a cloud end server according to API interface related information contained in the updating information, pack and send the API interface to be used to a local application programming interface library of the development end when the cloud end searches a corresponding API interface to be used according to the updating information, and package and send the API interface to be used to the local application programming interface library of the development end in the local application programming interface library
When the application programming library receives the API interface issued by the cloud, the local application programming library can add the API interface issued by the cloud 0 to the local application programming library or replace the API interface with unmatched version in the local application programming library.
Further, uploading the update information to a cloud, and receiving an API interface that the cloud acquires an update according to the update information, further includes:
sending the updating information to a cloud end through an air interface, enabling the cloud end to search a corresponding API (application program interface) according to the updating information 5, packaging the corresponding API into jar files, and generating an updated API;
and acquiring an updated API through the air interface, and storing the updated API into a local application programming interface library for updating the API.
It should be noted that the Air interface refers to an interface for data exchange between the development end and the cloud end by using an Over-the-Air Technology (OTA), and the Air download Technology may adopt a short message mode, a PUSH mode, and an online customization mode when downloading, and the specific download mode is determined according to an actual situation, which is not limited in this embodiment.
In specific implementation, referring to fig. 6, fig. 6 is a flowchart of updating the API interface cloud, and this embodiment will be described by taking an online customization manner as an example. The method comprises the steps that a development end generates updating information of an API interface to be used, meanwhile, the development end logs in an OTA server, when the development end is successfully connected with a cloud server, the development end can send the updating information to the cloud server through an air interface, the cloud server searches a corresponding API interface in the cloud according to the updating information, packs the obtained API interface, packs the obtained complete API interface into a jar file to obtain an updated API interface, and then sends the packed updated API interface which is a jar file to a local application programming interface library through the air interface, so that the development end receives the updated API interface from the cloud and updates the API interface in the local application programming interface library.
Further, after storing the updated API interface in the local API library for API interface update, the method further includes:
comparing the updated API interface of the local application programming interface library with the version number of the API interface to be used;
and when the version number of the updated API is consistent with the version number of the API to be used, stopping updating the API to be used.
In the specific implementation, when a development end receives an updated API transmitted from an air interface, the development end stores the updated API into a local application programming interface library, extracts an updated API file and a version number of the updated API file from a jar file, compares the version number of the updated API file with a version number of an API to be used by the development end, indicates that a version of the currently obtained updated API is wrong when the version number of the updated API is not consistent with the version number of the API to be used, generates a false signal, enables the development end to make an exception prompt according to error information and finishes automatic matching, and if a user needs to continue to match the API, the user can select whether to re-obtain the API to update the locally stored API according to the exception prompt, and generates a true signal when the version number of the updated API is consistent with the version number of the API to be used, which means that the API obtained through a cloud end is the API to be called API, and at this time, the updating of the API to be used can be stopped. And in the process of storing the updated API interface into a local application programming interface library for updating the API interface, judging the updated API interface, judging the difference or the connection between the updated API interface and the API interface of the local application programming interface library, if the two API interfaces are in the precedence relationship of versions, storing the updated API interface into the local application programming interface library according to whether the two API interfaces are simultaneously reserved or not selected by a user, if the two API interfaces are simultaneously reserved, and if the two API interfaces are stored for replacement, replacing the updated API interface with the corresponding API interface of the previous version.
According to the embodiment, the updating information is generated according to the API interface to be used, the local updating information is sent to the cloud server through the over-the-air downloading technology according to the updating information, the cloud server is enabled to match the API interface according to the updating information, the matched API interface is packaged into a jar file to be sent to the development end, and the jar file is stored in the local application programming interface library, so that the development end calls the system API interface, and the purpose of automatically matching the API interface version is achieved.
In addition, an embodiment of the present invention further provides a storage medium, where an API version automatic matching program is stored on the storage medium, and the API version automatic matching program, when executed by a processor, implements the steps of the API version automatic matching method described above.
Referring to fig. 7, fig. 7 is a block diagram illustrating a first embodiment of an API interface version automatic matching apparatus according to the present invention.
As shown in fig. 7, the API interface version automatic matching apparatus provided in the embodiment of the present invention includes:
the version obtaining module 10 is configured to obtain a version number of an application programming interface API to be used when the application programming interface API is called;
the version detection module 20 is configured to generate update information according to a version number of an API interface to be used when the API interface to be used does not exist in the local application programming interface library;
an interface update module 30, configured to obtain an updated API interface according to the update information;
and the interface calling module 40 is configured to call the updated API interface as a matched API interface when the version number of the updated API interface is consistent with the version number of the API interface to be used.
In the embodiment, when the application programming interface API is called, the version number of the application programming interface API to be used is obtained; when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used; acquiring an updated API according to the updating information; when the version number of the updated API is consistent with that of the API to be used, the updated API is used as a matched API to be called, and the API which correspondingly meets the development requirement is searched for to be updated according to the API required in APP development.
In an embodiment, the version detection module 20 is further configured to traverse a local application programming interface library according to the version number of the API interface to be used; and when the version number of the API interface to be used is not traversed, generating updating information according to the version number of the API interface to be used.
In an embodiment, the interface updating module 30 is further configured to upload the update information to a cloud, and receive the update information from the cloud to obtain an updated API interface; and storing the updated API interface into a local application programming interface library for updating the API interface.
In an embodiment, the interface updating module 30 is further configured to send the update information to a cloud end through an air interface, so that the cloud end searches for a corresponding API interface according to the update information, packages the corresponding API interface into a jar file, and generates an updated API interface; and acquiring an updated API through the air interface, and storing the updated API into a local application programming interface library for updating the API.
In an embodiment, the interface updating module 30 is further configured to compare the API interface updated by the local application programming interface library with the version number of the API interface to be used; and when the version number of the updated API is consistent with the version number of the API to be used, stopping updating the API to be used.
In an embodiment, the interface update module 30 is further configured to store the updated API interface to a local application programming interface library; or replacing the updated API interface with the corresponding prior version of the API interface.
In an embodiment, the interface updating module 30 is further configured to send an exception prompt and end the automatic matching when the version number of the updated API is inconsistent with the version number of the API to be used.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
Furthermore, it should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. a Read Only Memory (ROM)/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An API version automatic matching method is characterized by comprising the following steps:
when the application programming interface API is called, acquiring the version number of the application programming interface API to be used;
when the API interface to be used does not exist in the local application programming interface library, generating updating information according to the version number of the API interface to be used;
acquiring an updated API according to the updating information;
and when the version number of the updated API interface is consistent with the version number of the API interface to be used, calling the updated API interface as the matched API interface.
2. The API interface version automatic matching method of claim 1, wherein generating update information according to a version number of the to-be-used API interface when the to-be-used API interface does not exist in the local application programming interface library, comprises:
traversing a local application programming interface library according to the version number of the API interface to be used;
and when the version number of the API interface to be used is not traversed, generating updating information according to the version number of the API interface to be used.
3. The API interface version automatic matching method of claim 1, wherein said obtaining an updated API interface according to said update information comprises:
uploading the updating information to a cloud end, and receiving the updating information to obtain an updated API interface by the cloud end;
and storing the updated API interface into a local application programming interface library for updating the API interface.
4. The API interface version automatic matching method of claim 3, wherein the uploading the update information to a cloud and receiving the API interface updated by the cloud according to the update information comprises:
sending the updating information to a cloud end through an air interface, enabling the cloud end to search a corresponding API (application program interface) according to the updating information, packaging the corresponding API into jar files, and generating an updated API;
and acquiring an updated API through the air interface, and storing the updated API into a local application programming interface library for updating the API.
5. The API interface version auto-matching method of claim 4, wherein after storing said updated API interface to a local API library for API interface update, further comprising:
comparing the updated API interface of the local application programming interface library with the version number of the API interface to be used;
and when the version number of the updated API is consistent with the version number of the API to be used, stopping updating the API to be used.
6. The API interface version auto-match method of claim 4 wherein said storing said updated API interface to a local API library for API interface updates comprises:
storing the updated API interface to a local application programming interface library;
or the like, or, alternatively,
and replacing the updated API interface with the corresponding prior version of the API interface.
7. The API interface version automatic matching method of any of claims 1-6, further comprising, after obtaining an updated API interface according to the update information:
and when the version number of the updated API is inconsistent with the version number of the API to be used, sending an exception prompt and finishing automatic matching.
8. An API interface version automatic matching apparatus, comprising:
the version obtaining module is used for obtaining the version number of the application programming interface API to be used when the application programming interface API is called;
the version detection module is used for generating updating information according to the version number of the API interface to be used when the API interface to be used does not exist in the local application programming interface library;
the interface updating module is used for acquiring an updated API interface according to the updating information;
and the interface calling module is used for calling the updated API interface as the matched API interface when the version number of the updated API interface is consistent with the version number of the API interface to be used.
9. An API interface version auto-match device, the device comprising: memory 5, a processor and an API interface version auto-match program stored on the memory and executable on the processor, the API interface version auto-match program being configured to implement the steps of the API interface version auto-match method of any one of claims 1 to 7.
10. A storage medium having stored thereon an API interface version 0 auto-matching program which, when executed by a processor, implements the steps of the API interface version auto-matching method of any one of claims 1 to 7.
CN202211679863.7A 2022-12-26 2022-12-26 API (application program interface) version automatic matching method, device, equipment and storage medium Pending CN115934156A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211679863.7A CN115934156A (en) 2022-12-26 2022-12-26 API (application program interface) version automatic matching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211679863.7A CN115934156A (en) 2022-12-26 2022-12-26 API (application program interface) version automatic matching method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115934156A true CN115934156A (en) 2023-04-07

Family

ID=86557428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211679863.7A Pending CN115934156A (en) 2022-12-26 2022-12-26 API (application program interface) version automatic matching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115934156A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311859A (en) * 2023-10-09 2023-12-29 上海爱可生信息技术股份有限公司 API interface control method, control system, electronic device and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311859A (en) * 2023-10-09 2023-12-29 上海爱可生信息技术股份有限公司 API interface control method, control system, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN108108181B (en) Function updating method and device of application program and computer readable storage medium
CN108196878B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN105657191B (en) Application increment upgrading method and system based on Android system
CN111625839A (en) Third-party component vulnerability detection method, device, equipment and computer storage medium
CN109902005B (en) Automatic testing method and system
CN110727454A (en) Updating method and device of intelligent equipment, electronic equipment and storage medium
CN105468529A (en) Accurate traversal method and apparatus for UI controls of android application
CN107368339B (en) Container entrance program operation method, system, device and storage medium
CN108196825A (en) The construction method and system of software project
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
CN111158741A (en) Method and device for monitoring change of dependency relationship of business module on third-party class library
CN111796853A (en) Firmware upgrading method, system, equipment and computer storage medium
CN113064630A (en) Mobile terminal APP automatic packaging method and system, electronic device and storage medium
CN106815051A (en) A kind of firmware upgrade method of embedded device, device and currency examination device
CN111400102A (en) Application program change monitoring method, device, equipment and storage medium
CN115934156A (en) API (application program interface) version automatic matching method, device, equipment and storage medium
CN111651169B (en) Block chain intelligent contract operation method and system based on web container
CN112052037A (en) Application software development method, device, equipment and medium
CN111831567A (en) Application test environment configuration method, device, system and medium
CN110990833B (en) SDK safety detection method and related equipment
CN116302054A (en) Development method and device of software project, storage medium and electronic equipment
CN116643761A (en) Customized mirror image manufacturing and deploying method, device, terminal and medium
CN112320515B (en) Elevator control system debugging method, elevator control system and computer storage medium
CN115640005A (en) Hybrid application generation method and device
CN109284097B (en) Method, device, system and storage medium for realizing complex data analysis

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