WO2023160395A1 - 基于权限的交互式接口发布方法、装置及电子设备 - Google Patents

基于权限的交互式接口发布方法、装置及电子设备 Download PDF

Info

Publication number
WO2023160395A1
WO2023160395A1 PCT/CN2023/075057 CN2023075057W WO2023160395A1 WO 2023160395 A1 WO2023160395 A1 WO 2023160395A1 CN 2023075057 W CN2023075057 W CN 2023075057W WO 2023160395 A1 WO2023160395 A1 WO 2023160395A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
processed
target
information
user
Prior art date
Application number
PCT/CN2023/075057
Other languages
English (en)
French (fr)
Inventor
刘子朔
Original Assignee
北京有竹居网络技术有限公司
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 北京有竹居网络技术有限公司 filed Critical 北京有竹居网络技术有限公司
Publication of WO2023160395A1 publication Critical patent/WO2023160395A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Definitions

  • the embodiments of the present disclosure relate to the technical field of the Internet, and in particular to a permission-based interactive interface publishing method, device, electronic equipment, computer-readable storage medium, computer program product, and computer program.
  • Open Platform means that a software system exposes its application programming interface (Application Programming Interface, API), so that external programs can use the functions or resources of the software system without changing the source code of the software system.
  • API Application Programming Interface
  • open platforms are usually used to encapsulate website services into a series of interfaces (APIs) and open them up for other developers to use. This behavior is called interface publishing (Open API).
  • the service provider in the process of interface development and release, usually manually writes the program code of the functional service and the corresponding open interface through the developer, and outputs the program code to the subsequent reviewers, and then Auditors conduct corresponding code checks to ensure that the relevant parameters of the interface are correct and safe before releasing to the open platform.
  • Embodiments of the present disclosure provide a permission-based interactive interface publishing method, device, electronic equipment, computer-readable storage medium, computer program product, and computer program.
  • the embodiment of the present disclosure provides a permission-based method for publishing an interactive interface, including:
  • the interactive page corresponding to the first user right display first interface information
  • the first interface information is used to indicate at least one interface to be processed
  • the interface to be processed is an application program for processing based on the first user right programming interface
  • the target interface to be processed in response to a first operation instruction for the target interface to be processed, configure the target interface to be processed as a target state, wherein the first operation instruction is implemented based on the first user authority; upon preset triggering Under the condition, according to the target status of the target interface to be processed, the target interface to be processed is released to the open platform, or the second interface information corresponding to the target interface to be processed is generated, and the second interface information is used for The target interface to be processed is displayed in the interaction page corresponding to the second user authority.
  • an embodiment of the present disclosure provides a permission-based interactive interface issuing device, including:
  • a display module configured to display first interface information in the interactive page corresponding to the first user authority, the first interface information is used to indicate at least one interface to be processed, and the interface to be processed is based on the first user authority Application programming interface for processing;
  • a configuration module configured to configure the target interface to be processed in a target state in response to a first operation instruction for the target interface to be processed, wherein the first operation instruction is implemented based on the first user authority;
  • the issuing module is configured to publish the target interface to be processed to an open platform according to the target status of the target interface to be processed under a preset trigger condition, or generate a second interface corresponding to the target interface to be processed Information, the second interface information is used to display the target interface to be processed in the interaction page corresponding to the second user authority.
  • an electronic device including:
  • processor and a memory communicatively connected to the processor
  • the memory stores computer-executable instructions
  • the processor executes the computer-executed instructions stored in the memory, so as to implement the authority-based interactive interface publishing method described in the first aspect and various possible designs of the first aspect.
  • an embodiment of the present disclosure provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above first aspect and the first In terms of various possible designs, the authority-based interactive interface publishing method is described.
  • the embodiments of the present disclosure provide a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, the permission-based interactive interface described in the first aspect and various possible designs of the first aspect is implemented. Publish method.
  • an embodiment of the present disclosure provides a computer program, which, when executed by a processor, implements the rights-based interactive interface publishing method described in the first aspect and various possible designs of the first aspect.
  • the authority-based interactive interface publishing method, device, electronic device, computer-readable storage medium, computer program product, and computer program provided in this embodiment display the first interface information in the interactive page corresponding to the first user authority,
  • the first interface information is used to indicate at least one interface to be processed, the interface to be processed is an application programming interface for processing based on the first user authority; in response to the first operation instruction for the target interface to be processed, the The target to-be-processed interface is configured as a target state, wherein the first operation instruction is implemented based on the first user authority; under a preset trigger condition, according to the target state of the target to-be-processed interface, the The target interface to be processed is published to the open platform, or the second interface information corresponding to the target interface to be processed is generated, and the second interface information is used to display the target interface to be processed in the interactive page corresponding to the second user authority .
  • FIG. 1 is an application scenario diagram of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • FIG. 2 is a first schematic flowchart of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • Fig. 3 is a schematic diagram of an interactive interface provided by an embodiment of the present disclosure.
  • Fig. 4 is a schematic diagram of another interactive interface provided by an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of an interface publishing task workflow provided by an embodiment of the present disclosure.
  • FIG. 6 is a second schematic flow diagram of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of generating first interface information through a configuration page provided by an embodiment of the present disclosure.
  • FIG. 8 is a flowchart of specific implementation steps of step S203 in the embodiment shown in FIG. 6 .
  • FIG. 9 is a flowchart of specific implementation steps of step S207 in the embodiment shown in FIG. 6 .
  • FIG. 10 is a third schematic flow diagram of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • Fig. 11 is a structural block diagram of a permission-based interactive interface issuing device provided by an embodiment of the present disclosure.
  • Fig. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • FIG. 13 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present disclosure.
  • FIG. 1 is a diagram of an application scenario of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • the permission-based interactive interface publishing method provided by an embodiment of the present disclosure can be applied to an application scenario of open interface publishing.
  • the method provided by this embodiment of the present disclosure can be applied to a terminal device.
  • the terminal device communicates with an interface management server, and the interface management server communicates with a platform server running an open platform, or the interface management server At the same time, it is used to run an open platform.
  • the terminal device side runs a client program (Client), such as client software or a browser
  • the interface management server side runs a server program (Server).
  • Client client program
  • Server server program
  • a terminal device processes the interface by executing the permission-based interactive interface publishing method provided by the embodiment of the present disclosure, and synchronizes the processing result to the interface management server, Realize the management of the open interface, and then the interface management server publishes the processed open interface to the open platform.
  • External developers can obtain open interfaces by accessing the open platform running in the platform server.
  • Embodiments of the present disclosure provide a permission-based interactive interface publishing method, device and electronic equipment to solve the above problems.
  • FIG. 2 is a first schematic flowchart of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure.
  • the method of this embodiment can be applied in a terminal device, and the authority-based method for publishing an interactive interface includes:
  • Step S101 In the interaction page corresponding to the first user authority, display first interface information, the first interface information is used to indicate at least one interface to be processed, and the interface to be processed is an API for processing based on the first user authority.
  • the interactive page is the human-computer interaction interface of the client (such as a browser) running in the terminal device.
  • client such as a browser
  • the client running in the terminal device After the client running in the terminal device is started, it will display a corresponding login interface.
  • the login information input by the user for example Username and password, log in and display the corresponding interactive interface.
  • different login information corresponds to different user rights
  • different rights correspond to different interactive interfaces.
  • the user authority corresponding to user name A is the first user authority, and correspondingly logs in to interactive page #1
  • user authority corresponding to user name B is the second user authority permissions, log in to interactive page #2 accordingly.
  • the corresponding interactive page can be logged in based on the preset mapping relationship between the user authority and the interactive page.
  • the specific implementation manner of obtaining the user authority according to the login information is the prior art known to those skilled in the art, and will not be repeated here.
  • login information may correspond to the same user authority.
  • user name A, user name B, and user name C all correspond to the first user authority. Therefore, the User name A, user name B, and user name C log in, and they will all log in to the same interactive interface #1.
  • login information and user permissions can be in one-to-one correspondence, for example, a user name corresponds to a user permission, so that each user can obtain the corresponding precisely divided user permissions when logging in. , and then display the corresponding information on the login page.
  • first interface information is displayed, and the first interface information is used to indicate an application programming interface (Application Programming Interface, API) for processing based on the first user authority, that is, to be processed
  • the interface specifically, the first interface information includes, for example, an interface identifier.
  • the displayed first interface information may be different. For example, after logging in to interactive page #1 based on the first user authority, the displayed first interface information includes three interfaces to be processed: interface A, interface B, and interface C; and after logging in to interactive page #1 based on the second user authority, the display The first interface information includes three interfaces to be processed: interface D, interface E, and interface F.
  • the corresponding interactive pages may be the same, but the corresponding first interface information is different.
  • different interactive information can correspond to different developers and reviewers, so that after logging in, the interface they are responsible for will be displayed on the interactive page.
  • Fig. 3 is a schematic diagram of an interactive interface provided by an embodiment of the present disclosure.
  • first interface information is displayed in the first display area of the interactive interface, specifically, the first interface information includes the interface name (API_1, API_2, API_3), and the corresponding interface categories (type1, type2, type3) and responsible persons (user_1, user_1, user_2).
  • a processing identification corresponding to each interface is also included, so as to edit the above-mentioned interface to be processed .
  • the login information corresponding to the first user authority is also displayed, that is, the user name (shown as user_1 in the figure).
  • Step S102 Configure the target interface to be processed as a target state in response to a first operation instruction on the target interface to be processed, wherein the first operation instruction is implemented based on the first user authority.
  • the terminal device obtains the corresponding first operation instruction, and then responds to the first operation instruction to process the target interface to be processed, change the state of the target interface to be processed, and configure it to the target state.
  • This process is equivalent to processing the target interface to be processed. Handle the processing and management process of the interface.
  • FIG. 4 is a schematic diagram of another interactive interface provided by an embodiment of the present disclosure.
  • second interface information is displayed, specifically, including interface Names (API_1, API_2, API_3, API_4), and corresponding interface categories (type1, type2, type3, type4) and responsible persons (user_1, user_1, user_2, user_3).
  • interface Names API_1, API_2, API_3, API_4
  • corresponding interface categories type1, type2, type3, type4
  • responsible persons user_1, user_1, user_2, user_3
  • user_1, user_1, user_2, user_3 responsible persons
  • a processing identifier corresponding to each interface is also included, so as to perform review processing on the above-mentioned pending interfaces.
  • the login information corresponding to the first user authority is also displayed, that is, the user name (shown as user_2 in the figure).
  • the first interface information when logging in with different login information, the first interface information will change accordingly, and the processing identifier used to operate the interface to be processed will also change accordingly.
  • the first operation instruction in the steps of this embodiment is the operation instruction for the processing identifier corresponding to the interface to be processed. More specifically, the first operation instruction is generated after the operation control corresponding to the processing identifier is triggered. instruction. Since the processing identifier changes when the user authority changes, the first operation instruction is implemented based on the first user authority.
  • the first operation instruction can be an interface editing instruction or an interface auditing instruction, and the interface editing instruction or the interface auditing instruction is implemented based on different user rights, wherein, on the one hand, the interface editing instruction is used to edit and modify the target interface to be processed , after the terminal device responds to the interface editing instruction, it will modify the relevant configuration information of the target interface to be processed, so as to achieve the purpose of modifying the target interface to be processed.
  • the interface audit command is used to audit the target interface to be processed. Specifically, after the terminal device responds to the interface audit command, it will display the relevant configuration information of the target interface to be processed, so as to achieve the purpose of user audit .
  • the target status includes a status to be published or a status to be reviewed.
  • the target interface to be processed is configured as pending status; and when the first operation instruction is used to review the target interface to be processed, the target interface to be processed is configured is pending publication.
  • configuring the target interface to be processed as the target state is equivalent to marking the working state of the target interface to be processed. state), by implementing the first operation instruction based on the first user authority, to mark the working state of the target pending interface, and then flow the target pending interface to the corresponding workflow (review, release) based on the mark (target state) , realizing automatic and rapid processing of the target pending interface, and improving the management efficiency of the target pending interface.
  • Step S103 Under preset trigger conditions, publish the target interface to be processed to the open platform according to the target state of the target interface to be processed, or generate second interface information corresponding to the target interface to be processed, the second interface information is used for The target interface to be processed is displayed in the interactive page corresponding to the second user authority.
  • FIG. 5 is a schematic diagram of an interface publishing task workflow provided by an embodiment of the present disclosure, as shown in FIG.
  • There are several working states such as modification state, pending review state, and pending release state.
  • Each working state corresponds to an action script (action script A, action script B, and action script C).
  • the target state obtained in the above steps is information representing the current working state of the node to be processed.
  • the target state can correspond to any one of the state to be modified, the state to be reviewed, and the state to be released.
  • the workflow information representing the realization of the workflow is stored in the terminal device, and the terminal device can determine the current working state of the target interface to be processed according to the workflow information and the target state of the target interface to be processed, and then execute the corresponding action script. specific In other words, publish the target interface to be processed to the open platform, or generate the second interface information corresponding to the target interface to be processed.
  • the state of the interface and the target is synchronized to the interface management server, and the target interface to be processed is released to the open platform through the interface management server, or the second interface information corresponding to the target interface to be processed is generated through the interface management server.
  • the target pending interface when the target status is pending release, the target pending interface will be released to the open platform; and when the target status is pending review, the second interface information corresponding to the target pending interface is generated, and the second interface information is used Display the target interface to be processed in the interactive page corresponding to the second user authority, and let the user with the second user authority review the target interface to be processed through the second interface information, and complete the functionality and security of the interface before release review. Since the entire management process before the release of the interface is realized based on interactive operation and visual interface, the standardization of the interface description method is improved, the difficulty and time-consuming of user review are reduced, and the automatic task advancement is carried out in combination with the workflow , improving the efficiency of the entire interface management process.
  • the first interface information is used to indicate at least one interface to be processed, and the interface to be processed is an application for processing based on the first user authority Program programming interface; in response to the first operation instruction for the target interface to be processed, configure the target interface to be processed as the target state, wherein the first operation instruction is implemented based on the first user authority; under the preset trigger condition, according to the target
  • the target state of the interface to be processed publish the target interface to be processed to the open platform, or generate the second interface information corresponding to the target interface to be processed, the second interface information is used to display the target to be processed interface in the interactive page corresponding to the second user authority Interface processing, by providing corresponding interactive interfaces for roles with different permissions in the interface release process, and performing corresponding processing operations on the interface based on interactive instructions input by users, to realize the visualization and standardization of the management process before the interface release, shortening the Time-consuming management process, improve interface management efficiency.
  • FIG. 6 is a second schematic flow diagram of a permission-based interactive interface publishing method provided by an embodiment of the present disclosure. On the basis of the embodiment shown in FIG. 2, this embodiment introduces the process of creating a new interface in detail.
  • the permission-based method for publishing an interactive interface includes:
  • Step S201 displaying an interactive page corresponding to the first user authority, and obtaining interface configuration parameters in response to a second operation instruction, where the interface configuration parameters map to the remote call service corresponding to the interface to be processed.
  • the first user authority is, for example, the user authority of the development user. Similar to the embodiment shown in FIG. 2 , the login information input by the user, such as user name and password, is used to log in and display the corresponding interactive interface, the interactive page corresponding to the first user authority. Afterwards, the user inputs a second operation for creating an interface, and the terminal device correspondingly generates a second operation instruction, wherein the second operation instruction includes a specific trigger instruction for the control, and corresponding interface configuration parameters, such as the interface input by the user Identification, interface category, etc.
  • the interface configuration parameter is used to map the remote call service (RPC service) corresponding to the interface to be processed. More specifically, the interface configuration parameter includes, for example, a remote procedure call name. By setting the corresponding remote procedure call name for the interface to be processed, the purpose of mapping the interface to be processed to the corresponding PRC service can be realized.
  • RPC service remote call service
  • Step S202 Based on the interface configuration parameters, generate first interface information, the first interface information is used to indicate at least one interface to be processed, the interface to be processed is an API for processing based on the first user authority.
  • the first interface information is generated, including:
  • the interface configuration parameters include a first parameter
  • the first parameter includes at least one of the following: remote procedure call name, method name, business input parameters, internal variable input parameters, response output parameters, and error codes.
  • the remote procedure call name is the name corresponding to the RPC service
  • the method name is the name of the specific method called in the RPC service
  • the interface can be uniquely mapped to a functional function through the remote procedure call name and method name.
  • Business input parameters, internal variable input parameters, and response output parameters are the input parameters and output parameters when calling the function corresponding to the remote procedure call name and method name
  • the error code is the indicator when the function output is abnormal.
  • the interface configuration parameter further includes a second parameter, and the second parameter is used to indicate a second user right to process the interface to be processed.
  • the second parameter may include: API name, API group, person in charge, function description, usage scenario description, authorized account type, whether the setting is public or not, and the like.
  • the second parameter can be regarded as the basic information of the interface.
  • the authority of the API can be determined, indicating the second user authority to process the interface to be generated (the interface to be processed after generation), that is, the authority level or responsible person.
  • FIG. 7 is a schematic diagram of generating first interface information through a configuration page provided by an embodiment of the present disclosure, as shown in FIG. 7
  • the configuration page A is used to obtain the second parameters input by the user, such as interface name, interface category, responsible person, function description, etc., and the user can display the preset content and items therein through the pull-down operation.
  • the terminal device After the user completes the filling, the terminal device obtains the corresponding complete second reference, and then, based on the user's operation for "next step", jumps to display the configuration page B, which is used to obtain the first parameter input by the user, For example, it includes remote procedure call name, method name, business input parameter, internal variable input parameter, response output parameter, etc. More specifically, in the configuration page B, corresponding sub-parameters can also be set for each first parameter, for example Parameter type, Boolean value indicating whether the parameter is necessary, etc. (not shown in the figure). Similarly, the user can display and select the preset content and items through the pull-down operation. After the above configuration process is completed, a new interface is generated by continuing to complete the corresponding instruction (the operation of clicking "next" is shown in the figure). At the same time, first interface information indicating the newly created interface is generated.
  • Step S203 Test the interface to be processed corresponding to the first interface information, and obtain a test result.
  • the interface to be processed may be tested based on the configuration parameters corresponding to the interface to be processed obtained in the above steps.
  • step S203 includes two specific implementation steps of steps S2031 and S2032:
  • Step S2031 Obtain corresponding test data according to the interface configuration parameters.
  • Step S2032 Perform a test based on the test data corresponding to the interface to be processed, and obtain a test result.
  • the interface configuration parameters are the interface configuration parameters obtained through the second operation instruction in the above steps, and then, based on the interface configuration parameters of the interface to be tested, corresponding test data is obtained for testing.
  • the test method is, for example, to directly use online services. After obtaining the interface definition (interface name) and using the fixed application and test store identifier (Token) preset by the open platform, the API request is automatically generated after the input parameters are received. The test interface must return the correct API to pass the test, otherwise it will not pass the test.
  • Step S204 Display test results on the interactive page.
  • Step S205 displaying the first interface information on the interactive page.
  • the user is notified whether there is a configuration error in the newly created interface here, so as to ensure the realization of the interface function and improve the security of the interface. Specifically, for example, if the test is passed, the test result is displayed at the preset position of the interactive interface, such as "configuration is successful"; otherwise, if the test is not passed, the test result is displayed at the preset position of the interactive interface, such as "configuration failed ".
  • the first interface information indicating the newly created interface to be processed is displayed on the interactive interface, and the specific implementation of displaying the first interface information has been described in detail in the embodiment shown in Figure 2, here No longer.
  • the steps in this embodiment also include:
  • Step S206 Edit the interface configuration parameters of the target interface to be processed in response to the interface editing instruction for the target interface to be processed.
  • Step S207 After the editing action corresponding to the interface editing instruction is executed, configure the target interface to be processed as pending review.
  • the interface editing instruction is an implementation of the first operation instruction, and the user edits the established interface to be processed.
  • This process is the process of processing the target interface to be processed in the embodiment shown in FIG. 2 , which will not be repeated here.
  • step S207 includes two specific implementation steps of steps S2071 and S2072:
  • Step S2071 After the editing action corresponding to the interface editing instruction is executed, test the target interface to be processed, and obtain the test result.
  • Step S2072 If the test result is normal, configure the target interface to be processed as pending.
  • Step S208 Under a preset trigger condition, generate second interface information corresponding to the target interface to be processed.
  • the target interface to be processed is configured as an audit state
  • the corresponding audit user with corresponding authority is required to audit the interface.
  • preset trigger conditions such as manual trigger or timing Triggering, generating information for indicating the interface that needs to be audited, that is, the second interface information.
  • the second interface information is similar to the first interface information, and is used to indicate one or more interfaces to be processed.
  • Step S209 Obtain the target user who has the second user authority corresponding to the second interface information.
  • Step S210 Push review task information to the target user, where the review task information is used to prompt the target user to review the target interface to be processed.
  • the second interface information after the second interface information is generated, it will be mapped with the corresponding user authority, and the mapping relationship can be determined based on the parameters in the interface to be processed indicated by the second interface information, such as the "person in charge" parameter. Therefore, based on the second interface information, target users who have the second user authority corresponding to the second interface information can be acquired. Further, the terminal device pushes review task information to the target user through the interface management server, prompting the target user to review the target interface to be processed.
  • the specific implementation manner of pushing the audit task information to the target user includes pushing the information to the user terminal where the target user logs in, so as to prompt the target user to audit.
  • Fig. 10 is a schematic flow diagram of the rights-based interactive interface publishing method provided by the embodiment of the present disclosure III. On the basis of the embodiment shown in Fig. 2, this embodiment introduces the process of reviewing the interface in detail, which can also be located in Fig. After the embodiment steps of the new interface shown in 6, the authority-based interactive interface publishing method includes:
  • Step S301 In the interactive page corresponding to the second user authority, display second interface information, the second interface information is used to indicate at least one interface to be processed, and the interface to be processed is an API for processing based on the second user authority.
  • the second user right is, for example, the user right of the audit user.
  • the second interface information is generated after the process of creating and editing the interface provided by the embodiment shown in FIG. 6 is executed, and is sent to the target user corresponding to the second user authority (in the queue of tasks to be reviewed) through the interface management server.
  • the second interface information When the user logs in with the login information corresponding to the second user authority, the second interface information will be displayed on the interactive interface, and the second interface information is the pending interface that needs to be reviewed.
  • the second interface information may be displayed in a preset display area, for details, refer to the schematic diagram of the interactive interface shown in FIG. 4 .
  • Step S302 Display interface configuration parameters of the target interface to be processed in response to the interface review instruction for the target interface to be processed.
  • the interface audit instruction is an implementation of the first operation instruction, and the interface audit instruction is implemented based on the corresponding second user authority, that is, only the target user with the second user authority can input the interface audit instruction, Therefore, the terminal device executes the steps in this embodiment.
  • the interface configuration parameters of the target interface to be processed are displayed, for example, including API name, API group, responsible person, function description, usage scenario description, authorized account type, setting whether Public and other basic parameters, as well as call parameters such as remote procedure call name, method name, business input parameters, internal variable input parameters, response output parameters, and error codes. More specifically, the terminal device displays all the interface configuration parameters by means of a preview image, so that auditors can quickly review the interface configuration parameters.
  • Step S303 Responding to the confirmation instruction input by the user, configure the target pending interface to be released.
  • Step S304 Publish the target pending interface in the state of to-be-published to the open platform.
  • the terminal device configures the target pending interface to be released through the interface management server, and then, for example, based on the trigger instruction sent to the interface management server, controls the interface management server Publish all target pending interfaces that are in the pending state to the open platform to complete the interface publishing process.
  • the interactive interface includes a first sub-interface and/or a second sub-interface, the first sub-interface is used to display the pending interfaces that are not currently released to the open platform; the second sub-interface is used to display the currently published A pending interface to the open platform.
  • the interface After the interface is published to the open platform, the interface will be marked as a published interface by the terminal device and synchronized to the interface management server.
  • the published interfaces are displayed in the second sub-interface, and the interfaces that are still in the review or modification state are displayed in the first sub-interface. In this way, the fine-grained management of published interfaces and unpublished interfaces can be realized, and the comprehensive management cost of open interfaces can be reduced.
  • the audit user can quickly obtain the interface to be audited, and combine the visual interface and fixed display rules to complete the quick audit of the interface to be audited. Improve the efficiency of interface management and review during the interface release process, and reduce time-consuming.
  • FIG. 11 is a structural block diagram of a permission-based interactive interface publishing device provided by an embodiment of the present disclosure. For ease of description, only the parts related to the embodiments of the present disclosure are shown. Referring to Fig. 11, the authority-based interactive interface issuing device 4 includes:
  • the display module 41 is configured to display first interface information in the interactive page corresponding to the first user authority, the first interface information is used to indicate at least one interface to be processed, and the interface to be processed is an application program for processing based on the first user authority programming interface;
  • the configuration module 42 is configured to configure the target to-be-processed interface as a target state in response to a first operation instruction for the target to-be-processed interface, wherein the first operation instruction is implemented based on the first user authority;
  • the issuing module 43 is configured to publish the target interface to be processed to the open platform according to the target state of the target interface to be processed under preset trigger conditions, or generate second interface information corresponding to the target interface to be processed, the second interface The information is used to display the target interface to be processed in the interactive page corresponding to the second user authority.
  • the first operation instruction includes an interface editing instruction
  • the configuration module 42 is specifically configured to: edit the interface configuration parameters of the target interface to be processed in response to the interface editing instruction for the target interface to be processed; After the editing action corresponding to the interface editing command is executed, configure the target pending interface to be in the pending review state;
  • the issuing module 43 is specifically configured to: generate second interface information corresponding to the target interface to be processed if the target interface to be processed is in a pending state.
  • the configuration module 42 when the configuration module 42 configures the target pending interface to be in the pending review state after the editing action corresponding to the interface editing instruction is executed, it is specifically used for: after the editing action corresponding to the interface editing instruction is executed Finally, test the target interface to be processed to obtain the test result; if the test result is normal, configure the target interface to be processed as pending.
  • the first operation instruction includes an interface audit instruction
  • the configuration module 42 is specifically configured to: respond to the interface audit instruction for the target interface to be processed, display the interface configuration parameters of the target interface to be processed;
  • the confirmation command input by the user configures the target interface to be processed to be released;
  • the publishing module 43 is specifically used to publish the target interface to be processed to the open platform if the target interface to be processed is in the state to be released.
  • the publishing module 43 is further configured to: obtain the target user who has the second user authority corresponding to the second interface information; Push the review task information, which is used to prompt the target user to review the target interface to be processed.
  • the configuration module 42 before displaying the first interface information, is further configured to: obtain interface configuration parameters in response to the second operation instruction, and the interface configuration parameters map to the remote call service corresponding to the interface to be processed ; Generate first interface information based on interface configuration parameters.
  • the interface configuration parameters include a first parameter
  • the first parameter includes at least one of the following: remote procedure call name, method name, business input parameters, internal variable input parameters, response output parameters, and error codes.
  • the interface configuration parameters further include a second parameter, and the second parameter is used to indicate a second user right to process the interface to be processed.
  • the configuration module 42 is further configured to: test the interface to be processed corresponding to the first interface information to obtain a test result; the display module 41 is also configured to: Display the test results on the interactive page.
  • the configuration module 42 when the configuration module 42 tests the interface to be processed corresponding to the first interface information and obtains the test result, it is specifically used to: obtain corresponding test data according to the interface configuration parameters, and based on the test data corresponding The interface to be processed is tested and the test result is obtained.
  • the interactive interface includes a first sub-interface, and/or a second sub-interface, the first sub-interface is used to display the interfaces to be processed that are not currently released to the open platform; the second sub-interface uses To display the pending interfaces that have been released to the open platform.
  • the authority-based interactive interface issuing device 4 provided in this embodiment can implement the technical solutions of the above method embodiments, and its implementation principle and technical effect are similar, so this embodiment will not repeat them here.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in FIG. 12 , the electronic device 5 includes
  • memory 52 stores computer-executable instructions
  • the processor 51 executes the computer-executed instructions stored in the memory 52 to implement the rights-based interactive interface publishing method in the embodiments shown in FIGS. 2-10 .
  • processor 51 and the memory 52 are connected through a bus 53 .
  • the electronic device 900 may be a terminal device or a server.
  • the terminal equipment may include but not limited to mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA for short), tablet computers (Portable Android Device, PAD for short), portable multimedia players (Portable Media Player, referred to as PMP), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital TVs, desktop computers, etc.
  • PDA Personal Digital Assistant
  • PMP portable multimedia players
  • mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals)
  • fixed terminals such as digital TVs, desktop computers, etc.
  • the electronic device shown in FIG. 13 is only an example, and should not limit the functions and scope of use of the embodiments of the present disclosure.
  • an electronic device 900 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 901, which may be stored in a read-only memory (Read Only Memory, referred to as ROM) 902 or from a storage device. 908 loads the programs in the random access memory (Random Access Memory, RAM for short) 903 to execute various appropriate actions and processes. In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are also stored.
  • the processing device 901, ROM 902, and RAM 903 are connected to each other through a bus 904.
  • An input/output (I/O) interface 905 is also connected to the bus 904 .
  • an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; ), a speaker, a vibrator, etc.
  • a storage device 908 including, for example, a magnetic tape, a hard disk, etc.
  • the communication means 909 may allow the electronic device 900 to perform wireless or wired communication with other devices to exchange data. While FIG. 13 shows electronic device 900 having various means, it is to be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts.
  • the computer program may be downloaded and installed from a network via communication means 909 , or from storage means 908 , or from ROM 902 .
  • the processing device 901 When the computer program is executed by the processing device 901, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • Embodiments of the present disclosure also include a computer program that, when executed by a processor, implements the above-mentioned functions defined in the methods of the embodiments of the present disclosure.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • a computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof.
  • Computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (Electrical Programmable ROM, EPROM or flash memory), optical fiber, portable compact disk read-only memory (Compact Disc ROM, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • the program code contained on the computer readable medium can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, RF (Radio Frequency, radio frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device is made to execute the methods shown in the above-mentioned embodiments.
  • Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external A computer (connected via the Internet, eg, using an Internet service provider).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the unit does not constitute a limitation of the unit itself under certain circumstances, for example, the first obtaining unit may also be described as "a unit for obtaining at least two Internet Protocol addresses".
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (Field Programmable Gate Arrays, FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (Application Specific Standard Product, ASSP), System on Chip (System on Chip, SOC), Complex Programmable Logic Device (Complex Programmable Logic Device, CPLD) and so on.
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
  • a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.
  • a permission-based method for publishing an interactive interface including:
  • the interactive page corresponding to the first user right display first interface information
  • the first interface information is used to indicate at least one interface to be processed
  • the interface to be processed is an application program for processing based on the first user right programming interface
  • the target interface to be processed in response to a first operation instruction for the target interface to be processed, configure the target interface to be processed as a target state, wherein the first operation instruction is implemented based on the first user authority; upon preset triggering Under the condition, according to the target status of the target interface to be processed, the target interface to be processed is released to the open platform, or the second interface information corresponding to the target interface to be processed is generated, and the second interface information is used for The target interface to be processed is displayed in the interaction page corresponding to the second user authority.
  • the first operation instruction includes an interface editing instruction
  • configuring the target interface to be processed as a target state includes :
  • edit the interface configuration parameters of the target interface to be processed In response to the interface editing instruction for the target interface to be processed, edit the interface configuration parameters of the target interface to be processed; after the editing action corresponding to the interface editing instruction is executed, edit the target interface to be processed Configured as pending review; under preset trigger conditions, generating the second interface information corresponding to the target pending interface according to the target status of the target pending interface, including: if the target pending interface If the status is pending review, the second interface information corresponding to the target interface to be processed is generated.
  • configuring the target pending interface to be in a pending state includes: performing the editing action corresponding to the interface editing instruction After the execution is completed, the target interface to be processed is tested to obtain a test result; if the test result is normal, the target interface to be processed is configured as a pending state.
  • the first operation instruction includes an interface review instruction, and in response to the first operation instruction for the target interface to be processed, configure the target interface to be processed as a target state, including: responding Based on the interface review instruction for the target interface to be processed, display the interface configuration parameters of the target interface to be processed; in response to the confirmation instruction input by the user, configure the target interface to be processed as a state to be released; Under the set trigger condition, according to the target state of the target to be processed interface, publishing the target to be processed interface to the open platform includes: if the target to be processed interface is in the state to be released, then publishing the target to be processed The interface is published to the open platform.
  • the second interface information corresponding to the target interface to be processed after generating the second interface information corresponding to the target interface to be processed, it further includes: acquiring a target user who has the second user authority corresponding to the second interface information; The target user pushes review task information, and the review task information is used to prompt the target user to review the target interface to be processed.
  • the method before displaying the first interface information, further includes: acquiring interface configuration parameters in response to the second operation instruction, where the interface configuration parameters map to the interface to be processed The remote invocation service; based on the interface configuration parameters, generating the first interface information.
  • the interface configuration parameters include a first parameter, and the first parameter includes at least one of the following: remote procedure call name, method name, business input parameter, internal variable input parameter, response Output parameter, error code.
  • the interface configuration parameters further include a second parameter, and the second parameter is used to indicate a second user right to process the interface to be processed.
  • the method further includes: testing the interface to be processed corresponding to the first interface information to obtain a test result; The page displays the test results.
  • the testing the interface to be processed corresponding to the first interface information to obtain the test result includes: acquiring corresponding test data according to the interface configuration parameters; based on the The test data is tested corresponding to the interface to be processed, and the test result is obtained.
  • the interactive interface includes a first sub-interface and/or a second sub-interface, and the first sub-interface is used to display pending interfaces that are not currently published to the open platform ;
  • the second sub-interface is used to display the interfaces to be processed that have been released to the open platform.
  • a permission-based interactive interface publishing apparatus including:
  • a display module configured to display first interface information in the interactive page corresponding to the first user authority, the first interface information is used to indicate at least one interface to be processed, and the interface to be processed is based on the first user authority Application programming interface for processing;
  • a configuration module configured to configure the target interface to be processed in a target state in response to a first operation instruction for the target interface to be processed, wherein the first operation instruction is implemented based on the first user authority;
  • the issuing module is configured to publish the target interface to be processed to an open platform according to the target status of the target interface to be processed under a preset trigger condition, or generate a second interface corresponding to the target interface to be processed Information, the second interface information is used to display the target interface to be processed in the interaction page corresponding to the second user authority.
  • the first operation instruction includes an interface editing instruction
  • the configuration module is specifically configured to: respond to the interface editing instruction for the target interface to be processed, The interface configuration parameters of the processing interface are edited; after the editing action corresponding to the interface editing instruction is executed, the target interface to be processed is configured as a state to be reviewed; the publishing module is specifically used for: if the target is to be If the processing interface is in the pending status, generate the second interface information corresponding to the target pending interface.
  • the configuration module configures the target interface to be processed into a state to be reviewed after the editing action corresponding to the interface editing instruction is executed, it is specifically used to: After the editing action corresponding to the interface editing instruction is executed, the target interface to be processed is tested to obtain a test result; if the test result is normal, the target interface to be processed is configured as a pending state.
  • the first operation instruction includes an interface review instruction
  • the configuration module is specifically configured to: display the target pending interface in response to the interface review instruction for the target pending interface Processing the interface configuration parameters of the interface; in response to the confirmation instruction input by the user, configuring the target interface to be processed as a state to be released; the publishing module is specifically used for: if the target interface to be processed is in the state to be released, then Publishing the target interface to be processed to an open platform.
  • the publishing module is further configured to: acquire the second user authority corresponding to the second interface information the target user; pushing review task information to the target user, where the review task information is used to prompt the target user to review the target interface to be processed.
  • the configuration module before displaying the first interface information, is further configured to: acquire an interface configuration parameter in response to a second operation instruction, and the interface configuration parameter maps the pending A remote call service corresponding to the interface; generating the first interface information based on the interface configuration parameters.
  • the interface configuration parameters include a first parameter, and the first parameter includes at least one of the following: remote procedure call name, method name, business input parameter, internal variable input parameter, response Output parameter, error code.
  • the interface configuration parameters further include a second parameter, and the second parameter is used to indicate a second user right to process the interface to be processed.
  • the configuration module is further configured to: test the interface to be processed corresponding to the first interface information to obtain a test result;
  • the display module is further configured to: display the test result on the interactive page.
  • the configuration module when the configuration module tests the interface to be processed corresponding to the first interface information and obtains the test result, it is specifically configured to: obtain the corresponding The test data is based on the test data corresponding to the interface to be processed to be tested to obtain the test result.
  • the interactive interface includes a first sub-interface and/or a second sub-interface, and the first sub-interface is used to display pending interfaces that are not currently published to the open platform ;
  • the second sub-interface is used to display the interfaces to be processed that have been released to the open platform.
  • an electronic device including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer-executable instructions
  • the processor executes the computer-executed instructions stored in the memory, so as to implement the authority-based interactive interface publishing method described in the first aspect and various possible designs of the first aspect.
  • a computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, Realize the authority-based interactive interface publishing method described in the first aspect and various possible designs of the first aspect.
  • the embodiments of the present disclosure provide a computer program product, including a computer program.
  • the computer program When the computer program is executed by a processor, the permission-based interactive interface described in the first aspect and various possible designs of the first aspect is implemented. Publish method.
  • an embodiment of the present disclosure provides a computer program, which, when executed by a processor, implements the rights-based interactive interface publishing method described in the first aspect and various possible designs of the first aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本公开实施例提供一种基于权限的交互式接口发布方法、装置、电子设备、计算机可读存储介质、计算机程序产品以及计算机程序,通过在第一用户权限对应的交互页面内,显示第一接口信息,第一接口信息用于指示至少一个待处理接口,待处理接口为基于第一用户权限进行处理的应用程序编程接口;响应于针对目标待处理接口的第一操作指令,将目标待处理接口配置为目标状态,其中,第一操作指令基于第一用户权限实现;在预设的触发条件下,根据目标待处理接口的目标状态,将目标待处理接口发布至开放平台,或者,生成目标待处理接口对应的第二接口信息,第二接口信息用于在第二用户权限对应的交互页面内显示目标待处理接口,实现对接口发布前的管理过程的可视化和标准化,提高接口发布管理效率。

Description

基于权限的交互式接口发布方法、装置及电子设备
相关申请的交叉引用
本申请要求于2022年2月28日提交中国专利局、申请号202210187940.0、发明名称为“基于权限的交互式接口发布方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本文中。
技术领域
本公开实施例涉及互联网技术领域,尤其涉及一种基于权限的交互式接口发布方法、装置、电子设备、计算机可读存储介质、计算机程序产品以及计算机程序。
背景技术
开放平台(Open Platform)是指软件系统通过公开其应用程序编程接口(Application Programming Interface,API),来使外部的程序可以使用软件系统的功能或资源,而不需要更改该软件系统的源代码。在互联网应用场景中,开放平台通常用于将网站服务封装成一系列的接口(API),并开放给其他开发者使用,这种行为即接口发布(Open API)。
现有技术中,服务提供商在进行接口的开发和发布的过程中,通常是通过开发人员手动编写功能服务以及对应的开放接口的程序代码,并将程序代码输出给后续的审核人员,再经审核人员进行相应的代码查验,确保接口的相关参数正确、安全后,再向开放平台发布。
现有技术中接口发布的方案,造成了开放接口发布前的管理过程耗时长、效率低的问题。
发明内容
本公开实施例提供一种基于权限的交互式接口发布方法、装置、电子设备、计算机可读存储介质、计算机程序产品以及计算机程序。
第一方面,本公开实施例提供一种基于权限的交互式接口发布方法,包括:
在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
第二方面,本公开实施例提供一种基于权限的交互式接口发布装置,包括:
显示模块,用于在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;
配置模块,用于响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;
发布模块,用于在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
第三方面,本公开实施例提供一种电子设备,包括:
处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第六方面,本公开实施例提供一种计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
本实施例提供的基于权限的交互式接口发布方法、装置、电子设备、计算机可读存储介质、计算机程序产品以及计算机程序,通过在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
附图说明
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的基于权限的交互式接口发布方法的一种应用场景图。
图2为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图一。
图3为本公开实施例提供的一种交互界面的示意图。
图4为本公开实施例提供的另一种交互界面的示意图。
图5为本公开实施例提供的一种接口发布任务工作流的示意图。
图6为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图二。
图7为本公开实施例提供的一种通过配置页面生成第一接口信息的示意图。
图8为图6所示实施例步骤S203的具体实现步骤流程图。
图9为图6所示实施例步骤S207的具体实现步骤流程图。
图10为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图三。
图11为本公开实施例提供的基于权限的交互式接口发布装置的结构框图。
图12为本公开实施例提供的一种电子设备的结构示意图。
图13为本公开实施例提供的电子设备的硬件结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
下面对本公开实施例的应用场景进行解释:
图1为本公开实施例提供的基于权限的交互式接口发布方法的一种应用场景图,本公开实施例提供的基于权限的交互式接口发布方法,可以应用于开放接口发布的应用场景。具体地,如图1所示,本公开实施例提供的方法,可以应用于终端设备,终端设备与接口管理服务器通信连接,接口管理服务器与运行开放平台的平台服务器通信连接,或者,接口管理服务器同时用于运行开放平台,其中,终端设备一侧运行用户端程序(Client),例如客户端软件或浏览器,而接口管理服务器一侧运行服务端程序(Server),接口开发者利用不同权限的终端设备(如图1中所示的终端设备A和终端设备B)通过执行本公开实施例提供的基于权限的交互式接口发布方法,对接口进行处理,并将处理结果同步至接口管理服务器,实现对开放接口的管理,再由接口管理服务器将处理后的开放接口发布至开放平台。而外部开发者,可以通过访问平台服务器内运行的开放平台,获得开放接口。
现有技术中,服务提供商在进行接口的开发和发布的过程中,通常是通过开发人员手动编写功能服务以及对应的开放接口的程序代码,尤其是对于大型软件系统,负责接口开发的开发人员人数众多,每个开发人员负责若干个接口的开发和维护。同时,由于开放平台是通过开放接口,使外部的第三方软件、网站能够使用服务提供商所提供的服务资源和服务功能,对于其自身的服务资源,需要在业务维度进行分配,更具体地,例如,对一些功能接口进行限制,防止外部用户(外部应用)的过度访问而占用过多的系统资源;再例如,将一些功能接口仅对部分外部用户(外部应用)开放。基于上述原因,在接口发布前,需要更高级别、具有更高权限的审核用户,对开发人员所开发的接口的具体参数进行审核,以保证接口的参数正确、安全,之后,再向开放平台发布。
然而,现有技术中在开发人员手动编写功能服务以及对应的开放接口的程序代码后,只能以程序代码的方式输出给后续的审核人员,再由审核人员进行相应的代码查验,确保接口的相关参数正确、安全。由于开发人员编写的程序代码的习惯、风格上的差异性,导致审核人员在通过代码查验方式进行审核的过程中,存在审核过程耗时长、响应实时性差的问题,进而导致开放接口发布前的管理过程耗时长、效率低的问题。
本公开实施例提供一种基于权限的交互式接口发布方法、装置及电子设备以解决上述问题。
参考图2,图2为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图一。本实施例的方法可以应用在终端设备中,该基于权限的交互式接口发布方法包括:
步骤S101:在第一用户权限对应的交互页面内,显示第一接口信息,第一接口信息用于指示至少一个待处理接口,待处理接口为基于第一用户权限进行处理的应用程序编程接口。
示例性地,交互页面即终端设备内运行的用户端(例如浏览器)的人机交互界面,终端设备内运行的用户端启动后,会显示相应的登录界面,通过用户输入的登录信息,例如用户名和密码,登录并显示对应的交互界面。其中,示例性地,不用的登录信息对应不同的用户权限,而不同权限对应不同的交互界面。例如,以用户名A登录后,用户名A对应的用户权限为第一用户权限,相应的登录至交互页面#1;而以用户名B登录后,用户名B对应的用户权限为第二用户权限,相应的登录至交互页面#2。因此,在根据登录信息,获取第一用户权限后,可以基于预设的用户权限与交互页面的映射关系,登录对应的交互页面。其中,根据登录信息获取用户权限的具体实现方式,为本领域技术人员知晓的现有技术,此处不再赘述。
需要说明的是,在一种可能的实现方式中,不同的登录信息,可以对应相同的用户权限,例如,用户名A、用户名B、用户名C,均对应第一用户权限,因此,以用户名A、用户名B、用户名C进行登录,均会登录至同一个交互界面#1。而在另一种可能的实现方式中,登录信息与用户权限可以是一一对应的,例如一个用户名,对应一个用户权限,从而使每个用户在登录时,获得对应的精确划分的用户权限,进而在登录页面内显示对应的信息。
进一步地,在交互界面内的预设区域内,显示第一接口信息,该第一接口信息用于指示基于第一用户权限进行处理的应用程序编程接口(Application Programming Interface,API),即待处理接口,具体地,第一接口信息例如包括接口标识。对于不同的用户权限,在登录交互界面后,所显示的第一接口信息可以不同。例如,基于第一用户权限登录交互页面#1后,显示的第一接口信息中包括接口A、接口B、接口C三个待处理接口;而基于第二用户权限登录交互页面#1后,显示的第一接口信息中包括接口D、接口E、接口F三个待处理接口。也即,对于不同的用户权限,其所对应的交互页面可以是相同的,但是其所对应的第一接口信息是不同的。在具体的应用场景下,不同的交互信息,可以对应不同的开发人员、审核人员,从而在登陆后,在交互页面内显示其所负责的接口。
图3为本公开实施例提供的一种交互界面的示意图,如图3所示,在交互界面内的第一显示区域内,显示有第一接口信息,具体地,第一接口信息包括接口名称(API_1、API_2、API_3),以及对应的接口类目(type1、type2、type3)和责任人(user_1、user_1、user_2)。可选地,在交互界面内的第二显示区域内,还包括每一个接口对应的处理标识(例如图中所示的查看、编辑、删除等),以用于对上述待处理接口进行编辑处理。可选地,在交互界面内的第三显示区域,还显示有第一用户权限对应的登录信息,即用户名(图中示为user_1)。
步骤S102:响应于针对目标待处理接口的第一操作指令,将目标待处理接口配置为目标状态,其中,第一操作指令基于第一用户权限实现。
示例性地,在显示交互界面后,通过交互界面内的第一接口信息,将若干个待处理接口展示给用户,之后,用户根据需要,通过针对其中的目标待处理接口实施第一操作,使终端设备获得对应的第一操作指令,进而响应第一操作指令而对其中的目标待处理接口进行处理,改变目标待处理接口的状态,将其配置为目标状态,该过程即相当于对目标待处理接口的处理、管理过程。
示例性地,图4为本公开实施例提供的另一种交互界面的示意图,如图4所示,在交互界面内的第一显示区域内,显示有第二接口信息,具体地,包括接口名称(API_1、API_2、API_3、API_4),以及对应的接口类目(type1、type2、type3、type4)和责任人(user_1、user_1、user_2、user_3)。在交互界面内的第二显示区域内,还包括每一个接口对应的处理标识(例如图中所示的查看、审核等),以用于对上述待处理接口进行审核处理。在交互界面内的第三显示区域,还显示有第一用户权限对应的登录信息,即用户名(图中示为user_2)。参考图3和图4所示的交互界面示意图,当以不同的登录信息登录时,第一接口信息会随之改变,通过用于对待处理接口进行操作的处理标识也随之变化。示例性地,本实施例步骤中的第一操作指令,即为针对待处理接口对应的处理标识的操作指令,更具体地,第一操作指令例如为处理标识对应的操作控件被触发后生成的指令。由于在用户权限变化时,处理标识随之变化,因此,第一操作指令基于第一用户权限实现。
具体地,第一操作指令可以为接口编辑指令或接口审核指令,接口编辑指令或接口审核指令基于不同的用户权限实现,其中,一方面,接口编辑指令用于对目标待处理接口进行编辑、修改,终端设备对接口编辑指令进行响应后,会修改目标待处理接口的相关配置信息,从而实现对目标待处理接口进行修改的目的。而另一方面,接口审核指令用于对目标待处理接口进行审核,具体地,终端设备对接口审核指令进行响应后,会对目标待处理接口的相关配置信息进行展示,从而实现用户审核的目的。
在基于第一操作指令对目标待处理接口进行处理的过程结束后,相当于已经完成了对目标待处理接口的编辑或者审核的过程,之后,将目标待处理接口配置为对应的目标状态,具体地,目标状态包括待发布状态或待审核状态。当第一操作指令用于对目标待处理接口进行编辑时,将目标待处理接口配置为待审核状态;而当第一操作指令用于对目标待处理接口进行审核时,将目标待处理接口配置为待发布状态。
本实施例步骤中,将目标待处理接口配置为目标状态,相当于对目标待处理接口的工作状态进行标记,不同的目标状态,对应待处理接口不同的工作状态(例如待审核状态、待发布状态),通过基于第一用户权限实现第一操作指令,来对目标待处理接口的工作状态进行标记,之后基于该标记(目标状态)将目标待处理接口流向对应的工作流程(审核、发布),实现对目标待处理接口的自动化快速处理,提高目标待处理接口进行管理的效率。
步骤S103:在预设的触发条件下,根据目标待处理接口的目标状态,将目标待处理接口发布至开放平台,或者,生成目标待处理接口对应的第二接口信息,第二接口信息用于在第二用户权限对应的交互页面内显示目标待处理接口。
示例性地,在获得目标待处理接口的目标状态后,基于目标待处理接口的目标状态,自动对目标待处理接口进行处理,从而实现目标待处理接口的发布任务的推动。其中,对于接口发布任务是基于预设的工作流实现的,图5为本公开实施例提供的一种接口发布任务工作流的示意图,如图5所示,其中在工作流flow1中,包括待修改状态、待审核状态、待发布状态几个工作状态(即工作流中的节点),各工作状态对应一个动作脚本(动作脚本A、动作脚本B、动作脚本C)。而上述步骤中获得的目标状态,即表征待处理节点当前的工作状态的信息,参考图5所示,目标状态可以对应待修改状态、待审核状态、待发布状态中的任意一种。表征该工作流实现的工作流信息存储在终端设备,终端设备根据该工作流信息和目标待处理接口的目标状态,可确定目标待处理接口当前的工作状态,进而执行对应的动作脚本。具体 地,即将目标待处理接口发布至开放平台,或者,生成目标待处理接口对应的第二接口信息,其中,上述过程可以是终端设备通过接口管理服务器实现的,即,终端设备通过将目标待处理接口和目标状态同步至接口管理服务器,通过接口管理服务器将目标待处理接口发布至开放平台,或者,通过接口管理服务器生成目标待处理接口对应的第二接口信息。
其中,当目标状态为待发布状态时,将将目标待处理接口发布至开放平台;而当目标状态为待审核状态时,在生成目标待处理接口对应的第二接口信息,第二接口信息用于在第二用户权限对应的交互页面内显示目标待处理接口,通过第二接口信息,让具有第二用户权限的用户对该目标待处理接口进行审核,完成接口发布前的功能性和安全性审核。由于在接口发布前的整个管理过程,是基于交互操作和可视化界面的方式实现的,提高了接口描述方式的规范性,降低了用户审核的难度和耗时,并结合工作流进行自动化的任务推进,提高了整个接口管理过程的效率。
在本实施例中,通过在第一用户权限对应的交互页面内,显示第一接口信息,第一接口信息用于指示至少一个待处理接口,待处理接口为基于第一用户权限进行处理的应用程序编程接口;响应于针对目标待处理接口的第一操作指令,将目标待处理接口配置为目标状态,其中,第一操作指令基于第一用户权限实现;在预设的触发条件下,根据目标待处理接口的目标状态,将目标待处理接口发布至开放平台,或者,生成目标待处理接口对应的第二接口信息,第二接口信息用于在第二用户权限对应的交互页面内显示目标待处理接口,通过为接口发布过程中不同权限的角色提供相应的交互界面,并基于用户输入的交互式指令,对接口进行相应的处理操作,实现对接口发布前的管理过程的可视化和标准化,缩短管理过程的耗时,提高接口管理效率。
图6为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图二。本实施例在图2所示实施例的基础上,详细介绍了新建接口的过程,该基于权限的交互式接口发布方法包括:
步骤S201:显示第一用户权限对应的交互页面,并响应于第二操作指令,获取接口配置参数,接口配置参数映射待处理接口所对应的远程调用服务。
示例性地,第一用户权限例如为开发用户的用户权限。与图2所示实施例类似,通过用户输入的登录信息,例如用户名和密码,登录并显示对应的交互界面,第一用户权限对应的交互页面。之后,用户输入用于新建接口的第二操作,终端设备对应的生成第二操作指令,其中,第二操作指令包括具体的针对控件的触发指令,以及对应的接口配置参数,例如用户输入的接口标识、接口类目等。其中,接口配置参数用于映射待处理接口所对应的远程调用服务(RPC服务),更具体地,接口配置参数例如包括远程过程调用名称。通过为待处理接口设置对应的远程过程调用名称,可以实现待处理接口映射至对应的PRC服务的目的。
步骤S202:基于接口配置参数,生成第一接口信息,第一接口信息用于指示至少一个待处理接口,待处理接口为基于第一用户权限进行处理的应用程序编程接口。
具体地,基于接口配置参数,生成第一接口信息,包括:
基于接口配置参数,配置一个或多个待生成的接口,之后,基于该配置后的一个或多个待生成的接口,生成第一接口信息。示例性地,接口配置参数包括第一参数,第一参数包括以下至少一种:远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码。其中,远程过程调用名称即RPC服务对应的名称,方法名即RPC服务中调用的具体方法的名 称,通过远程过程调用名称、方法名,可以将接口唯一的映射至一个功能函数。业务入参、内部变量入参、响应出参,即调用该远程过程调用名称、方法名所对应的函数时的输入参数和输出参数,错误码即函数输出异常时的指示标识。
进一步地,示例性地,接口配置参数还包括第二参数,第二参数用于指示处理待处理接口的第二用户权限。示例性地,第二参数可包括:API名称、API分组、责任人、功能描述、使用场景说明、授权账号类型、设置是否公开等。第二参数可以视为接口的基本信息,通过第二参数,可以实现对API的权限归属的确定,指示处理待生成的接口(生成后即为待处理接口)的第二用户权限,即权限等级或责任人。
进一步地,基于接口配置参数生成第一接口信息的过程,可以通过对应的配置页面来实现,图7为本公开实施例提供的一种通过配置页面生成第一接口信息的示意图,如图7所示,配置页面A用于获得用户输入的第二参数,例如包括接口名称、接口类目、责任人、功能描述等,用户可以通过下拉操作,来显示其中预设的内容和条目。在用户填写完毕后,终端设备获得相应的完整的第二参照,之后,基于用户的针对“下一步”的操作,跳转显示配置页面B,配置页面B用于获得用户输入的第一参数,例如包括远程过程调用名称、方法名、业务入参、内部变量入参、响应出参等,更具体地,在配置页面B内,还可以针对每个第一参数,设置相应的子参数,例如参数类型、表征参数是否必要的布尔值等(图中未示出)。类似的,用户可以通过下拉操作,来显示并选择其中预设的内容和条目。在上述配置过程完成后,通过继续相应完成指令(图中示为点击“下一步”的操作)即生成一个新建的接口。同时,生成指示该新建的接口的第一接口信息。
本实施例中,由于新建接口的流程是标准化的,因此在对该新建的接口进行二次编辑或审核的过程中,结合可视化的方式,避免了代码查验方式进行修改和审核造成的耗时长、效率低的问题。
步骤S203:对第一接口信息对应的待处理接口进行测试,得到测试结果。
示例性地,在待处理接口生成后,为了保证待处理接口配置的正确性,可以基于上述步骤中获得的待处理接口对应配置参数,对待处理接口进行测试。
可选地,如图8所示,步骤S203包括步骤S2031、S2032两个具体的实现步骤:
步骤S2031:根据接口配置参数,获取对应的测试数据。
步骤S2032:基于测试数据对应待处理接口进行测试,得到测试结果。
其中,示例性地,接口配置参数即在上述步骤中,通过第二操作指令获得的接口配置参数,之后,基于待测试接口的接口配置参数,获得对应测试数据进行测试。具体地,测试方式例如为直接使用线上服务,在获得到接口定义(接口名称)后使用开放平台预设的固定应用与测试店铺标识(Token)后,自动生成入参后发起API请求,待测试接口返回正确的API才能通过测试,反之则不通过测试。
步骤S204:在交互页面显示测试结果。
步骤S205:在交互页面显示第一接口信息。
通过显示测试结果,告知用户此处新建的接口是否存在配置错误,保证接口功能的实现,并提高接口的安全性。具体地,例如,若通过测试,在交互界面的预设位置显示该测试结果,例如“配置成功”;反之,若未通过测试,在交互界面的预设位置显示该测试结果,例如“配置失败”。
进一步地,测试结果完成的同时或之后,在交互界面显示指示新建的待处理接口的第一接口信息,显示第一接口信息的具体实现在图2所示实施例中已进行详细描述,此处不再赘述。
可选地,本实施例步骤还包括:
步骤S206:响应于针对目标待处理接口的接口编辑指令,对目标待处理接口的接口配置参数进行编辑。
步骤S207:在接口编辑指令对应的编辑动作执行完毕后,将目标待处理接口配置为待审核状态。
其中,示例性地,接口编辑指令为第一操作指令的一种实现方式,用户对已经建立的待处理接口进行编辑。该过程即图2所示实施例中,对目标待处理接口进行处理的过程,此处不再进行赘述。
可选地,如图9所示,步骤S207包括步骤S2071、S2072两个具体的实现步骤:
步骤S2071:在接口编辑指令对应的编辑动作执行完毕后,对目标待处理接口进行测试,得到测试结果。
步骤S2072:若测试结果正常,则将目标待处理接口配置为待审核状态。
示例性地,在基于接口编辑指令对目标待处理接口进行编辑后,仍然存在编辑错误的可能性,为了确保编辑后的目标待处理接口的正确性,在接口编辑指令对应的编辑动作执行完毕后,对目标待处理接口进行测试,在根据测试结果确认编辑正确后,再将目标待处理接口配置为待审核状态。从而提高接口配置过程的正确性和效率,检索审核过程的工作量。该测试过程与步骤S203中的测试过程类似,此处不再赘述。
步骤S208:在预设的触发条件下,生成目标待处理接口对应的第二接口信息。
进一步地,在该目标待处理接口配置为审核状态后,根据具体地工作流,后续需要对应的具有相应权限的审核用户对该接口进行审核,在预设的触发条件下,例如手动触发或定时触发,生成用于指示该需要审核的接口的信息,即第二接口信息。其中,该第二接口信息与第一接口信息类似,用于指示一个或多个待处理接口。
步骤S209:获取拥有第二接口信息对应的第二用户权限的目标用户。
步骤S210:向目标用户推送审核任务信息,审核任务信息用于提示目标用户对目标待处理接口进行审核。
示例性地,在第二接口信息生成后,会与对应用户权限产生映射,该映射关系可以基于第二接口信息所指示的待处理接口中的参数,例如“责任人”参数确定。因此,基于第二接口信息,可以获取拥有第二接口信息对应的第二用户权限的目标用户。进一步地,终端设备通过接口管理服务器,向该目标用户推送审核任务信息,提示目标用户对目标待处理接口进行审核。其中,在一种可能的实现方式中,向目标用户推送审核任务信息的具体实现方式,包括向目标用户所登录的用户端进行推送,以提示目标用户审核。
图10为本公开实施例提供的基于权限的交互式接口发布方法的流程示意图三,本实施例在图2所示实施例的基础上,详细介绍了审核接口的过程,该过程也可以位于图6所示的新建接口的实施例步骤之后,该基于权限的交互式接口发布方法包括:
步骤S301:在第二用户权限对应的交互页面内,显示第二接口信息,第二接口信息用于指示至少一个待处理接口,待处理接口为基于第二用户权限进行处理的应用程序编程接口。
示例性地,第二用户权限例如为审核用户的用户权限。第二接口信息是在图6所示实施例提供的新建和编辑接口的过程执行之后产生的,并通过接口管理服务器发送至第二用户权限对应的目标用户(的待审核任务列队)内。当用户以第二用户权限对应的登录信息登录时,会在交互界面显示该第二接口信息,该第二接口信息即需要进行审核的待处理接口。其中,第二接口信息可以显示在预设的显示区域内,具体可参见图4所示交互界面示意图。
步骤S302:响应于针对目标待处理接口的接口审核指令,显示目标待处理接口的接口配置参数。
示例性地,接口审核指令是第一操作指令的一种实现方式,该接口审核指令基于对应的第二用户权限实现,即仅有具有第二用户权限的目标用户,才可以输入接口审核指令,从而使终端设备执行本实施例步骤。进一步地,响应于针对目标待处理接口的接口审核指令后,显示目标待处理接口的接口配置参数,例如包括API名称、API分组、责任人、功能描述、使用场景说明、授权账号类型、设置是否公开等基础参数,以及远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码等调用参数。更具体地,终端设备通过预览图的方式,显示所有的接口配置参数,从而使审核人员能够快速对接口配置参数进行审核,其中,显示目标待处理接口的接口配置参数时,基于固定的显示规则进行显示,例如,依照次序从上至下显示A参数、B参数、C参数等。从而降低审核人员进行信息检索的难度,降低审核耗时。
步骤S303:响应于用户输入的确认指令,将目标待处理接口配置为待发布状态。
步骤S304:将处于待发布状态的目标待处理接口发布至开放平台。
进一步地,在用户审核后,基于用户输入的确认指令,终端设备通过接口管理服务器,将目标待处理接口配置为待发布状态,之后,例如基于向接口管理服务器发送的触发指令,控制接口管理服务器将所有处于待发布状态的目标待处理接口,发布至开放平台,完成接口发布的过程。
进一步地,交互界面内包括第一子界面,和/或第二子界面,第一子界面用于显示当前未被发布至开放平台的待处理接口;第二子界面用于显示当前已被发布至开放平台的待处理接口。
当接口被发布至开放平台后,该接口会被终端设备标记为已发布接口,并同步至接口管理服务器。同时,在终端设备的交互界面内,将已发布接口,显示在第二子界面内,而将尚处于审核或修改状态的接口,显示在第一子界面内。从而实现对已发布接口和未发布接口的精细化管理,降低对开放接口的综合管理成本。
本实施例中,通过在第二用户权限对应的交互页面内,显示第二接口信息,可以实现审核用户快速获得待审核接口,结合可视化界面和固定的显示规则,完成对待审核接口的快速审核,提高接口发布过程中接口管理、审核的效率,减少耗时。
对应于上文实施例的基于权限的交互式接口发布方法,图11为本公开实施例提供的基于权限的交互式接口发布装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图11,基于权限的交互式接口发布装置4包括:
显示模块41,用于在第一用户权限对应的交互页面内,显示第一接口信息,第一接口信息用于指示至少一个待处理接口,待处理接口为基于第一用户权限进行处理的应用程序编程接口;
配置模块42,用于响应于针对目标待处理接口的第一操作指令,将目标待处理接口配置为目标状态,其中,第一操作指令基于第一用户权限实现;
发布模块43,用于在预设的触发条件下,根据目标待处理接口的目标状态,将目标待处理接口发布至开放平台,或者,生成目标待处理接口对应的第二接口信息,第二接口信息用于在第二用户权限对应的交互页面内显示目标待处理接口。
在本公开的一个实施例中,第一操作指令包括接口编辑指令,配置模块42,具体用于:响应于针对目标待处理接口的接口编辑指令,对目标待处理接口的接口配置参数进行编辑;在接口编辑指令对应的编辑动作执行完毕后,将目标待处理接口配置为待审核状态;
发布模块43,具体用于:若目标待处理接口为待审核状态,则生成目标待处理接口对应的第二接口信息。
在本公开的一个实施例中,配置模块42在接口编辑指令对应的编辑动作执行完毕后,将目标待处理接口配置为待审核状态时,具体用于:在接口编辑指令对应的编辑动作执行完毕后,对目标待处理接口进行测试,得到测试结果;若测试结果正常,则将目标待处理接口配置为待审核状态。
在本公开的一个实施例中,第一操作指令包括接口审核指令,配置模块42,具体用于:响应于针对目标待处理接口的接口审核指令,显示目标待处理接口的接口配置参数;响应于用户输入的确认指令,将目标待处理接口配置为待发布状态;发布模块43,具体用于:若目标待处理接口为待发布状态,则将目标待处理接口发布至开放平台。
在本公开的一个实施例中,在生成目标待处理接口对应的第二接口信息之后,发布模块43,还用于:获取拥有第二接口信息对应的第二用户权限的目标用户;向目标用户推送审核任务信息,审核任务信息用于提示目标用户对目标待处理接口进行审核。
在本公开的一个实施例中,在显示第一接口信息之前,配置模块42,还用于:响应于第二操作指令,获取接口配置参数,接口配置参数映射待处理接口所对应的远程调用服务;基于接口配置参数,生成第一接口信息。
在本公开的一个实施例中,接口配置参数包括第一参数,第一参数包括以下至少一种:远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码。
在本公开的一个实施例中,接口配置参数还包括第二参数,第二参数用于指示处理待处理接口的第二用户权限。
在本公开的一个实施例中,在生成第一接口信息之后,配置模块42,还用于:对第一接口信息对应的待处理接口进行测试,得到测试结果;显示模块41,还用于:在交互页面显示测试结果。
在本公开的一个实施例中,配置模块42在对第一接口信息对应的待处理接口进行测试,得到测试结果时,具体用于:根据接口配置参数,获取对应的测试数据,基于测试数据对应待处理接口进行测试,得到测试结果。
在本公开的一个实施例中,交互界面内包括第一子界面,和/或第二子界面,第一子界面用于显示当前未被发布至开放平台的待处理接口;第二子界面用于显示当前已被发布至开放平台的待处理接口。
其中,显示模块41、配置模块42和发布模块43依次连接。本实施例提供的基于权限的交互式接口发布装置4可以执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
图12为本公开实施例提供的一种电子设备的结构示意图,如图12所示,该电子设备5包括
处理器51,以及与处理器51通信连接的存储器52;
存储器52存储计算机执行指令;
处理器51执行存储器52存储的计算机执行指令,以实现如图2-图10所示实施例中的基于权限的交互式接口发布方法。
其中,可选地,处理器51和存储器52通过总线53连接。
相关说明可以对应参见图2-图10所对应的实施例中的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。
参考图13,其示出了适于用来实现本公开实施例的电子设备900的结构示意图,该电子设备900可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,简称PDA)、平板电脑(Portable Android Device,简称PAD)、便携式多媒体播放器(Portable Media Player,简称PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图13示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图13所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read Only Memory,简称ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory,简称RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid Crystal Display,简称LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图13示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。本公开的实施例还包括一种计算机程序,该计算机程序在被处理器执行时实现本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Electrical Programmable ROM,EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(Compact Disc ROM,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(Radio Frequency,射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,简称LAN)或广域网(Wide Area Network,简称WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Product,ASSP)、片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种基于权限的交互式接口发布方法,包括:
在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
根据本公开的一个或多个实施例,所述第一操作指令包括接口编辑指令,所述响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,包括:响应于针对所述目标待处理接口的接口编辑指令,对所述目标待处理接口的接口配置参数进行编辑;在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态;所述在预设的触发条件下,根据所述目标待处理接口的目标状态,生成所述目标待处理接口对应的第二接口信息,包括:若所述目标待处理接口为待审核状态,则生成所述目标待处理接口对应的第二接口信息。
根据本公开的一个或多个实施例,在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态,包括:在所述接口编辑指令对应的编辑动作执行完毕后,对所述目标待处理接口进行测试,得到测试结果;若所述测试结果正常,则将所述目标待处理接口配置为待审核状态。
根据本公开的一个或多个实施例,所述第一操作指令包括接口审核指令,响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,包括:响应于针对所述目标待处理接口的接口审核指令,显示所述目标待处理接口的接口配置参数;响应于用户输入的确认指令,将所述目标待处理接口配置为待发布状态;所述在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,包括:若所述目标待处理接口为待发布状态,则将所述目标待处理接口发布至开放平台。
根据本公开的一个或多个实施例,在生成所述目标待处理接口对应的第二接口信息之后,还包括:获取拥有所述第二接口信息对应的第二用户权限的目标用户;向所述目标用户推送审核任务信息,所述审核任务信息用于提示所述目标用户对所述目标待处理接口进行审核。
根据本公开的一个或多个实施例,在显示第一接口信息之前,所述方法还包括:响应于第二操作指令,获取接口配置参数,所述接口配置参数映射所述待处理接口所对应的远程调用服务;基于所述接口配置参数,生成所述第一接口信息。
根据本公开的一个或多个实施例,所述接口配置参数包括第一参数,所述第一参数包括以下至少一种:远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码。
根据本公开的一个或多个实施例,所述接口配置参数还包括第二参数,所述第二参数用于指示处理所述待处理接口的第二用户权限。
根据本公开的一个或多个实施例,在生成所述第一接口信息之后,所述方法还包括:对所述第一接口信息对应的待处理接口进行测试,得到测试结果;在所述交互页面显示所述测试结果。
根据本公开的一个或多个实施例,所述对所述第一接口信息对应的待处理接口进行测试,得到测试结果,包括:根据所述接口配置参数,获取对应的测试数据;基于所述测试数据对应待处理接口进行测试,得到所述测试结果。
根据本公开的一个或多个实施例,交互界面内包括第一子界面,和/或第二子界面,所述第一子界面用于显示当前未被发布至所述开放平台的待处理接口;所述第二子界面用于显示当前已被发布至所述开放平台的待处理接口。
第二方面,根据本公开的一个或多个实施例,提供了一种基于权限的交互式接口发布装置,包括:
显示模块,用于在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;
配置模块,用于响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;
发布模块,用于在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
根据本公开的一个或多个实施例,所述第一操作指令包括接口编辑指令,所述配置模块,具体用于:响应于针对所述目标待处理接口的接口编辑指令,对所述目标待处理接口的接口配置参数进行编辑;在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态;所述发布模块,具体用于:若所述目标待处理接口为待审核状态,则生成所述目标待处理接口对应的第二接口信息。
根据本公开的一个或多个实施例,所述配置模块在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态时,具体用于:在所述接口编辑指令对应的编辑动作执行完毕后,对所述目标待处理接口进行测试,得到测试结果;若所述测试结果正常,则将所述目标待处理接口配置为待审核状态。
根据本公开的一个或多个实施例,所述第一操作指令包括接口审核指令,所述配置模块,具体用于:响应于针对所述目标待处理接口的接口审核指令,显示所述目标待处理接口的接口配置参数;响应于用户输入的确认指令,将所述目标待处理接口配置为待发布状态;所述发布模块,具体用于:若所述目标待处理接口为待发布状态,则将所述目标待处理接口发布至开放平台。
根据本公开的一个或多个实施例,在生成所述目标待处理接口对应的第二接口信息之后,所述发布模块,还用于:获取拥有所述第二接口信息对应的第二用户权限的目标用户;向所述目标用户推送审核任务信息,所述审核任务信息用于提示所述目标用户对所述目标待处理接口进行审核。
根据本公开的一个或多个实施例,在显示第一接口信息之前,所述配置模块,还用于:响应于第二操作指令,获取接口配置参数,所述接口配置参数映射所述待处理接口所对应的远程调用服务;基于所述接口配置参数,生成所述第一接口信息。
根据本公开的一个或多个实施例,所述接口配置参数包括第一参数,所述第一参数包括以下至少一种:远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码。
根据本公开的一个或多个实施例,所述接口配置参数还包括第二参数,所述第二参数用于指示处理所述待处理接口的第二用户权限。
根据本公开的一个或多个实施例,在生成所述第一接口信息之后,所述配置模块,还用于:对所述第一接口信息对应的待处理接口进行测试,得到测试结果;所述显示模块,还用于:在所述交互页面显示所述测试结果。
根据本公开的一个或多个实施例,所述配置模块在对所述第一接口信息对应的待处理接口进行测试,得到测试结果时,具体用于:根据所述接口配置参数,获取对应的测试数据,基于所述测试数据对应待处理接口进行测试,得到所述测试结果。
根据本公开的一个或多个实施例,交互界面内包括第一子界面,和/或第二子界面,所述第一子界面用于显示当前未被发布至所述开放平台的待处理接口;所述第二子界面用于显示当前已被发布至所述开放平台的待处理接口。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
第六方面,本公开实施例提供一种计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的基于权限的交互式接口发布方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (16)

  1. 一种基于权限的交互式接口发布方法,包括:
    在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;
    响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;
    在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
  2. 根据权利要求1所述的方法,其中,所述第一操作指令包括接口编辑指令,
    所述响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,包括:
    响应于针对所述目标待处理接口的接口编辑指令,对所述目标待处理接口的接口配置参数进行编辑;
    在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态;
    所述在预设的触发条件下,根据所述目标待处理接口的目标状态,生成所述目标待处理接口对应的第二接口信息,包括:
    若所述目标待处理接口为待审核状态,则生成所述目标待处理接口对应的第二接口信息。
  3. 根据权利要求2所述的方法,其中,在所述接口编辑指令对应的编辑动作执行完毕后,将所述目标待处理接口配置为待审核状态,包括:
    在所述接口编辑指令对应的编辑动作执行完毕后,对所述目标待处理接口进行测试,得到测试结果;
    若所述测试结果正常,则将所述目标待处理接口配置为待审核状态。
  4. 根据权利要求1所述的方法,其中,所述第一操作指令包括接口审核指令,响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,包括:
    响应于针对所述目标待处理接口的接口审核指令,显示所述目标待处理接口的接口配置参数;
    响应于用户输入的确认指令,将所述目标待处理接口配置为待发布状态;
    所述在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,包括:
    若所述目标待处理接口为待发布状态,则将所述目标待处理接口发布至开放平台。
  5. 根据权利要求1至4中任一项所述的方法,其中,在生成所述目标待处理接口对应的第二接口信息之后,还包括:
    获取拥有所述第二接口信息对应的第二用户权限的目标用户;
    向所述目标用户推送审核任务信息,所述审核任务信息用于提示所述目标用户对所述目标待处理接口进行审核。
  6. 根据权利要求1至5中任一项所述的方法,其中,在显示第一接口信息之前,所述方法还包括:
    响应于第二操作指令,获取接口配置参数,所述接口配置参数映射所述待处理接口所对应的远程调用服务;
    基于所述接口配置参数,生成所述第一接口信息。
  7. 根据权利要求6所述的方法,其中,所述接口配置参数包括第一参数,所述第一参数包括以下至少一种:
    远程过程调用名称、方法名、业务入参、内部变量入参、响应出参、错误码。
  8. 根据权利要求7所述的方法,其特征在于,所述接口配置参数还包括第二参数,所述第二参数用于指示处理所述待处理接口的第二用户权限。
  9. 根据权利要求6至8中任一项所述的方法,其中,在生成所述第一接口信息之后,所述方法还包括:
    对所述第一接口信息对应的待处理接口进行测试,得到测试结果;
    在所述交互页面显示所述测试结果。
  10. 根据权利要求9所述的方法,其中,所述对所述第一接口信息对应的待处理接口进行测试,得到测试结果,包括:
    根据所述接口配置参数,获取对应的测试数据;
    基于所述测试数据对应待处理接口进行测试,得到所述测试结果。
  11. 根据权利要求1至10中任一项所述的方法,其中,交互界面内包括第一子界面,和/或第二子界面,所述第一子界面用于显示当前未被发布至所述开放平台的待处理接口;所述第二子界面用于显示当前已被发布至所述开放平台的待处理接口。
  12. 一种基于权限的交互式接口发布装置,包括:
    显示模块,用于在第一用户权限对应的交互页面内,显示第一接口信息,所述第一接口信息用于指示至少一个待处理接口,所述待处理接口为基于所述第一用户权限进行处理的应用程序编程接口;
    配置模块,用于响应于针对目标待处理接口的第一操作指令,将所述目标待处理接口配置为目标状态,其中,所述第一操作指令基于所述第一用户权限实现;
    发布模块,用于在预设的触发条件下,根据所述目标待处理接口的目标状态,将所述目标待处理接口发布至开放平台,或者,生成所述目标待处理接口对应的第二接口信息,所述第二接口信息用于在第二用户权限对应的交互页面内显示所述目标待处理接口。
  13. 一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1至11中任一项所述的基于权限的交互式接口发布方法。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至11中任一项所述的基于权限的交互式接口发布方法。
  15. 一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如权利要求1至11中任一项所述的基于权限的交互式接口发布方法。
  16. 一种计算机程序,所述计算机程序被处理器执行时实现如权利要求1至11中任一项所述的基于权限的交互式接口发布方法。
PCT/CN2023/075057 2022-02-28 2023-02-08 基于权限的交互式接口发布方法、装置及电子设备 WO2023160395A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210187940.0 2022-02-28
CN202210187940.0A CN114547521A (zh) 2022-02-28 2022-02-28 基于权限的交互式接口发布方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2023160395A1 true WO2023160395A1 (zh) 2023-08-31

Family

ID=81680096

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/075057 WO2023160395A1 (zh) 2022-02-28 2023-02-08 基于权限的交互式接口发布方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN114547521A (zh)
WO (1) WO2023160395A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114547521A (zh) * 2022-02-28 2022-05-27 北京有竹居网络技术有限公司 基于权限的交互式接口发布方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885211A (zh) * 2020-09-28 2020-11-03 珠海大横琴科技发展有限公司 一种应用发布方法和装置
CN111880839A (zh) * 2020-09-28 2020-11-03 珠海大横琴科技发展有限公司 一种api处理方法和装置
CN112764751A (zh) * 2021-01-27 2021-05-07 深圳市酷开网络科技股份有限公司 接口生成方法和装置、接口请求方法和装置及存储介质
CN112947945A (zh) * 2021-02-01 2021-06-11 南方电网数字电网研究院有限公司 一种多类型应用发布方法、装置、计算机设备和存储介质
CN113779444A (zh) * 2021-11-12 2021-12-10 北京宇信科技集团股份有限公司 接口开发方法、零代码引擎和零代码数据接口开发系统
CN114547521A (zh) * 2022-02-28 2022-05-27 北京有竹居网络技术有限公司 基于权限的交互式接口发布方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885211A (zh) * 2020-09-28 2020-11-03 珠海大横琴科技发展有限公司 一种应用发布方法和装置
CN111880839A (zh) * 2020-09-28 2020-11-03 珠海大横琴科技发展有限公司 一种api处理方法和装置
CN112764751A (zh) * 2021-01-27 2021-05-07 深圳市酷开网络科技股份有限公司 接口生成方法和装置、接口请求方法和装置及存储介质
CN112947945A (zh) * 2021-02-01 2021-06-11 南方电网数字电网研究院有限公司 一种多类型应用发布方法、装置、计算机设备和存储介质
CN113779444A (zh) * 2021-11-12 2021-12-10 北京宇信科技集团股份有限公司 接口开发方法、零代码引擎和零代码数据接口开发系统
CN114547521A (zh) * 2022-02-28 2022-05-27 北京有竹居网络技术有限公司 基于权限的交互式接口发布方法、装置及电子设备

Also Published As

Publication number Publication date
CN114547521A (zh) 2022-05-27

Similar Documents

Publication Publication Date Title
US10705942B1 (en) Simulated testing of API
US8504989B2 (en) Service definition document for providing blended services utilizing multiple service endpoints
US20120233588A1 (en) Blended service creation, test, and deployment environment for multiple service endpoints
JP6426732B2 (ja) 自動的に生成された仮想環境を用いたユーザサポートエクスペリエンス
US9218271B2 (en) Test planning based on dynamic coverage analysis
CN112036824A (zh) 业务审批方法、系统、存储介质及电子设备
US20130091382A1 (en) Modeling Test Space for System behavior with Optional Variable combinations
TW200907778A (en) An interactive progress bar
CN111045653B (zh) 系统生成方法、装置、计算机可读介质及电子设备
WO2023160395A1 (zh) 基于权限的交互式接口发布方法、装置及电子设备
CN109491646B (zh) 一种消息录入方法、装置、电子设备及可读介质
CN112015654A (zh) 用于测试的方法和装置
US20150143267A1 (en) SYSTEM AND METHOD FOR DEVELOPING A RULE-BASED EVENT-DRIVEN MULTI-LAYERED FRONTEND FOR BUSINESS SERVICES AND RENDERING THE GUIs ON MULTIPLE CLIENT DEVICES
CN112631590A (zh) 组件库生成方法、装置、电子设备和计算机可读介质
CN110868324A (zh) 一种业务配置方法、装置、设备和存储介质
CN116225886A (zh) 测试用例生成方法、装置、设备、存储介质及程序产品
US20140057231A1 (en) Break-fix simulator
CN112954056A (zh) 监控数据处理方法、装置、电子设备及存储介质
US8719704B2 (en) Seamless integration of additional functionality into enterprise software without customization or apparent alteration of same
KR20180076020A (ko) 애플리케이션 테스트 자동화 장치 및 방법
WO2022184012A1 (zh) 一种文档创建方法、装置、设备及存储介质
CN115248680A (zh) 软件构建方法、系统、设备、介质和程序产品
US20140245168A1 (en) Graphical User Interface Editor that Displays Live Data During Editing
CN113608997A (zh) 一种应用程序内嵌网页的远程调试方法、装置和电子设备
CN108170557B (zh) 用于输出信息的方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23759020

Country of ref document: EP

Kind code of ref document: A1