CN114327438A - API interface generation method, service management system and storage medium - Google Patents

API interface generation method, service management system and storage medium Download PDF

Info

Publication number
CN114327438A
CN114327438A CN202111332970.8A CN202111332970A CN114327438A CN 114327438 A CN114327438 A CN 114327438A CN 202111332970 A CN202111332970 A CN 202111332970A CN 114327438 A CN114327438 A CN 114327438A
Authority
CN
China
Prior art keywords
interface
rule
primitive
generating
primitives
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
CN202111332970.8A
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.)
Shenzhen Juding Medical Co Ltd
Original Assignee
Shenzhen Juding Medical 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 Shenzhen Juding Medical Co Ltd filed Critical Shenzhen Juding Medical Co Ltd
Priority to CN202111332970.8A priority Critical patent/CN114327438A/en
Publication of CN114327438A publication Critical patent/CN114327438A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to the field of API interface generation, and discloses an API interface generation method, a service management system and a storage medium. The method comprises the following steps: generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing process; generating an API interface according to the operation rule; and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party. By means of the mode, the operation process of the interface can be arranged on the visual interface, and the API interface can be generated more simply and rapidly.

Description

API interface generation method, service management system and storage medium
Technical Field
The present application relates to the field of API interface generation, and in particular, to an API interface generation method, a service management system, and a computer-readable storage medium.
Background
API (application Programming interface), the name of which is application program interface. Are predefined functions or conventions that refer to the joining of different components of a software system. To provide a set of routines that applications and developers can access based on certain software or hardware without accessing source code or understanding the details of the internal workings.
In a hospital or enterprise, different software systems provided by multiple vendors are often used simultaneously to handle the business. Due to the business demands, there is a large amount of business interaction between different systems. Generally, a manufacturer can develop an API interface according to an interface document agreed by two parties in advance for a user to call. However, the API interface based on code development has the following disadvantages: due to the change of the service, the interface is often newly added or modified, so that the interface developer often updates or even re-develops the original work through the code, and the consumed labor cost is higher; each time the interface is changed, research and development and participation of testing personnel are required, and the technical threshold is high; the processing logic of the interface is solidified in the code, and the development period is long.
Disclosure of Invention
The technical problem mainly solved by the application is to provide an API interface generation method, wherein a visual interface is used for carrying out flow configuration on a primitive to generate a corresponding operation rule; generating an API interface according to the operation rule; when the calling party calls the API interface, the corresponding rule is operated, and the operation result is sent to the calling party, so that the API interface can be developed quickly, simply and conveniently.
In order to solve the technical problem, the application adopts a technical scheme that: provided is an API interface generation method, including: generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing process; generating an API interface according to the operation rule; and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party.
Generating a corresponding operation rule according to the flow configuration of the primitives, wherein the operation rule comprises displaying a plurality of preset primitives; determining a plurality of selected target primitives in a plurality of preset primitives; carrying out flow configuration on a plurality of target primitives to obtain a corresponding flow chart; and generating a corresponding operation rule according to the flow chart.
Further, displaying a plurality of preset graphics primitives, including displaying an operation interface, wherein the operation interface includes a first sub-interface and a second sub-interface, and the first sub-interface is used for displaying the plurality of preset graphics primitives; and determining a plurality of selected target primitives in the plurality of preset primitives, wherein the determining of the plurality of selected target primitives is performed in response to the dragging operation from the first sub-interface to the second sub-interface of the primitives in the plurality of preset primitives.
Further, the process configuration is performed on the plurality of target primitives to obtain the corresponding flow chart, including the sequential connection of the plurality of target primitives to obtain the corresponding flow chart.
Generating a corresponding operation rule according to the flow configuration of the primitive, and performing flow configuration on the primitive; performing attribute configuration on the graphic elements, wherein the attribute configuration at least comprises public attributes and private attributes, the public attributes comprise position information of the graphic elements and name information of the connected graphic elements, and the private attributes represent service parameter information of the graphic elements; and generating a corresponding operation rule according to the flow configuration and the attribute configuration of the graphic primitive.
Before generating a corresponding operation rule according to the flow configuration of the graphic primitive, establishing an API interface generation service; generating service configuration service parameters for the API interface; and determining the API interface to generate a primitive corresponding to the service according to the service parameter.
Generating an API interface according to the operation rule, wherein the generation of the API interface comprises the step of acquiring the operation rule; generating a rule description file according to the operation rule; the operation rules are in one-to-one correspondence with rule description files, and the rule description files comprise input parameter information of the interfaces and output parameter information of the interfaces; and generating the API interface according to the rule specification file.
The method comprises the following steps of responding to a calling party to call an API interface, running a corresponding running rule and sending a running result to the calling party, wherein the step of responding to the calling party to issue an interface calling request and sending a rule description file to the calling party is included; responding to a calling party to issue a calling command according to the rule description file, and determining an interface service name corresponding to the calling command; executing the operation rule according to the interface service name and obtaining an execution result; and sending the execution result to the calling party.
And further, responding to the calling party issuing the calling command according to the rule description file, and determining the interface service name corresponding to the calling command.
In order to solve the above problem, another technical solution adopted by the present application is: there is provided a traffic management system comprising: the interface configuration module is used for generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing process; the interface issuing module is used for generating an API interface according to the operation rule; and the rule operation module is used for responding to the calling party to call the API interface, operating the corresponding operation rule and sending the operation result to the calling party.
In order to solve the above problem, another technical solution adopted by the present application is: there is provided a traffic management system comprising: the system comprises a processor and a memory coupled with the processor, wherein a computer program is stored in the memory, and the processor is used for executing the computer program to realize the method.
In order to solve the above problem, another technical solution adopted by the present application is: a computer-readable storage medium is provided, in which a program data is stored behind the computer-readable storage medium, which program data, when being executed by a processor, is adapted to carry out the above-mentioned method.
The beneficial effect of this application is: the application provides an API interface generation method which is different from the situation of the prior art. Generating a corresponding operation rule according to the flow configuration of the primitive; wherein, the primitive is used for representing a processing process; generating an API interface according to the operation rule; and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party. By means of the method, the corresponding API can be generated in the visual interface layout primitives according to different requirements, code development does not need to be repeated, the development period is shortened, meanwhile, the development process is more visual and reliable, and the difficulty of interface development is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein:
fig. 1 is a schematic flowchart of an embodiment of an API interface generation method provided in the present application;
FIG. 2 is a flowchart illustrating an embodiment of a method for generating operation rules according to the present application;
FIG. 3 is a flowchart illustrating an embodiment of a method for selecting a target primitive provided by the present application;
FIG. 4 is a schematic view of a visualization interface provided by the present application;
FIG. 5 is a schematic flow chart diagram illustrating another embodiment of a method for generating operation rules according to the present application;
FIG. 6 is a flowchart illustrating an embodiment of a method for creating an interface generation service provided in the present application;
FIG. 7 is a flowchart illustrating a method for generating an API interface according to another embodiment of the present disclosure;
FIG. 8 is a flowchart illustrating an embodiment of an interface invocation method provided by the present application;
FIG. 9 is a schematic structural diagram of an embodiment of a business management system provided in the present application;
FIG. 10 is a schematic structural diagram of another embodiment of a service management system provided in the present application;
FIG. 11 is a schematic structural diagram of one embodiment of a computer-readable storage medium provided herein;
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. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should also be noted that, for ease of description, only some, but not all, of the methods and processes associated with the present application are illustrated in the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "comprising" and "having," as well as any variations thereof, in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase 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. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an embodiment of an API interface generating method provided in the present application. The API interface generation method of this embodiment specifically includes steps 11 to 13:
step 11: generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein the primitive is used to represent a process.
The method is applied to visual graphic programming, also called visual programming, aims to realize the visualization of programming work by taking the programming idea of 'what you see is what you get' as the principle, and synchronizes the program with the adjustment of the result. Compared with the traditional programming mode, the visual programming mode means that the design work of the interface can be completed only by an intuitive operation mode without programming, and the operation is simple.
Primitives refer to graphical data corresponding to entities visible in a visual interface. The English name of the primitive is "entity", and the Chinese translated into the English name has the names of "pixel", "primitive", "entity", etc.
The visual interface of the invention comprises a plurality of primitives with different functions, and each primitive represents a processing process. Arranging the primitives on the visual interface to form the operation flow of the primitives, generating corresponding operation rules, and storing the operation rules and the operation rules in a file or database form.
Alternatively, the process flow represented by each primitive may be to operate the database with SQL commands, call a third party interface using the Http protocol, or convert the format of the message.
Step 12: and generating an API interface according to the operation rule.
And generating an operation rule capable of reflecting the operation sequence of the primitives and the primitive processing process according to the flow configuration of the primitives. The operation rule has a guiding function for generating the function of the API interface, so that the required API interface can be generated according to the operation rule.
Step 13: and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party.
When a calling party wants to call the API, a calling request is sent first, the system responds to the calling request and finds out the operation rule corresponding to the calling request, the operation rule is executed, and the obtained operation result is sent to the calling party again.
In the embodiment 1, a corresponding operation rule is generated according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing process; generating an API interface according to the operation rule; and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party. The traditional interface development usually adopts a code development form, the development period is long, and the technical threshold of technicians is high. The method and the device have the advantages that the API interface is developed in the mode that the primitives are arranged on the visual interface, the operation is simple, the required API interface can be developed even if the bottom code logic of each primitive is not understood, the interface development period is greatly shortened, and the interface development pressure is reduced.
In the step of generating the corresponding operation rule according to the flow configuration of the graphic primitive, an operation rule generation method is provided. Referring to fig. 2, fig. 2 is a schematic flowchart of an embodiment of an operation rule generating method provided in the present application. The present embodiment specifically includes steps 111 to 114:
step 111: and displaying a plurality of preset graphic elements.
Displaying a plurality of preset graphic primitives in a visual interface of the system; wherein, different primitives represent different processing procedures and have different functions. When the system is used for interface development, a user can visually see all the primitives and select the needed primitives for application.
Each primitive has its own class definition, for example, the class of the database primitive may be 0, the class of the Http interface primitive may be 1, the class of the format conversion primitive may be 2, and so on. By defining a category for each primitive, a user can quickly locate a desired primitive category and filter the most appropriate primitive from that primitive category.
Step 112: and determining a plurality of selected target primitives in a plurality of preset primitives.
Different tasks need to be configured with different primitives, and the required target primitives are selected according to the tasks to be completed by the API.
Step 113: and carrying out flow configuration on the target primitives to obtain a corresponding flow chart.
Selecting a plurality of required target primitives, arranging the target primitives in a visual interface according to a primitive execution flow, and connecting the primitives according to an execution sequence to form a flow chart.
Step 114: and generating a corresponding operation rule according to the flow chart.
The application provides a method for selecting a target graphic primitive in displaying a plurality of preset graphic primitives. Referring to fig. 3 and 4, fig. 3 is a schematic flowchart of an embodiment of a method for selecting a target primitive provided by the present application, and fig. 4 is a schematic view of a visualization interface provided by the present application. The present embodiment specifically includes steps 1111 to 1112:
step 1111: and displaying an operation interface, wherein the operation interface comprises a first sub-interface and a second sub-interface, and the first sub-interface is used for displaying a plurality of preset graphic primitives.
In the display interface, a first sub-interface is used for displaying a plurality of preset graphic primitives, and a second sub-interface is used for arranging a plurality of target graphic primitives.
Step 1112: and determining a plurality of selected target primitives in response to the dragging operation from the first sub-interface to the second sub-interface of the primitives in the plurality of preset primitives.
For the preset primitive in the first sub-interface, the selected target primitive can be selected, and as shown in fig. 4, the selected target primitive is dragged from the first sub-interface to the second sub-interface in a dragging, pulling and dragging manner, so that a selection process is completed. And dragging all the target graphic elements from the first sub-interface to the second sub-interface to finish the selection work of the target graphic elements.
Wherein, in step 113, step 1131 is included:
step 1131: and sequentially connecting the plurality of target primitives to obtain a corresponding flow chart.
Different target graphic elements are connected by using connecting lines according to the execution sequence to form a complete flow chart.
In addition to the above embodiments, in the step of generating the corresponding operation rule according to the flow configuration of the primitive, another operation rule generation method is proposed. Referring to fig. 5, fig. 5 is a schematic flow chart of another embodiment of an operation rule generation method provided in the present application. The present embodiment specifically includes steps 115 to 117:
step 115: and carrying out flow configuration on the primitives.
Step 116: and performing attribute configuration on the primitive, wherein the attribute configuration at least comprises a public attribute and a private attribute, the public attribute comprises the position information of the primitive and the name information of the connected primitive, and the private attribute represents the service parameter information of the primitive.
Each primitive represents a processing process, and each primitive has different attributes, and the attributes of the primitives need to be set when the primitives are organized. The primitive attributes include public attributes and private attributes. The common attributes are attributes that each primitive possesses, and include a name of the primitive, coordinate point information of a placed position, a name of a connected upstream primitive, a name of a connected downstream primitive, and the like. Private attributes include some functional parameters such as database connection information, data query variable names, SQL statements, etc. By configuring the private attributes of the primitives, two primitives with the same appearance have different functions and are applied to different environments.
Step 117: and generating a corresponding operation rule according to the flow configuration and the attribute configuration of the graphic primitive.
And when the primitive is stored after being arranged, the system assembles the primitive attributes in an XML format to form an operation rule, and then stores the operation rule in a file or database form.
Before the flow configuration of the primitive is performed, a service needs to be created in the system. Referring to fig. 6, fig. 6 is a schematic flowchart of an embodiment of a method for creating an interface generation service provided by the present application. The present embodiment specifically includes steps 21 to 23:
step 21: an API interface generation service is created.
Step 22: service configuration service parameters are generated for the API interface.
Services are first created in the system, and service parameters are then configured. The service parameters include a service name and service attributes, etc. Wherein, the type of the finally generated API interface can be set in the service attribute.
Optionally, the type of the API interface is a Webservice interface or an Http interface.
The Web is a technology that allows applications to communicate with each other in a platform and programming language independent manner. Webservice is a software interface that describes a set of operations that can be accessed over a network through standardized XML messaging. Through XML description, the Webservice can realize mutual calling among different languages, and interaction among web applications based on the Http protocol is performed through the Internet.
The Http interface represents a hypertext transfer protocol. The Http protocol is established on the basis of the TCP protocol, and when the browser needs to obtain the web page data from the server, the browser sends a Http request, and the Http establishes a connection channel with the server through the TCP. And after the data transmission is finished, the connection is immediately disconnected.
Step 23: and determining the API interface to generate a primitive corresponding to the service according to the service parameter.
And selecting the primitives meeting the conditions according to the setting of the service attributes, arranging the primitives to form a flow chart, and generating an operation rule according to the flow chart.
In the process of generating the API interface according to the operation rule, the application provides another API interface generation method. Referring to fig. 7, fig. 7 is a schematic flowchart of another embodiment of an API interface generation method provided in the present application. The present embodiment specifically includes steps 121 to 123:
step 121: and acquiring an operation rule.
Step 122: generating a rule description file according to the operation rule; the operation rules are in one-to-one correspondence with the rule specification files, and the rule specification files comprise input parameter information of the interfaces and output parameter information of the interfaces.
In this embodiment, a previously stored operation rule is first read, and a wsdl (web Services Description language) file, also called a web service Description language, i.e. a rule Description file, is generated according to the operation rule. WSDL is well suited for use as a code generator that can read WSDL documents and access Web services to generate a programmatic interface, so the system generates a Webservice interface or Http interface from WSDL files.
The WSDL file comprises input parameter and output parameter information of the interface, and a user can master the parameter information of the API interface according to the description of the WSDL file and call the interface.
Step 123: and generating an API interface according to the root description file.
The system automatically generates a Webservice interface or an Http interface according to the description of the WSDL file and the service attribute parameters.
In the step of calling the API interface in response to the caller, running the corresponding running rule, and sending the running result to the caller, the present embodiment provides an interface calling method. Referring to fig. 8, fig. 8 is a schematic flowchart illustrating an embodiment of an interface calling method provided in the present application. The present embodiment specifically includes steps 131 to 134:
step 131: and sending the rule specification file to the calling party in response to the calling party issuing an interface calling request.
When a caller wants to call an API interface, an interface call request is first sent. After receiving the interface calling request, the system sends a corresponding interface rule specification file to a calling party, wherein the rule specification file contains legal input parameter information and can guide a using party to input correct parameters for interface calling. Besides, the rule specification file also comprises a Webservice protocol format, and the calling party acquires the Webservice protocol format according to the rule specification file and calls an interface according to a Webservice address.
Step 132: and responding to the calling party to issue the calling command according to the rule description file, and determining the interface service name corresponding to the calling command.
And when the calling party inputs a calling command according to the input parameter information in the rule specification file, the system responds to the calling command and finds the interface service name corresponding to the calling command in the system.
Step 133: and executing the operation rule according to the interface service name and obtaining an execution result.
Each interface service name has a corresponding operation rule, the operation rule is determined according to the service name, and the processing process of each primitive is executed according to the type of the primitive and the attribute of the primitive defined in the rule and the connection sequence of the primitives. And if the database type primitive is executed, reading the connection information of the database and the executed SQL information from the rule, and executing the database connection operation. Executing the SQL statement after the connection is successful to obtain an execution result; and if the processing process of the primitive is to call the Http interface, reading Http connection information and called parameter information from the rule, and calling the Http interface to obtain an execution result.
Step 134: and sending the execution result to the calling party.
The result of the execution is a set of output parameters.
Wherein, step 132 includes step 1321:
step 1321: and responding to the calling party to issue the calling command according to the rule description file, legally checking the calling command, and determining the interface service name corresponding to the calling command after the checking is passed.
The rule specification file comprises input parameter information, so that a user needs to call an interface according to a call command matched with the input parameter information after receiving the rule specification file. If the calling command is wrong and is not matched with the indication information in the rule description file, the legal verification of the calling command cannot be passed. And entering a link of confirming the interface service name corresponding to the call command only after the legal check is passed.
Through the embodiment, the method and the system have the advantages that the service is created, the primitives are arranged in the service to form the flow chart, and the operation rule is generated according to the flow chart; generating a rule description file according to the operation rule, and generating an API (application programming interface) according to the rule description file; and when the calling party calls the interface, sending a legal calling command, matching a corresponding interface service name according to the calling command, operating an operation rule corresponding to the interface service name, and obtaining a return value. By the method, the graphic elements can be arranged on the visual interface, and the API interface can be generated simply and quickly.
Referring to fig. 9 specifically, according to embodiments 1 to 8, fig. 9 is a schematic structural diagram of an embodiment of a service management system provided in the present application.
The service management system 100 includes: an interface configuration module 110, an interface publishing module 120, and a rule running module 130.
The interface configuration module 110 is configured to generate a corresponding operation rule according to the flow configuration of the primitive; wherein, the primitive is used for representing a processing process; an interface publishing module 120, configured to generate an API interface according to the operation rule; and the rule running module 130 is configured to respond to the caller calling the API interface, run the corresponding running rule, and send the running result to the caller.
After the process configuration is performed on the primitive, a corresponding operation rule is generated, and the operation rule is stored in the rule operation module 130. In the interface publishing module 120, the operation rule stored in the rule operation module 130 is obtained, a rule description file is generated, and an API interface is generated according to the rule description file. When the caller issues the interface call request, the interface issuing module 120 sends the rule specification file to the caller, and the caller acquires the Webservice protocol address and inputs the parameter information, and sends the call command to the interface issuing module 120 again. The interface issuing module 120 performs legal verification on the call command, and after the verification is passed, sends the interface service name corresponding to the call command to the rule running module 130, finds the corresponding running rule, and executes the running rule in the rule running module 130 to obtain an execution result. The rule running module 130 sends the execution result to the interface publishing module 120, and then the interface publishing module 120 sends the execution result to the caller.
Referring to fig. 10 in particular, fig. 10 is a schematic structural diagram of another embodiment of a service management system provided in the present application.
The business management system 200 includes a processor 210 and a memory 220. Wherein processor 210 is coupled to memory 220. The memory 220 stores therein a computer program for executing the API interface generating method described above.
Referring to fig. 11 in particular, fig. 11 is a schematic structural diagram of an embodiment of a computer-readable storage medium provided in the present application.
Program data 310 is included in computer-readable storage medium 300. Program data 310, when executed by a processor, may implement the API interface generation method described above.
Different from the situation of the prior art, the application provides an API interface generation method, which comprises the steps of firstly generating a corresponding operation rule according to the flow configuration of a primitive; wherein, the primitive is used for representing a processing process; generating an API interface according to the operation rule; and responding to the calling party to call the API interface, running the corresponding running rule, and sending the running result to the calling party. The method is different from the traditional method of designing the API interface through codes, and the operating rule and the API interface are generated by arranging the graphic primitives on the visual interface. By adopting the mode, the API interface can be developed simply and quickly, the technical threshold of interface development is reduced, the period of interface development is shortened, and meanwhile, the manpower for interface development can be saved. Generally, the method has the advantages of short interface development period, simple development process and the like.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are intended to be included within the scope of the present application.

Claims (12)

1. An API interface generation method, the method comprising:
generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing procedure;
generating an API interface according to the operation rule;
and responding to the calling party to call the API interface, running the corresponding running rule, and sending a running result to the calling party.
2. The method of claim 1, wherein generating the corresponding operation rule according to the flow configuration of the primitive comprises:
displaying a plurality of preset graphics primitives;
determining a plurality of selected target primitives in the plurality of preset primitives;
carrying out flow configuration on the target primitives to obtain corresponding flow charts;
and generating a corresponding operation rule according to the flow chart.
3. The method of claim 2,
the displaying of the plurality of preset primitives includes:
displaying an operation interface, wherein the operation interface comprises a first sub-interface and a second sub-interface, and the first sub-interface is used for displaying the plurality of preset graphic elements;
the determining a plurality of selected target primitives in the plurality of preset primitives includes:
and in response to the dragging operation from the first sub-interface to the second sub-interface of the primitives in the plurality of preset primitives, determining a plurality of selected target primitives.
4. The method of claim 2,
the process configuration of the target primitives to obtain corresponding process diagrams includes:
and sequentially connecting the plurality of target primitives to obtain a corresponding flow chart.
5. The method of claim 1,
generating a corresponding operation rule according to the flow configuration of the primitive, further comprising:
carrying out flow configuration on the graphics primitives; and
performing attribute configuration on the primitive, wherein the attribute configuration at least comprises a public attribute and a private attribute, the public attribute comprises position information of the primitive and name information of the connected primitive, and the private attribute represents service parameter information of the primitive;
and generating a corresponding operation rule according to the flow configuration and the attribute configuration of the graphic primitive.
6. The method of claim 1,
before generating the corresponding operation rule according to the process configuration of the primitive, the method further includes:
creating an API interface generation service;
generating service configuration service parameters for the API interface;
and determining the graphic element corresponding to the service generated by the API according to the service parameter.
7. The method of claim 1, wherein generating an API interface according to the run rule comprises:
acquiring the operation rule;
generating a rule description file according to the operation rule; the operation rules are in one-to-one correspondence with the rule description file, and the rule description file comprises input parameter information of an interface and output parameter information of the interface;
and generating the API interface according to the rule description file.
8. The method of claim 1, wherein the responding to the caller invoking the API interface, running the corresponding run rule, and sending a run result to the caller comprises:
responding to a calling party issuing an interface calling request, and sending a rule specification file to the calling party;
responding to the calling party to issue a calling command according to the rule description file, and determining an interface service name corresponding to the calling command;
executing the operation rule according to the interface service name and obtaining an execution result;
and sending an execution result to the calling party.
9. The method according to claim 8, wherein the determining the interface service name corresponding to the call command in response to the caller issuing the call command according to the rule specification file comprises:
responding to the calling party to issue the calling command according to the rule description file, carrying out legal verification on the calling command, and determining the service name corresponding to the calling command after the verification is passed.
10. A service management system, characterized in that the service management system comprises:
the interface configuration module is used for generating a corresponding operation rule according to the flow configuration of the graphic primitive; wherein, the primitive is used for representing a processing procedure;
the interface issuing module is used for generating an API interface according to the operation rule;
and the rule operation module is used for responding to the calling party to call the API, operating the corresponding operation rule and sending the operation result to the calling party.
11. A traffic management system, characterized in that the traffic management system comprises a processor and a memory coupled to the processor, in which memory a computer program is stored, the processor being adapted to execute the computer program for implementing the method according to any of claims 1-9.
12. A computer-readable storage medium, in which program data are stored which, when being executed by a processor, are adapted to carry out the method of any one of claims 1-9.
CN202111332970.8A 2021-11-11 2021-11-11 API interface generation method, service management system and storage medium Pending CN114327438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111332970.8A CN114327438A (en) 2021-11-11 2021-11-11 API interface generation method, service management system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111332970.8A CN114327438A (en) 2021-11-11 2021-11-11 API interface generation method, service management system and storage medium

Publications (1)

Publication Number Publication Date
CN114327438A true CN114327438A (en) 2022-04-12

Family

ID=81045129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111332970.8A Pending CN114327438A (en) 2021-11-11 2021-11-11 API interface generation method, service management system and storage medium

Country Status (1)

Country Link
CN (1) CN114327438A (en)

Similar Documents

Publication Publication Date Title
US11023834B2 (en) Collaborative design systems, apparatuses, and methods
US20190018659A1 (en) Method and system for visual data mapping and code generation to support data integration
AU2016201889B2 (en) Methods and apparatus for translating forms to native mobile applications
US8701080B2 (en) Template components having constraints representative of best practices in integration software development
US8010940B2 (en) Methods and apparatus for designing a workflow process using inheritance
US8751558B2 (en) Mashup infrastructure with learning mechanism
US20130238384A1 (en) Business management system
US8239226B2 (en) Methods and apparatus for combining properties and methods from a plurality of different data sources
CN111427561A (en) Service code generation method and device, computer equipment and storage medium
US8224853B2 (en) Methods and apparatus for updating a plurality of data fields in an electronic form
US8839186B2 (en) Entity morphing in metamodel-based tools
CN115640045B (en) Low-code development platform based on domain-driven design and business system creation method
US20120060141A1 (en) Integrated environment for software design and implementation
JP3345473B2 (en) Animation generation method
US20070136358A1 (en) Methods and apparatus for storing data associated with an electronic form
WO2007056656A2 (en) Methods and apparatus for processing business objects, electronic forms, and workflows
CN114564176A (en) Code development method, server and storage medium
US20070143305A1 (en) Methods and apparatus for storing functions associated with an electronic form
CN114327438A (en) API interface generation method, service management system and storage medium
CN109766093B (en) Method and device for collaborative real-time editing, electronic equipment and storage medium
US20070136367A1 (en) Methods and apparatus for dynamically modifying a business object definition
US20090007157A1 (en) Mapping Data Sources to a Procedural API
CN113806596B (en) Operation data management method and related device
CN114610204B (en) Auxiliary device and method for data processing, storage medium and electronic equipment
CN115730172A (en) Page creating method, device, system and computer readable 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