CN111338614A - Application program interface development method, device, equipment and storage medium - Google Patents

Application program interface development method, device, equipment and storage medium Download PDF

Info

Publication number
CN111338614A
CN111338614A CN202010171685.1A CN202010171685A CN111338614A CN 111338614 A CN111338614 A CN 111338614A CN 202010171685 A CN202010171685 A CN 202010171685A CN 111338614 A CN111338614 A CN 111338614A
Authority
CN
China
Prior art keywords
interface
function
target
application program
execution logic
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.)
Withdrawn
Application number
CN202010171685.1A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010171685.1A priority Critical patent/CN111338614A/en
Publication of CN111338614A publication Critical patent/CN111338614A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses an application program interface development method, device, equipment and storage medium. The method comprises the following steps: acquiring function requirements and function execution logic; selecting a target atom interface according to the function requirement; wherein, the target atom interface is a program function interface which can independently execute the atom function; and logically packaging the target atomic interface according to the function execution logic to obtain a target application program interface. The method realizes the multiplexing of codes in the existing interface, avoids technical personnel from repeatedly developing interface services with smaller function difference, further reduces the redundancy degree of system codes and ensures the integral stability of the system. In addition, the application also provides an application program interface development device, equipment and a storage medium, and the beneficial effects are as described above.

Description

Application program interface development method, device, equipment and storage medium
Technical Field
The present application relates to the field of application development, and in particular, to a method, an apparatus, a device, and a storage medium for developing an application program interface.
Background
With the development of internet technology, various industries are actively developing their own information systems, and with the development of services, new interface services are continuously added, and the interface services need to be supported by Application Programming Interfaces (APIs).
Since the function difference of many current interface services is small in nature, but when the interface services are developed, technicians are still required to develop application program interfaces for realizing the corresponding interface services, so that the redundancy degree of system codes is increased due to continuous repeated development of the application program interfaces, and further the code amount of the system is continuously enlarged, thereby affecting the overall stability of the system.
Therefore, it is a problem to be solved by those skilled in the art to provide a method for developing an application program interface to relatively avoid repeated development of the application program interface, thereby ensuring the overall stability of the system.
Disclosure of Invention
The application aims to provide an application program interface development method, an application program interface development device, an application program interface development equipment and a storage medium, so that repeated development of the application program interface is relatively avoided, and the overall stability of a system is ensured.
In order to solve the above technical problem, the present application provides an application program interface development method, including:
acquiring function requirements and function execution logic;
selecting a target atom interface according to the function requirement; wherein, the target atom interface is a program function interface which can independently execute the atom function;
and logically packaging the target atomic interface according to the function execution logic to obtain a target application program interface.
Preferably, the logic packaging of the target atomic interface according to the function execution logic to obtain the target application program interface includes:
and establishing a parameter transfer relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain a target application program interface.
Preferably, the obtaining of the function requirement and the function execution logic comprises:
and acquiring the function requirement and the function execution logic set by the user based on the front-end interface.
Preferably, before selecting the target atomic interface according to the functional requirements, the method further includes:
acquiring an existing application program interface;
dividing program function interfaces which can independently execute atomic functions in the existing application program interfaces to obtain a function interface set;
selecting a target atom interface according to the function requirement, comprising:
and selecting a target atomic interface from the functional interface set according to the functional requirements.
In addition, the present application also provides an application program interface development apparatus, including:
the requirement logic acquisition module is used for acquiring the function requirement and the function execution logic;
the interface selection module is used for selecting a target atom interface according to the functional requirements; wherein, the target atom interface is a program function interface which can independently execute the atom function;
and the packaging module is used for carrying out logic packaging on the target atom interface according to the function execution logic to obtain a target application program interface.
Preferably, the encapsulation module comprises:
and the relational logic encapsulation module is used for establishing a parameter transfer relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain a target application program interface.
Preferably, the demand logic acquiring module includes:
and the front-end acquisition module is used for acquiring the function requirements and the function execution logic set by the user based on the front-end interface.
Preferably, the apparatus further comprises:
the existing interface acquisition module is used for acquiring an existing application program interface;
the interface dividing module is used for dividing program function interfaces which can independently execute atomic functions in the existing application program interfaces to obtain a function interface set;
an interface selection module comprising:
and the set selection module is used for selecting a target atomic interface from the functional interface set according to the functional requirements.
In addition, the present application also provides an application program interface development device, including:
a memory for storing a computer program;
a processor for implementing the steps of the application program interface development method as described above when executing the computer program.
In addition, the present application also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the application program interface development method as described above.
According to the application program interface development method, firstly, function requirements and function execution logic are obtained, then a target atom interface is selected according to the function requirements, the target atom interface is a program function interface capable of independently executing atom functions, and after the target atom interface is obtained, logic encapsulation is further carried out on the target atom interface according to the function execution logic, and a corresponding target application program interface is obtained. Because the target atomic interface in the method is a program function interface capable of independently executing the atomic function, based on different function requirements and function execution logics, the corresponding target application program interface can be generated by executing different combination modes on the target atomic interface, thereby realizing the multiplexing of codes in the existing interface, avoiding the technical staff from repeatedly developing interface services with smaller function difference, further reducing the redundancy degree of system codes and ensuring the integral stability of the system. In addition, the application also provides an application program interface development device, equipment and a storage medium, and the beneficial effects are as described above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an application program interface development method disclosed in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an application program interface development apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
Since the function difference of many current interface services is small in nature, but when the interface services are developed, technicians are still required to develop application program interfaces for realizing the corresponding interface services, so that the redundancy degree of system codes is increased due to continuous repeated development of the application program interfaces, and further the code amount of the system is continuously enlarged, thereby affecting the overall stability of the system.
The core of the application is to provide an application program interface development method to relatively avoid repeated development of the application program interface, thereby ensuring the overall stability of the system. Another core of the present application is to provide an application program interface development apparatus, a device and a storage medium.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application discloses an application program interface development method, including:
step S10: function requirements and function execution logic are obtained.
It should be noted that the functional requirements obtained in this step refer to the definition of the developed application program interface functions, and the functional execution logic refers to the coordination relationship between the developed application program interface functions in the execution process, which can be understood as the execution sequence between the functions. The specific content of the function requirement and the function execution logic may be preset by a developer developing the application program interface according to the actual interface development requirement, and is not specifically limited herein.
Step S11: and selecting a target atom interface according to the function requirement.
Wherein, the target atom interface is a program function interface which can independently execute the atom function.
It should be noted that the target atom interface is a specific atom interface capable of implementing a corresponding function selected according to a function requirement, and the atom interface is a program function interface capable of independently executing an atom function, so that the target atom interface selected according to the function requirement in this step can further set a working relationship between the target atom interfaces based on the function execution logic, so as to achieve business continuity between the program functions provided by the target atom interface.
Step S12: and logically packaging the target atomic interface according to the function execution logic to obtain a target application program interface.
After the target atomic interface is obtained, the target atomic interface is further logically packaged according to the function execution logic, so that the target atomic interface can be ensured to cooperatively operate, the integrity of the service logic of the developed target application program interface is ensured, and the target application program interface capable of realizing the service logic function required by a developer is obtained.
According to the application program interface development method, firstly, function requirements and function execution logic are obtained, then a target atom interface is selected according to the function requirements, the target atom interface is a program function interface capable of independently executing atom functions, and after the target atom interface is obtained, logic encapsulation is further carried out on the target atom interface according to the function execution logic, and a corresponding target application program interface is obtained. Because the target atomic interface in the method is a program function interface capable of independently executing the atomic function, based on different function requirements and function execution logics, the corresponding target application program interface can be generated by executing different combination modes on the target atomic interface, thereby realizing the multiplexing of codes in the existing interface, avoiding the technical staff from repeatedly developing interface services with smaller function difference, further reducing the redundancy degree of system codes and ensuring the integral stability of the system.
On the basis of the foregoing embodiment, as a preferred implementation manner, logically encapsulating a target atomic interface according to a function execution logic to obtain a target application program interface includes:
and establishing a parameter transfer relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain a target application program interface.
It should be noted that, in this embodiment, the target application program interface is obtained by logically encapsulating the target atomic interface according to the function execution logic, specifically, the parameter transfer relationship and the logic judgment code are established between the target atomic interfaces. The parameter transmission relation among the target atom interfaces refers to a source interface for inputting data in each target atom interface and a target interface for outputting data by the target atom interfaces; the logical judgment code is a code for judging the next atomic interface to which the output data is further input after the current target atomic interface generates the output data. According to the embodiment, the parameter transfer relationship and the logic judgment code are established between the target atomic interfaces according to the function execution logic to obtain the target application program interface, so that the functional integrity and the service stability of the target application program interface can be further ensured.
On the basis of the foregoing embodiment, as a preferred implementation manner, the acquiring the function requirement and the function execution logic includes:
and acquiring the function requirement and the function execution logic set by the user based on the front-end interface.
It should be noted that the present embodiment focuses on responding to the function requirement and the function execution logic set by the user based on the front-end interface, and since the developer can more intuitively complete the setting of the function requirement and the function execution logic through the front-end interface, the overall accuracy of the function requirement and the function execution logic can be relatively ensured. Furthermore, a user can specifically select icons of the target atomic interfaces in the front-end interface according to the functions corresponding to the atomic interfaces, so that the setting of the function requirements is realized, and then the function execution logic between the target atomic interfaces is established in a mode of dragging the icons of the target atomic interfaces in the interface and establishing icon connection, so that the function requirements set by the user and the intuitiveness of the function execution logic can be further improved, and the overall accuracy of the function requirements and the function execution logic is further ensured.
On the basis of the above series of embodiments, as a preferred embodiment, before selecting the target atomic interface according to the functional requirements, the method further includes:
acquiring an existing application program interface;
dividing program function interfaces which can independently execute atomic functions in the existing application program interfaces to obtain a function interface set;
selecting a target atom interface according to the function requirement, comprising:
and selecting a target atomic interface from the functional interface set according to the functional requirements.
The key point of the embodiment is to acquire a current existing application program interface in advance before selecting a target atomic interface according to a function requirement, further divide a program function interface capable of independently executing an atomic function in the existing application program interface to obtain a function interface set, and further select the target atomic interface according to the function requirement in the function interface set. The embodiment can relatively ensure the multiplexing of the program function interfaces which can independently execute the atomic function in the existing application program interfaces, reduce the redundancy degree of system codes and ensure the integral stability of the system.
Referring to fig. 2, an embodiment of the present application discloses an application program interface development apparatus, including:
a requirement logic acquiring module 10, configured to acquire a function requirement and a function execution logic;
the interface selection module 11 is used for selecting a target atom interface according to the functional requirements; wherein, the target atom interface is a program function interface which can independently execute the atom function;
and the encapsulation module 12 is configured to perform logic encapsulation on the target atomic interface according to the function execution logic to obtain a target application program interface.
As a preferred embodiment, the encapsulation module 12 comprises:
and the relational logic encapsulation module is used for establishing a parameter transfer relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain a target application program interface.
As a preferred embodiment, the demand logic acquiring module 10 includes:
and the front-end acquisition module is used for acquiring the function requirements and the function execution logic set by the user based on the front-end interface.
As a preferred embodiment, the apparatus further comprises:
the existing interface acquisition module is used for acquiring an existing application program interface;
the interface dividing module is used for dividing program function interfaces which can independently execute atomic functions in the existing application program interfaces to obtain a function interface set;
interface selection module 11, including:
and the set selection module is used for selecting a target atomic interface from the functional interface set according to the functional requirements.
According to the application program interface development device, the function requirement and the function execution logic are firstly obtained, then the target atom interface is selected according to the function requirement, the target atom interface is a program function interface capable of independently executing the atom function, and after the target atom interface is obtained, the target atom interface is further logically packaged according to the function execution logic, and a corresponding target application program interface is obtained. Because the target atom interface in the device is a program function interface capable of independently executing the atom function, based on different function requirements and function execution logics, the corresponding target application program interface can be generated by executing different combination modes on the target atom interface, the multiplexing of codes in the existing interface is realized, the interface service with smaller function difference is prevented from being repeatedly developed by technicians, the redundancy degree of system codes is further reduced, and the integral stability of the system is ensured.
In addition, the present application also discloses an application program interface development device, including:
a memory for storing a computer program;
a processor for implementing the steps of the application program interface development method as described above when executing the computer program.
According to the application program interface development equipment, firstly, function requirements and function execution logic are obtained, then a target atom interface is selected according to the function requirements, the target atom interface is a program function interface capable of independently executing atom functions, and after the target atom interface is obtained, logic encapsulation is further carried out on the target atom interface according to the function execution logic, and a corresponding target application program interface is obtained. Because the target atom interface in the device is a program function interface capable of independently executing the atom function, based on different function requirements and function execution logics, the corresponding target application program interface can be generated by executing different combination modes on the target atom interface, the multiplexing of codes in the existing interface is realized, the interface service with smaller function difference is prevented from being repeatedly developed by technicians, the redundancy degree of system codes is further reduced, and the integral stability of the system is ensured.
In addition, the application also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the steps of the application program interface development method are realized.
The computer-readable storage medium provided by the application firstly acquires a function requirement and a function execution logic, and then selects a target atom interface according to the function requirement, wherein the target atom interface is a program function interface capable of independently executing an atom function, and after the target atom interface is acquired, the target atom interface is further logically packaged according to the function execution logic to obtain a corresponding target application program interface. Because the target atom interface in the computer readable storage medium is a program function interface capable of independently executing the atom function, based on different function requirements and function execution logics, the corresponding target application program interface can be generated by executing different combination modes on the target atom interface, the multiplexing of codes in the existing interface is realized, the repeated development of interface services with smaller function difference by technical personnel is avoided, the redundancy degree of system codes is further reduced, and the overall stability of the system is ensured.
The application program interface development method, device, equipment and storage medium provided by the application are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An application program interface development method, comprising:
acquiring function requirements and function execution logic;
selecting a target atom interface according to the function requirement; wherein, the target atom interface is a program function interface capable of independently executing atom function;
and logically packaging the target atomic interface according to the function execution logic to obtain a target application program interface.
2. The method for developing an api as recited in claim 1, wherein said logically encapsulating the target atomic interface according to the function execution logic to obtain a target api comprises:
and establishing a parameter transfer relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain the target application program interface.
3. The method for developing api as claimed in claim 1, wherein the obtaining the function requirement and the function execution logic includes:
acquiring the function requirement set by a user and the function execution logic based on a front-end interface.
4. The method for developing an API as recited in claims 1 to 3, wherein before the selecting a target atomic interface according to the functional requirements, the method further comprises:
acquiring an existing application program interface;
dividing program function interfaces which can independently execute atomic functions in the existing application program interfaces to obtain a function interface set;
selecting a target atom interface according to the function requirement comprises:
and selecting the target atomic interface from the functional interface set according to the functional requirements.
5. An application program interface development apparatus, comprising:
the requirement logic acquisition module is used for acquiring the function requirement and the function execution logic;
the interface selection module is used for selecting a target atom interface according to the function requirement; wherein, the target atom interface is a program function interface capable of independently executing atom function;
and the packaging module is used for carrying out logic packaging on the target atomic interface according to the function execution logic to obtain a target application program interface.
6. The API development device of claim 5, wherein the encapsulation module comprises:
and the relation logic packaging module is used for establishing a parameter transmission relation and a logic judgment code between the target atomic interfaces according to the function execution logic to obtain the target application program interface.
7. The API development device of claim 5 wherein the requirement logic acquisition module comprises:
and the front-end acquisition module is used for acquiring the function requirement and the function execution logic set by the user based on a front-end interface.
8. The API development device of any one of claims 5 to 7 wherein the device further comprises:
the existing interface acquisition module is used for acquiring an existing application program interface;
the interface dividing module is used for dividing a program function interface which can independently execute an atomic function in the existing application program interfaces to obtain a function interface set;
the interface selection module comprises:
and the set selection module is used for selecting the target atomic interface from the functional interface set according to the functional requirements.
9. An application program interface development device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the application programming interface development method of any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the application programming interface development method according to any one of claims 1 to 4.
CN202010171685.1A 2020-03-12 2020-03-12 Application program interface development method, device, equipment and storage medium Withdrawn CN111338614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010171685.1A CN111338614A (en) 2020-03-12 2020-03-12 Application program interface development method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010171685.1A CN111338614A (en) 2020-03-12 2020-03-12 Application program interface development method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111338614A true CN111338614A (en) 2020-06-26

Family

ID=71184073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010171685.1A Withdrawn CN111338614A (en) 2020-03-12 2020-03-12 Application program interface development method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111338614A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736930A (en) * 2020-07-21 2020-10-02 平安国际智慧城市科技股份有限公司 Program front-back end interface calling method and device, computer equipment and storage medium
CN113204396A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing system, method and device
CN113934418A (en) * 2021-10-19 2022-01-14 中国银行股份有限公司 Configuration method and device of atomic program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736930A (en) * 2020-07-21 2020-10-02 平安国际智慧城市科技股份有限公司 Program front-back end interface calling method and device, computer equipment and storage medium
CN113204396A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing system, method and device
CN113934418A (en) * 2021-10-19 2022-01-14 中国银行股份有限公司 Configuration method and device of atomic program

Similar Documents

Publication Publication Date Title
CN111078315B (en) Microservice arranging and executing method and system, architecture, equipment and storage medium
CN108304307B (en) Performance detection method of intelligent contract on block chain
US20190129734A1 (en) Data collection workflow extension
CN111338614A (en) Application program interface development method, device, equipment and storage medium
US8533667B2 (en) Call wizard for information management system (IMS) applications
CN106055368B (en) application updating method and device
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN111258565A (en) Method, system, server and storage medium for generating small program
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN113434063B (en) Information display method, device and equipment
CN111090591B (en) Test method and device, electronic equipment and computer readable storage medium
CN115469849B (en) Service processing system, method, electronic equipment and storage medium
CN113298331A (en) Work order processing method, device and system and electronic equipment
CN114116487B (en) Pressure testing method and device, electronic equipment and storage medium
CN114880020A (en) Software development kit management method, related device and computer program product
CN112905270B (en) Workflow realization method, device, platform, electronic equipment and storage medium
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN113760487B (en) Service processing method and device
CN111309558B (en) Method, device, equipment and storage medium for collecting vue event data in frame
CN115543647A (en) Function calling method
CN113220386A (en) Instrument board publishing method and related equipment
CN113434141B (en) Method and system for developing windows graphical interface management system based on domestic environment
CN114610204B (en) Auxiliary device and method for data processing, storage medium and electronic equipment
CN113626007B (en) Application method and device of connector model and server

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20200626

WW01 Invention patent application withdrawn after publication