CN109857377B - API (application program interface) arrangement method and device - Google Patents

API (application program interface) arrangement method and device Download PDF

Info

Publication number
CN109857377B
CN109857377B CN201910011993.5A CN201910011993A CN109857377B CN 109857377 B CN109857377 B CN 109857377B CN 201910011993 A CN201910011993 A CN 201910011993A CN 109857377 B CN109857377 B CN 109857377B
Authority
CN
China
Prior art keywords
api
service
sub
information
orchestration
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
CN201910011993.5A
Other languages
Chinese (zh)
Other versions
CN109857377A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910011993.5A priority Critical patent/CN109857377B/en
Publication of CN109857377A publication Critical patent/CN109857377A/en
Application granted granted Critical
Publication of CN109857377B publication Critical patent/CN109857377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the technical field of research and development management, and particularly discloses an API (application program interface) arranging method which comprises the following steps: the deployment terminal constructs an API orchestration engine according to deployment information of an API open platform, so that the API orchestration engine is deployed on the API open platform in a plug-in mode; when the API orchestration engine detects an API orchestration request triggered by a user on the API open platform, the API orchestration engine generates an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list; when the API orchestration engine detects that the user finishes selecting the API sub-service, the API orchestration engine builds an API call service according to the orchestration information input by the user and based on the API sub-service. The invention also discloses an API arranging device. The invention can enable the user to rapidly arrange the service function module according to the changed service flow.

Description

API (application program interface) arrangement method and device
Technical Field
The invention relates to the field of research and development management, in particular to an open auxiliary service management technology, and particularly relates to an API (application program interface) arranging method and device.
Background
With the development of computer technology, computers are widely used to assist in human management, for example, for realizing business informatization of a certain enterprise. Because business of enterprises changes along with market factors, business processes of the enterprises are continuously changed, but most of the existing business systems cannot flexibly adapt to the business processes in the enterprise change, and thus the enterprises cannot conveniently and rapidly adjust functions in the business systems according to the business processes in the change, so that the use of the enterprises is inconvenient.
Disclosure of Invention
In order to solve the above problems, the present invention aims to disclose an API arrangement method and apparatus, so that a user can rapidly arrange own service function modules according to a changed service flow.
To solve the above problem, a first aspect of the present invention discloses an API orchestration method, which includes:
the deployment terminal constructs an API orchestration engine according to deployment information of an API open platform, so that the API orchestration engine is deployed on the API open platform in a plug-in mode;
when the API orchestration engine detects an API orchestration request triggered by a user on the API open platform, the API orchestration engine generates an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list;
when the API orchestration engine detects that the user finishes selecting the API sub-service, the API orchestration engine builds an API call service according to the orchestration information input by the user and based on the API sub-service.
In an alternative manner, in the first aspect of the present invention, the deployment information includes a platform identifier of the API open platform, deployment environment information of the API open platform,
and the deployment terminal constructing an API orchestration engine according to the deployment information of the API open platform comprises:
the deployment terminal acquires the platform identification of the API open platform;
the deployment terminal takes the platform identifier as a retrieval condition, and retrieves deployment environment information corresponding to the platform identifier in a preset API platform deployment configuration table;
and when the deployment environment information is returned successfully, the deployment terminal determines that the acquisition of the deployment information of the API open platform is completed.
As an optional manner, in the first aspect of the present invention, the API orchestration request includes API type information, API preset access number information, and API callback type information;
and the API orchestration engine generating an API sub-service list according to the API orchestration request comprises:
the API orchestration engine searches the API library for at least two API sub-services matched with the API type information according to the API type information;
and the API orchestration engine screens the at least two API sub-services according to the API preset access number information and the API callback type information and generates an API sub-service list according to the screening result.
As an alternative, in the first aspect of the present invention, the arrangement information includes service data interaction information;
and the API orchestration engine constructs an API call service according to the orchestration information input by the user and based on the API sub-service, wherein the API call service comprises:
the API orchestration engine generates a service calling interface according to the service data interaction information, so that a plurality of API sub-services are related through the service calling interface and form an API calling service;
and the API orchestration engine generating a service call interface according to the service data interaction information comprises:
and the API orchestration engine sets the calling sequence among a plurality of API sub-services and/or the nesting relation among the plurality of API sub-services according to the business data interaction information and a preset calling sequence rule.
As an optional manner, in the first aspect of the present invention, before the API orchestration engine generates the service call interface according to the service data interaction information, the API orchestration method further includes:
the API orchestration engine judges whether calling conflicts exist among the plurality of API sub-services based on the business data interaction information, and when judging that calling conflicts exist among the plurality of API sub-services, the API orchestration engine eliminates the calling conflicts according to a preset calling conflict processing rule;
and after the API orchestration engine builds an API call service according to the orchestration information input by the user and based on the API sub-service, the API orchestration method further comprises:
and the API orchestration engine generates calling information of the API call service according to at least one of the business data interaction information, the API type information, the API preset access number information and the API callback type information, so that the user publishes the calling information to a user of the API call service.
As an alternative, in the first aspect of the present invention, after the API orchestration engine generates an API sub-service list according to the API orchestration request, before the API orchestration engine constructs an API call service according to orchestration information input by a user and based on the API sub-service, the API orchestration method further includes:
the API orchestration engine generates a relation model preview according to at least two API sub-services selected by the user in the API sub-service list, so that the user confirms the at least two API sub-services selected by the user according to the relation model preview;
the API orchestration engine determines that the user selects the API sub-service is complete.
As an alternative, in the first aspect of the present invention, after the API orchestration engine constructs an API call service according to orchestration information input by a user and based on the API sub-service, the API orchestration method further includes:
and the API orchestration engine determines to return construction information of the API call service to the API open platform, so that the API open platform stores the construction information in an information base associated with a user account, and returns the construction information to a user terminal.
The second aspect of the present invention discloses an API orchestration device, comprising:
the programming engine construction module is used for constructing an API programming engine according to the deployment information of the API open platform so that the API programming engine is deployed on the API open platform in the form of a plug-in;
the API sub-service list generation module is used for generating an API sub-service list according to the API arrangement request when the API arrangement request triggered by the user on the API open platform is detected, so that the user selects an API sub-service in the API sub-service list;
and the API call service construction module is used for constructing an API call service according to the arrangement information input by the user and based on the API sub-service after the user finishes selecting the API sub-service.
As an optional manner, in the second aspect of the present invention, the deployment information includes a platform identifier of the API open platform, and deployment environment information of the API open platform;
the programming engine construction module comprises an acquisition sub-module, a cable sub-module and a first confirmation sub-module, wherein,
an acquisition sub-module, configured to acquire the platform identifier of the API open platform;
the retrieval sub-module is used for retrieving the deployment environment information corresponding to the platform identifier in a preset API platform deployment configuration table by taking the platform identifier as a retrieval condition and returning the deployment environment information;
and the first confirmation sub-module is used for determining that the acquisition of the deployment information of the API open platform is completed when the retrieval sub-module returns the deployment environment information successfully.
As an optional manner, in the second aspect of the present invention, the API orchestration request includes at least one of API type information, API preset access number information, and API callback type information;
and the API sub-service list generation module comprises a matching sub-module and a screening sub-module, wherein,
a matching sub-module, configured to search the API library for at least two API sub-services matching the API type information according to the API type information;
and the screening sub-module is used for screening the at least two API sub-services according to the API preset access number information and the API callback type information and generating an API sub-service list according to the screening result.
As an alternative, in the second aspect of the present invention, the arrangement information includes service data interaction information;
and, the API-calling service construction module may include a calling interface generation sub-module, wherein,
the calling interface generation sub-module is used for generating a service calling interface according to the service data interaction information so that a plurality of API sub-services are related through the service calling interface and form an API calling service;
and the calling interface generation submodule is specifically used for setting the calling sequence among a plurality of API sub-services and/or the nesting relation among a plurality of API sub-services according to the business data interaction information and a preset calling sequence rule, and generating the business calling interface.
Alternatively, in the second aspect of the present invention, the API call service construction module may further include a call conflict resolution module, wherein,
the calling conflict elimination module is used for judging whether calling conflicts exist among the plurality of API sub-services based on the business data interaction information, and eliminating the calling conflicts according to a preset calling conflict processing rule when judging that the calling conflicts exist among the plurality of API sub-services;
and the API arrangement device further comprises a call information generation module, wherein the call information generation module is used for generating call information of the API call service according to at least one of the business data interaction information, the API type information, the API preset access number information and the API callback type information, so that the user publishes the call information to a user of the API call service.
As an alternative, in the second aspect of the present invention, the API arranging means includes:
the preview module is used for generating a relation model preview according to at least two API sub-services selected by the user in the API sub-service list, so that the user confirms the at least two API sub-services selected by the user according to the relation model preview;
and the confirmation module is used for confirming that the user selects the API sub-service to finish.
As an optional manner, in the second aspect of the present invention, the API orchestration device further includes a return module, where the return module is configured to return, to the API open platform, construction information of the API call service, so that the API open platform stores the construction information in an information base associated with the user account, and causes the API open platform to return the construction information to the user terminal.
A third aspect of the present invention discloses another API orchestration device, comprising:
at least 1 memory cell;
a processing unit coupled to the at least 1 memory unit;
wherein the at least 1 memory unit is configured to store computer instructions;
the processing unit is configured to call the computer instruction to execute the API orchestration method disclosed in the first aspect of the present invention.
A fourth aspect of the invention discloses a computer storage medium storing computer instructions that, when invoked, are operable to perform the API orchestration aspect of the first aspect of the invention.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an API orchestration method according to one embodiment of the present invention;
FIG. 2 is a flow chart of an API arranging method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an API organization apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an API arranging apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or elements but may, in the alternative, include other steps or elements not expressly listed or inherent to such process, method, article, or device.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the invention. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The following describes an API orchestration method and apparatus according to the present invention in detail with reference to specific embodiments of the present invention.
Example 1
Referring to fig. 1, fig. 1 is a schematic diagram of an API layout method according to an embodiment of the present invention, which is executed at a server side. As shown in fig. 1, an API orchestration method according to a first embodiment of the present invention includes the steps of:
101. the deployment terminal constructs an API orchestration engine according to the deployment information of the API open platform, so that the API orchestration engine is deployed on the API open platform in the form of a plug-in;
102. when the API orchestration engine detects an API orchestration request triggered by a user on an API open platform, the API orchestration engine generates an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list;
103. when the API orchestration engine detects that the user selects the API sub-service, the API orchestration engine constructs an API call service based on the API sub-service according to the orchestration information input by the user.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
Example two
Referring to fig. 2, fig. 2 is a diagram illustrating an API layout method according to a second embodiment of the present invention, which is executed at a client. As shown in fig. 2, an API orchestration method according to a second embodiment of the present invention includes:
201. the deployment terminal constructs an API orchestration engine according to the deployment information of the API open platform, so that the API orchestration engine is deployed on the API open platform in the form of a plug-in;
202. when the API orchestration engine detects an API orchestration request triggered by a user on an API open platform, the API orchestration engine generates an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list;
203. the API orchestration engine generates a relation model preview according to at least two API sub-services selected by a user in the API sub-service list, so that the user confirms the at least two API sub-services selected by the user according to the relation model preview;
204. the API orchestration engine determines that the user selects an API sub-service;
205. when the API orchestration engine detects that the user finishes selecting the API sub-service, the API orchestration engine constructs an API call service based on the API sub-service according to the orchestration information input by the user;
206. the API orchestration engine generates calling information of the API call service according to at least one of business data interaction information, API type information, API preset access number information and API callback type information, so that a user publishes the calling information to a user of the API call service.
Therefore, the invention can realize the function of API arrangement and also provides a graphical API arrangement mode, so that a user can clearly know the condition of API selection.
As an optional implementation manner, the deployment information comprises a platform identifier of an API open platform and deployment environment information of the API open platform;
and, step 201 may include the sub-steps of:
the deployment terminal acquires a platform identifier of an API open platform;
the deployment terminal takes the platform identifier as a retrieval condition, retrieves deployment environment information corresponding to the platform identifier in a preset API platform deployment configuration table and returns the deployment environment information;
and when the deployment environment information is returned successfully, the deployment terminal determines that the acquisition of the deployment information of the API open platform is completed.
As an optional implementation manner, the API orchestration request includes at least one of API type information, API preset access number information, and API callback type information;
and, step 202 may include the sub-steps of:
the API arrangement engine searches at least two API sub-services matched with the API type information in an API library according to the API type information;
the API orchestration engine screens at least two API sub-services according to the API preset access number information and the API callback type information and generates an API sub-service list according to the screening result.
As an alternative embodiment, the arrangement information includes business data interaction information;
and, step 205 may include the sub-steps of:
the API orchestration engine judges whether calling conflict exists among the plurality of API sub-services based on the business data interaction information, and when judging that the calling conflict exists among the plurality of API sub-services, the API orchestration engine eliminates the calling conflict according to a preset calling conflict processing rule;
the API orchestration engine generates a service call interface according to the service data interaction information, so that a plurality of API sub-services are related through the service call interface and form an API call service;
and, step 2051 may include the sub-steps of:
the API orchestration engine sets the calling sequence among a plurality of API sub-services and/or the nesting relation among the plurality of API sub-services according to the business data interaction information and a preset calling sequence rule;
and generating a service call interface.
As an alternative embodiment, after step 205, the API orchestration method further comprises:
207. the API orchestration engine returns construction information of the API call service to the API open platform, so that the API open platform stores the construction information in an information base associated with the user account, and the API open platform returns the construction information to the user terminal.
Therefore, the embodiment of the invention can return the construction information of the API call service to the API open platform, so that the API open platform stores the construction information in the information base associated with the user account, and the API open platform returns the construction information to the user terminal.
Example III
Referring to fig. 3, fig. 3 is an API layout apparatus according to a third embodiment of the present invention, as shown in fig. 3, the API layout apparatus may include:
an orchestration engine construction module 301, configured to construct an API orchestration engine according to deployment information of the API open platform, so that the API orchestration engine is deployed on the API open platform in a plug-in form;
an API sub-service list generating module 302, configured to, when detecting an API orchestration request triggered by a user on an API open platform, generate an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list;
and the API call service construction module 303 is configured to construct an API call service based on the API sub-service according to the arrangement information input by the user after the user finishes selecting the API sub-service.
As an optional implementation manner, the deployment information comprises a platform identifier of an API open platform and deployment environment information of the API open platform;
the orchestration engine construction module 301 comprises an acquisition sub-module, a cable sub-module and a first confirmation sub-module, wherein the acquisition sub-module is used for acquiring a platform identifier of an API open platform;
the retrieval sub-module is used for retrieving the deployment environment information corresponding to the platform identifier in a preset API platform deployment configuration table by taking the platform identifier as a retrieval condition and returning the deployment environment information;
and the first confirmation sub-module is used for determining that the acquisition of the deployment information of the API open platform is completed when the retrieval sub-module returns the deployment environment information successfully.
As an optional implementation manner, the API orchestration request includes at least one of API type information, API preset access number information, and API callback type information;
the API sub-service list generating module 302 includes a matching sub-module and a screening sub-module, where the matching sub-module is configured to search, according to API type information, at least two API sub-services that are matched with the API type information in the API library;
and the screening sub-module is used for screening at least two API sub-services according to the API preset access number information and the API callback type information and generating an API sub-service list according to the screening result.
As an alternative embodiment, the arrangement information includes business data interaction information;
and, the API call service construction module 303 may include a call interface generation sub-module, where the call interface generation sub-module is specifically configured to set a call sequence between the plurality of API sub-services and/or a nesting relationship between the plurality of API sub-services according to a preset call sequence rule according to the service data interaction information, and generate a service call interface.
As an optional implementation manner, further optionally, the API call service construction module 303 may further include a call conflict elimination module 302, where the call conflict elimination module 302 is configured to determine whether there is a call conflict between the multiple API sub-services based on the service data interaction information, and when it is determined that there is a call conflict between the multiple API sub-services, eliminate the call conflict according to a preset call conflict processing rule.
As an optional implementation manner, the API orchestration device may further include a call information generating module 304, where the call information generating module 304 is configured to generate call information of the API call service according to at least one of service data interaction information, API type information, API preset access number information, and API callback type information, so that a user publishes the call information to a user of the API call service.
As an alternative embodiment, the API orchestration device may further comprise a preview module 305, a validation module 306, wherein,
a preview module 305, configured to generate a relational model preview according to at least two API sub-services selected by the user in the API sub-service list, so that the user confirms the at least two API sub-services selected by the user according to the relational model preview;
a confirmation module 306, configured to determine that the user selects the API sub-service to be completed.
As an optional implementation manner, the API orchestration device may further include a return module 307, where the return module 307 is configured to return the build information of the API call service to the API open platform, so that the API open platform stores the build information in the information base associated with the user account, and causes the API open platform to return the build information to the user terminal.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
Example IV
Referring to fig. 4, fig. 4 is an API layout apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the apparatus 40 includes:
at least 1 memory cell 401;
a processing unit 402 coupled with the at least 1 memory unit;
wherein at least 1 memory unit is used for storing computer instructions;
the processing unit is configured to call computer instructions to execute steps in the API arranging method described in any one of the first and second embodiments of the present invention.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
Example five
An embodiment five of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, where the computer program causes a computer to execute the steps in the API layout method described in any one of the first embodiment and the second embodiment.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
Example six
An embodiment six of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the steps of the API arrangement method described in any one of the embodiment one and the embodiment two.
The API arranging method and the device can generate an API arranging engine according to the characteristics of the API open platform, the API arranging engine can be deployed on the API development platform in the form of a plug-in, further when a user logs in the API open platform, the API arranging engine can flexibly arrange a plurality of APIs according to the API arranging requirement of the user, and finally, an API calling service is constructed.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may be embodied essentially or partly in the form of a software product, or all or part of the technical solution, which is stored in a memory, and includes several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the invention, wherein the principles and embodiments of the invention are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (7)

1. An API orchestration method, comprising:
the deployment terminal constructs an API orchestration engine according to deployment information of an API open platform, so that the API orchestration engine is deployed on the API open platform in a plug-in mode;
when the API orchestration engine detects an API orchestration request triggered by a user on the API open platform, the API orchestration engine generates an API sub-service list according to the API orchestration request, so that the user selects an API sub-service in the API sub-service list;
when the API orchestration engine detects that the user finishes selecting the API sub-service, the API orchestration engine constructs an API call service according to the orchestration information input by the user and based on the API sub-service,
the API programming request comprises at least one of API type information, API preset access number information and API callback type information;
and the API orchestration engine generating an API sub-service list according to the API orchestration request comprises:
the API orchestration engine searches an API library for at least two API sub-services matched with the API type information according to the API type information;
the API orchestration engine screens the at least two API sub-services according to the API preset access number information and the API callback type information to obtain screening results and generates an API sub-service list according to the screening results,
the arrangement information comprises business data interaction information;
and the API orchestration engine constructs an API call service according to the orchestration information input by the user and based on the API sub-service, wherein the API call service comprises:
the API orchestration engine generates a service calling interface according to the service data interaction information, so that a plurality of API sub-services are related through the service calling interface and form an API calling service;
and the API orchestration engine generating a service call interface according to the service data interaction information comprises:
the API orchestration engine sets the calling sequence among a plurality of API sub-services and/or the nesting relation among the plurality of API sub-services according to the business data interaction information and a preset calling sequence rule;
the service invocation interface is generated and the service invocation interface,
before the API orchestration engine generates the service call interface according to the service data interaction information, the API orchestration method further comprises:
the API orchestration engine judges whether calling conflicts exist among the plurality of API sub-services based on the business data interaction information, and when judging that calling conflicts exist among the plurality of API sub-services, the API orchestration engine eliminates the calling conflicts according to a preset calling conflict processing rule;
and after the API orchestration engine builds an API call service according to the orchestration information input by the user and based on the API sub-service, the API orchestration method further comprises:
and the API orchestration engine generates calling information of the API call service according to at least one of the business data interaction information, the API type information, the API preset access number information and the API callback type information, so that the user publishes the calling information to a user of the API call service.
2. The API orchestration method according to claim 1, wherein the deployment information includes platform identification of the API open platform, deployment environment information of the API open platform;
and the deployment terminal constructing an API orchestration engine according to the deployment information of the API open platform comprises:
the deployment terminal acquires the platform identification of the API open platform;
the deployment terminal takes the platform identifier as a retrieval condition, retrieves deployment environment information corresponding to the platform identifier in a preset API platform deployment configuration table and returns the deployment environment information;
and when the deployment environment information is returned successfully, the deployment terminal determines that the acquisition of the deployment information of the API open platform is completed.
3. The API orchestration method according to claim 1, wherein after the API orchestration engine generates an API sub-service list according to the API orchestration request, before the API orchestration engine builds an API call service according to orchestration information entered by a user and based on the API sub-services, the API orchestration method further comprising:
the API orchestration engine generates a relation model preview according to at least two API sub-services selected by the user in the API sub-service list, so that the user confirms the at least two API sub-services selected by the user according to the relation model preview;
the API orchestration engine determines that the user selects the API sub-service is complete.
4. The API orchestration method according to claim 1, wherein: after the API orchestration engine builds an API call service according to the orchestration information input by the user and based on the API sub-service, the API orchestration method further comprises:
and the API orchestration engine returns construction information of the API call service to the API open platform, so that the API open platform stores the construction information in an information base associated with the user account, and returns the construction information to the user terminal.
5. An API orchestration device, comprising:
the programming engine construction module is used for constructing an API programming engine according to the deployment information of the API open platform so that the API programming engine is deployed on the API open platform in the form of a plug-in;
an API sub-service list generation module, configured to generate an API sub-service list according to an API arrangement request when detecting the API arrangement request triggered by a user on the API open platform, so that the user selects an API sub-service in the API sub-service list, where the API arrangement request includes at least one of API type information, API preset access number information, and API callback type information,
the API sub-service list generation module comprises a matching sub-module and a screening sub-module,
the matching sub-module is used for searching at least two API sub-services matched with the API type information in an API library according to the API type information;
the screening sub-module is used for screening the at least two API sub-services according to the API preset access number information and the API callback type information to obtain screening results and generating an API sub-service list according to the screening results;
an API calling service construction module for constructing an API calling service according to the arrangement information input by the user and based on the API sub-service after the user finishes selecting the API sub-service, wherein the arrangement information comprises business data interaction information,
the API call service construction module comprises a call interface generation sub-module which is used for generating a service call interface according to the service data interaction information so that a plurality of API sub-services are related through the service call interface and form an API call service,
and setting the calling sequence among a plurality of API sub-services and/or the nesting relation among a plurality of API sub-services according to the business data interaction information and a preset calling sequence rule,
generating the service calling interface;
the API call service construction module further includes a call conflict resolution module and a call information generation module,
the call conflict elimination module is used for judging whether call conflicts exist among the plurality of API sub-services based on the business data interaction information, and eliminating the call conflicts according to preset call conflict processing rules when judging that the call conflicts exist among the plurality of API sub-services;
the call information generating module is configured to generate call information of the API call service according to at least one of the service data interaction information, the API type information, the API preset access number information, and the API callback type information, so that the user publishes the call information to a user of the API call service.
6. An API orchestration device, comprising:
at least 1 memory cell;
a processing unit coupled to the at least 1 memory unit;
wherein the at least 1 memory unit is configured to store computer instructions;
the processing unit is configured to invoke the computer instructions to perform the API orchestration method according to any one of claims 1-4.
7. A computer storage medium storing computer instructions which, when invoked, are operable to perform the API orchestration method according to any one of claims 1-4.
CN201910011993.5A 2019-01-07 2019-01-07 API (application program interface) arrangement method and device Active CN109857377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910011993.5A CN109857377B (en) 2019-01-07 2019-01-07 API (application program interface) arrangement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910011993.5A CN109857377B (en) 2019-01-07 2019-01-07 API (application program interface) arrangement method and device

Publications (2)

Publication Number Publication Date
CN109857377A CN109857377A (en) 2019-06-07
CN109857377B true CN109857377B (en) 2023-08-25

Family

ID=66894078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910011993.5A Active CN109857377B (en) 2019-01-07 2019-01-07 API (application program interface) arrangement method and device

Country Status (1)

Country Link
CN (1) CN109857377B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049877B (en) * 2019-10-21 2022-08-09 贝壳技术有限公司 Big data external output method and device and data open platform
CN111367690A (en) * 2020-03-03 2020-07-03 中国工商银行股份有限公司 Method and device for supporting combined API service calling
CN112230912B (en) * 2020-09-23 2022-06-10 傲普(上海)新能源有限公司 VUE-based ERP system
CN112506498A (en) * 2020-11-30 2021-03-16 广东电网有限责任公司 Intelligent visual API arrangement method, storage medium and electronic equipment
CN112527277B (en) * 2020-12-16 2023-08-18 平安银行股份有限公司 Visualized calculation task arrangement method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543992A (en) * 2012-07-11 2014-01-29 神州数码信息系统有限公司 Service-orientated software construction method
CN106815669A (en) * 2015-11-30 2017-06-09 中国电信股份有限公司 Ability opening method and platform
CN107343018A (en) * 2017-01-04 2017-11-10 成都华栖云科技有限公司 The application service method of combination and system of a kind of PaaS cloud platforms
CN108540576A (en) * 2018-04-27 2018-09-14 南方电网调峰调频发电有限公司 Integration across database interactive service platform
CN108920219A (en) * 2018-06-01 2018-11-30 浪潮软件股份有限公司 A kind of method for processing business and device based on open platform
CN109120459A (en) * 2018-09-27 2019-01-01 中国联合网络通信有限公司广东省分公司 A kind of metropolitan area network business processing method based on arranging service device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9977670B2 (en) * 2016-08-10 2018-05-22 Bank Of America Corporation Application programming interface for providing access to computing platform definitions

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103543992A (en) * 2012-07-11 2014-01-29 神州数码信息系统有限公司 Service-orientated software construction method
CN106815669A (en) * 2015-11-30 2017-06-09 中国电信股份有限公司 Ability opening method and platform
CN107343018A (en) * 2017-01-04 2017-11-10 成都华栖云科技有限公司 The application service method of combination and system of a kind of PaaS cloud platforms
CN108540576A (en) * 2018-04-27 2018-09-14 南方电网调峰调频发电有限公司 Integration across database interactive service platform
CN108920219A (en) * 2018-06-01 2018-11-30 浪潮软件股份有限公司 A kind of method for processing business and device based on open platform
CN109120459A (en) * 2018-09-27 2019-01-01 中国联合网络通信有限公司广东省分公司 A kind of metropolitan area network business processing method based on arranging service device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
面向随选网络的业务编排系统研发实践;罗光峰 等;电信科学(12);全文 *

Also Published As

Publication number Publication date
CN109857377A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN109857377B (en) API (application program interface) arrangement method and device
US8370358B2 (en) Tagging content with metadata pre-filtered by context
US11389961B2 (en) Article searching method and robot thereof
CN110738479B (en) Order management method and system based on multi-person ordering
US20050131714A1 (en) Method, system and program product for hierarchically managing a meeting
CN109739890A (en) Data processing method, device and equipment
CN101454782B (en) Contextual search of a collaborative environment
EP3553675B1 (en) Picture-based method and apparatus for implementing service operations
CN108712478A (en) A kind of method and apparatus for sharing boarding application
CN109558538B (en) Input association word construction method and device, storage medium and electronic equipment
CN111523030B (en) Newspaper disc information recommendation method and device and computer readable storage medium
CN109614271A (en) Control method, device, equipment and the storage medium of multiple company-data consistency
CN106294417A (en) A kind of data reordering method, device and electronic equipment
CN114816170A (en) Rule scheme generation method, device, medium and electronic equipment
CN111310027A (en) Method, device, terminal, server and storage medium for recording user information
US20120272242A1 (en) Provisioning virtual server
US9542457B1 (en) Methods for displaying object history information
CN116091136A (en) Telephone marketing method and device based on speaker
CN108491506A (en) Method for pushing problem answers combination
CN111126876A (en) Method and device for realizing service configuration based on plug-in technology
CN112381516A (en) Schedule reminding method, electronic equipment and computer readable storage medium
CN113765773B (en) Method and device for processing communication record
CN117270686A (en) Virtual service scene construction method and device, electronic equipment and storage medium
CN107291753A (en) A kind of individuation data searching method and device based on user
CN115952331A (en) Service providing method and device, electronic 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