CN111240855A - API debugging system, method, storage medium and computer device - Google Patents

API debugging system, method, storage medium and computer device Download PDF

Info

Publication number
CN111240855A
CN111240855A CN201911414155.9A CN201911414155A CN111240855A CN 111240855 A CN111240855 A CN 111240855A CN 201911414155 A CN201911414155 A CN 201911414155A CN 111240855 A CN111240855 A CN 111240855A
Authority
CN
China
Prior art keywords
request message
api
request
debugging
end server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911414155.9A
Other languages
Chinese (zh)
Inventor
谷亚军
刘鹤煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201911414155.9A priority Critical patent/CN111240855A/en
Publication of CN111240855A publication Critical patent/CN111240855A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an API debugging system, an API debugging method, a storage medium and computer equipment. The debugging system comprises: the front-end equipment executes the following operations through the front-end service: providing a page for acquiring configuration information of an API (application program interface) for a user, generating a request message according to the acquired configuration information, and sending the request message to a back-end server; the back-end server executes the following operations through the back-end server: and receiving the request message, generating a standard request according to the request message and an S3 protocol, sending the standard request to an object storage system and sending feedback received from the object storage system to the front-end equipment. The invention can realize simple and flexible API configuration, improve the efficiency of accessing/calling the object storage interface by the user and realize rapid API debugging.

Description

API debugging system, method, storage medium and computer device
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to an API (application program interface) debugging system, method, storage medium, and computer device.
Background
In recent years, cloud computing technology has been increasingly used, such as enterprise cloud and government cloud. Among them, cloud storage is an important field in cloud computing. Object storage is a common mainstream storage solution in public cloud storage, has the advantages of mass storage, dynamic expansion, high durability and the like, and is often used as a main storage mode for websites, mobile applications, pictures and video data. Currently, many cloud computing vendors provide object storage services, such as amazon S3, kunshima KS3, arrests and tengtong COS.
The object storage is realized based on an http protocol, and the uploading, downloading, management and the like of the files by the user are realized by calling a Restful API. Although each cloud vendor may provide multiple ways to access object storage, such as consoles, clients, APIs, and the like. Since the operation of console, client, etc. has certain limitations, most applications are still accessed by programming based on API or SDK based on API package to realize customized development. Typical applications include, for example, timed backup and restore of data, storing objects as a back source to the CDN, and the like.
Whether developed based on an API or an SDK, it is essentially implemented by sending an http request according to an object store Restful API. The debugging of the object storage API is a passage for opening the application and the cloud storage, and is a necessary step for developing by using the object storage.
At present, most object storage service providers adopt a mode of providing interface documents, namely, users carry out off-line debugging by using tools such as Postman and the like according to API documents. Still some object storage service providers provide online API access tools, and users can implement related configuration at the front end, directly call various interfaces of object storage, and feed back information such as request parameters and corresponding results. However, manually debugging documents by Postman is cumbersome, prolongs the development cycle, and makes it difficult to enter the door. Although the debugging process is simplified by using an internal API debugging platform provided by the cloud service, since the Endpoint cannot be configured, the application of cross-object storage cannot be adapted, and the Endpoint cannot be flexibly switched to realize the API debugging of a plurality of object storages. Therefore, the current scheme cannot realize rapid, intuitive and high-adaptation API debugging.
Besides, private clouds and hybrid clouds are also the current mainstream cloud form, and access platforms of Postman and public cloud manufacturers can only debug services in the public network, so that the cloud form cannot adapt to the network environment in the complex cloud form.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides an API debugging system, an API debugging method, a storage medium and computer equipment, wherein a set of open online platform is constructed to provide a page for obtaining configuration information of an API for a user, so that the user can conveniently configure the API; and obtaining related request information according to the configuration information to call the corresponding object storage interface, so that the high-efficiency object storage interface calling can be realized, and the rapid API debugging can be realized.
According to a first aspect of an embodiment of the present invention, there is provided an API debugging system including: the front-end equipment executes the following operations through the front-end service: providing a page for acquiring configuration information of an API (application program interface) for a user, generating a request message according to the acquired configuration information, and sending the request message to a back-end server; the back-end server executes the following operations through the back-end server: and receiving the request message, generating a standard request according to the request message and a simple storage service (S3) protocol, sending the standard request to an object storage system and sending feedback received from the object storage system to the front-end equipment.
According to the embodiment, the simple configuration page is provided for the user, so that the user can conveniently complete corresponding configuration according to the page prompt, the object storage is accessed immediately to complete interface calling, the efficiency of calling the object storage interface by the user can be improved, and the development and test of the API of the object storage are more efficient. Moreover, the received request message generates a standard request according to the simple storage service S3 protocol, and the interface of the current mainstream object storage system can be adapted, so that the API debugging system of the above embodiment has high openness and adaptability.
In some embodiments of the invention, the page is built at the head end device through the Vue component.
According to the embodiment, the user can configure the corresponding parameters of various object storage APIs to adapt to the application of cross-object storage, so that the whole API debugging system is more flexible.
In some embodiments of the invention, the backend server employs a flash framework.
In some embodiments of the present invention, the front-end device sends the request message to the back-end server through an http protocol.
In some embodiments of the present invention, the back-end server receives the request message sent by the front-end device by means of a listening port.
In some embodiments of the present invention, the back-end server generating a standard request according to the S3 protocol according to the request message includes: calculating the signature of the user request according to the configuration information; and splicing a standard http request according to the signature and the configuration information and an S3 protocol.
In some embodiments of the present invention, the object storage system performs authentication according to the signature, and returns response data to the back-end server according to the API in response to a request of the user after the authentication is passed.
In some embodiments of the present invention, the back-end server sends the response data to the front-end device, and the front-end device displays information carried by the response data through a display page.
The information carried by the response data is displayed on the display page, so that the user can conveniently debug the interface and carry out related health examination.
According to a second aspect of the embodiments of the present invention, there is provided an API debugging method, including: acquiring configuration information of the API according to a page provided for a user through a front-end service; generating a request message according to the acquired configuration information through a front-end service, and sending the request message to a back-end server; and receiving feedback information sent by the back-end server through the front-end service.
According to the embodiment, the simple configuration page is provided for the user, so that the user can conveniently complete corresponding configuration according to the page prompt, the object storage is accessed immediately to complete interface calling, the efficiency of calling the object storage interface by the user can be improved, and the development and test of the API of the object storage are more efficient.
In some embodiments of the invention, the page is built by Vue assembly.
According to the embodiment, a user can configure corresponding parameters of various object storage APIs to adapt to the application of cross-object storage, so that the API debugging method of the embodiment is more flexible.
In some embodiments of the invention, the request message is sent to the backend server via http protocol.
In some embodiments of the present invention, the front-end service displays information carried by the feedback information through a display page.
The information carried by the feedback information is displayed on the display page, so that the user can conveniently debug the interface and carry out related health examination.
According to a third aspect of the embodiments of the present invention, there is provided an API debugging method, including: the back-end server receives the request message sent by the front-end service through the back-end service; the back-end service generates a standard request according to the request message and a simple storage service S3 protocol, and sends the standard request to an object storage system; and the back-end service sends the feedback information of the standard request received from the object storage system to the front-end service.
According to the above embodiment, the received request message generates a standard request according to the simple storage service S3 protocol, and the interface of the current mainstream object storage system can be adapted, so that the API debugging method of the above embodiment has high openness and adaptability.
In some embodiments of the invention, the backend server employs a flash framework.
In some embodiments of the present invention, the back-end server receives the request message sent by the front-end service by means of a listening port.
In some embodiments of the present invention, the back-end service generating a standard request according to the S3 protocol based on the request message comprises: calculating the signature of the user request according to the configuration information; and splicing a standard http request according to the signature and the configuration information and an S3 protocol.
In some embodiments of the present invention, the object storage system performs authentication according to the signature, and returns response data to the back-end server according to the API in response to a request of the user after the authentication is passed.
In some embodiments of the invention, the back-end server sends the response data to the front-end service.
According to a fourth aspect of the embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon computer-readable instructions, which when executed by a processor, can implement the following operations: the operations include the steps included in the debugging method according to any one of the above embodiments.
According to a fifth aspect of the embodiments of the present invention, there is provided a computer device including a memory and a processor, the memory being configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, are capable of implementing the debugging method according to any one of the above embodiments.
The debugging system, the debugging method, the storage medium and the computer equipment provided by the embodiment of the invention can realize efficient object storage interface calling and rapid API debugging by constructing a set of open online platform.
Drawings
FIG. 1 is an architecture diagram of an API debugging system in accordance with one embodiment of the present invention;
FIG. 2 is an architecture diagram of an API debugging system in accordance with another embodiment of the present invention;
FIG. 3 is a flowchart illustrating an API debugging method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating an API debugging method according to another embodiment of the present invention;
FIG. 5 is a timing diagram of a method of API debugging in accordance with one embodiment of the present invention.
Detailed Description
Various aspects of the invention are described in detail below with reference to the figures and the detailed description. Well-known modules, units and their interconnections, links, communications or operations with each other are not shown or described in detail. Furthermore, the described features, architectures, or functions can be combined in any manner in one or more implementations. It will be understood by those skilled in the art that the various embodiments described below are illustrative only and are not intended to limit the scope of the present invention. It will also be readily understood that the modules or units or processes of the embodiments described herein and illustrated in the figures can be combined and designed in a wide variety of different configurations.
The terms used herein are briefly described below.
Protocol S3: s3 is an abbreviation of Simple Storage Service, namely Amazon Simple Storage Service; the S3 protocol is a set of service standards provided by the S3 service;
public cloud: public cloud resources (e.g., servers and storage space) are owned and operated by third party cloud service providers, which are provided over the Internet. Microsoft Azure is an example of a public cloud. In a public cloud, all hardware, software and other supportive infrastructure is owned and managed by the cloud provider;
private cloud: a private cloud consists of cloud computing resources dedicated for use by an enterprise or organization. The private cloud may be physically located at an organization's on-site data center, or may be hosted by a third party service provider;
mixing cloud: hybrid clouds, which are generally considered "the best of the two," combine a local infrastructure or private cloud with a public cloud, and organizations can take advantage of both. In a hybrid cloud, data and applications can be moved between private and public clouds, providing greater flexibility and more deployment options;
vue: a progressive framework for building data-driven web interfaces. Js is a view component that implements data binding and composition of responses through APIs that are as simple as possible;
and (4) flash: a Python-based implemented 'micro' framework for web development;
restful: the abbreviation of Rest, reproducible State Transfer, indicates the layer State transition. The URI represents a resource, a certain expression layer of the resource is transmitted between the client and the server, and the client operates the resource of the server through four HTTP verbs to realize 'expression layer state conversion';
endpoint: namely, a path in the Restful interface, which is also called an end point (endpoint) and represents a specific website of the API;
postman: a chrome plug-in for debugging and sending a webpage http request;
API: application Programming Interface, calling Interface of Application program;
and (3) SDK: software Development Kit, Software Development toolkit;
CDN: content Delivery Network, Content Delivery Network;
curl: a file transfer tool that operates under a command line using URL syntax.
FIG. 1 is an architecture diagram of an API debugging system in accordance with one embodiment of the present invention.
As shown in fig. 1, the system includes a front-end device 110 and a back-end server 120.
The front-end device 110 performs the following operations through the front-end service: a page for acquiring the configuration information of the API is provided to the user, a request message is generated according to the acquired configuration information, and the request message is sent to the backend server 120.
In an alternative embodiment, a page for obtaining configuration information for the API is constructed through the Vue component. For pages built with the Vue component, a user can configure the corresponding parameters of various object storage APIs, such as: EndPoint, SecretKey, SecretID, BucketName, Region, etc. Therefore, the application of cross-object storage can be adapted, and the whole API debugging system is more flexible.
In an alternative embodiment, the front-end device 110 communicates with the back-end server 120 through an http protocol, and sends the request message to the back-end server 120.
The backend server 120 performs the following operations through the backend service: and receiving the request message, generating a standard request according to the request message and an S3 protocol, sending the standard request to an object storage system and sending feedback received from the object storage system to the front-end equipment.
In an alternative embodiment, the backend server 120 adopts a flash framework, and the backend server 120 receives the request message sent by the front-end device 110 by means of a listening port.
In an alternative embodiment, the backend service calculates a signature of the user request according to the configuration information acquired by the front-end device 110, and then splices a standard http request according to the signature and the configuration information according to the S3 protocol.
The received request message generates a standard request according to the S3 protocol, so that the interface of the current main stream object storage system can be adapted, and the API debugging system has high openness and adaptability.
By adopting the debugging system, the user can conveniently complete corresponding configuration according to the page prompt so as to immediately access the object storage to complete interface calling, the efficiency of calling the object storage interface by the user can be improved, and the development and test of the API of the object storage are more efficient.
In an optional embodiment, the object storage system performs authentication according to the signature, and returns response data to the back-end server according to the API in response to a request of the user after the authentication is passed.
In an optional implementation manner, the back-end server 120 sends the response data returned by the object storage system to the front-end device 110, and the front-end device 110 displays information carried by the response data through a display page. The front-end device 110 displays the information carried by the response data through the display page, so that the user can conveniently perform interface debugging and related health examination.
FIG. 2 is an architecture diagram of an API debugging system in accordance with another embodiment of the present invention.
As shown in fig. 2, the system includes a front end (i.e., front end device) 210 and a back end (i.e., back end server) 220.
In the embodiment of the invention, the Vue assembly is used for building a front end page, the flash is used for building a back end 220, and the front end 210 and the back end 220 are built into an online calling platform of Vue + flash framework.
The front end 210 interacts with the user through a web page, and the user may configure the object to store the corresponding parameters of the API through the web interface. In an optional implementation mode, a front-end page built by the Vue component gives prompt information for configuration to a user, and the user can simply configure according to the prompt and send a related RESTful request according to an API (application programming interface). Optionally, the front end page may provide corresponding configuration prompts or suggestions for different interfaces.
In an alternative embodiment, for a front-end page built with the Vue component, a user may configure the corresponding parameters of various object storage APIs, such as: EndPoint, SecretKey, SecretID, BucketName, Region, etc. Therefore, the application of cross-object storage can be adapted, and the whole API debugging system is more flexible.
In an alternative embodiment, after the user completes the corresponding configuration information, the request message may be clicked on the web page, and then the front end 210 sends the request message to the back end 220 through the http protocol.
The backend 220 is configured to receive a request message sent by the front end 210, generate a standard request according to an S3 protocol for the request message, send the standard request to an object store provided by each cloud service provider, receive response data returned by the object store, and feed the response data back to the front end 210. The cloud service provider provides API access of a standard S3 protocol, and may receive a standard request and feed back an execution result of the request. Cloud service providers may include, for example, but are not limited to: tencent cloud, Ali cloud, construction cloud and other object stores based on the S3 protocol.
In the above embodiment of the present invention, the received request message is used to generate the standard request according to the S3 protocol, so that the interface of the current mainstream object storage system can be adapted, and the API debugging system of the present invention has high openness and adaptability.
In an alternative embodiment, the back-end 220 calculates a signature of the user request according to the configuration information obtained by the front-end 210, and then the back-end 220 splices a standard http request according to the S3 protocol according to the signature and the configuration information.
By adopting the debugging system, the user can conveniently complete corresponding configuration according to the page prompt so as to immediately access the object storage to complete interface calling, the efficiency of calling the object storage interface by the user can be improved, and the development and test of the API of the object storage are more efficient.
In addition, in an optional embodiment, after the back end 220 sends the response data to the front end 210, the front end 210 may display information carried by the response data through a display page. The debugging of the interface and the related health examination can be conveniently carried out by the user. Optionally, the front end 210 may also display the whole process of the signature, http request, and response stored in the access object through the display page, so as to facilitate access and debugging of the user object storage.
Fig. 3 is a flowchart illustrating an API debugging method according to an embodiment of the present invention.
As shown in fig. 3, in an embodiment of the present invention, the API debugging method may include: step S11, step S12, and step S13, which will be described in detail below.
In step S11, configuration information of the API is acquired by the front-end service according to the page provided to the user.
In an alternative embodiment, the page provided to the user is constructed by the Vue component to obtain configuration information for the API. For pages built with the Vue component, a user can configure the corresponding parameters of various object storage APIs, such as: EndPoint, SecretKey, SecretID, BucketName, Region and the like, so that the application of cross-object storage can be adapted, and the API debugging method is more flexible.
In step S12, a request message is generated by the front-end service according to the acquired configuration information, and the request message is sent to the back-end server.
In an alternative embodiment, the request message is sent to the backend server by communicating with the backend server via http protocol.
In step S13, the feedback information sent by the backend server is received by the frontend service.
In an optional implementation manner, the front-end service displays information carried by the feedback information through a display page.
In an optional implementation manner, the feedback information sent by the back-end server and received by the front-end service is feedback information of the back-end server to the standard request, which is received by the object storage system after the back-end server generates the standard request according to the received request message and according to the S3 protocol, and sends the standard request to the object storage system.
Fig. 4 is a flowchart illustrating an API debugging method according to another embodiment of the present invention.
As shown in fig. 4, in an embodiment of the present invention, the API debugging method may include: step S21, step S22, and step S23, which will be described in detail below.
In step S21, the backend server receives the request message transmitted through the frontend service through the backend service.
In an alternative embodiment, the backend server employs a flash framework.
In an optional embodiment, the back-end server receives the request message sent by the front-end service by means of a listening port.
In step S22, the backend service generates a standard request according to the simple storage service S3 protocol based on the request message, and sends the standard request to the object storage system.
The received request message generates a standard request according to a simple storage service S3 protocol, and the interface of the current mainstream object storage system can be adapted, so that the API debugging method has higher openness and adaptability.
In an optional embodiment, a signature of the user request is calculated according to the configuration information, and a standard http request is spliced according to the signature and the configuration information and an S3 protocol.
In step S23, the back-end service sends the feedback information for the standard request received from the object storage system to the front-end service.
In an optional embodiment, the object storage system performs authentication according to the signature, and returns response data to the back-end server according to the API in response to a request of the user after the authentication is passed.
In an alternative embodiment, the back-end server sends the response data to the front-end service.
FIG. 5 is a timing diagram of a method of API debugging in accordance with another embodiment of the present invention.
As shown in fig. 5, in an embodiment of the present invention, the API debugging method may include: step S31, step S32, step S33, step S34, step S35, step S36, and step S37, which will be described in detail below.
In step S31, the user configures the object store according to the web page provided by the front end. Optionally, the configuration may include, but is not limited to, configurations for secret _ Id, secret _ key, EndPoint, and the like, and thus, the front end may obtain corresponding configuration information.
In step S32, the front end issues the acquired configuration information to the back end.
In an optional implementation manner, the front end issues the configuration message to the back end through an http protocol.
In step S33, the back-end server obtains the request message according to the configuration information, and calculates the signature requested by the user.
In step S34, the back-end server splices a standard http request according to the obtained signature and the configuration information and according to the S3 protocol, and sends the standard http request to the object storage system to request an object storage resource in the object storage system.
The object storage based on the standard S3 protocol is called, so that the object storage is convenient for a user to use and access, and can be adapted to the object storage system of the current mainstream cloud manufacturer, therefore, the object storage of different manufacturers can be debugged, and the API debugging method has higher openness and adaptability.
In step S35, the object stores and obtains the standard http request, verifies the user identity according to the signature, executes the user request according to the standard http request after the identity verification is passed, obtains response data, and returns the response data to the backend according to the API.
In step S36, the back end receives the response data returned by the object store and returns the response data to the front end.
In step S37, the front end processes the received response data accordingly and displays the processed response data on the front end web page. In an optional implementation manner, the front-end web page may display the whole process of http request response in the process of calling the object storage, so that a developer can conveniently perform debugging and dial testing of an interface. Optionally, the front-end web page may further display a whole signature process in the process of calling the object storage, so as to facilitate the user to perform related health check.
In an optional embodiment, a web page provided by the front end and used for acquiring the configuration information of the user is built through the Vue component, and the back end is built by adopting a flash framework, so that an open online platform is obtained, the user can perform configuration operation on the front end web page, and the object storage API is called online, so that the calling efficiency can be improved. Moreover, the open online platform constructed by the invention does not have any network environment dependence, and can be deployed in different network environments such as public cloud, private cloud, mixed cloud and the like.
In an optional embodiment, after the front-end web page completes configuration, a request message is generated according to the configuration information, and the request is converted into a curl command, so that the test of the development environment is facilitated.
Therefore, by adopting the API debugging method provided by the invention, a user can complete corresponding configuration according to the prompt of the front-end page, and instantly accesses the object storage to complete interface calling, and the process is intuitive, so that the process of reading complex documents is omitted, and the access and debugging efficiency of the object storage is improved.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by combining software and a hardware platform. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments of the present invention.
Correspondingly, the embodiment of the invention also provides a computer readable storage medium, on which computer readable instructions are stored, and the computer readable instructions can realize the following operations when being executed by a processor: the operation includes steps included in the API debugging method according to any of the above embodiments, and are not described herein again. Wherein the storage medium may include: such as optical disks, hard disks, floppy disks, flash memory, magnetic tape, etc.
In addition, the embodiment of the present invention also provides a computer device including a memory and a processor, where the memory is used for storing one or more computer instructions, and when the one or more computer instructions are executed by the processor, the API debugging method according to any one of the above embodiments can be implemented. The computer device may be, for example, a server, a desktop computer, a notebook computer, a tablet computer, or the like.
The terms and expressions used in the specification of the present invention have been set forth for illustrative purposes only and are not meant to be limiting. It will be appreciated by those skilled in the art that changes could be made to the details of the above-described embodiments without departing from the underlying principles thereof. The scope of the invention is, therefore, indicated by the appended claims, in which all terms are intended to be interpreted in their broadest reasonable sense unless otherwise indicated.

Claims (20)

1. An application program interface, API, debugging system, comprising:
the front-end equipment executes the following operations through the front-end service: providing a page for acquiring configuration information of an API (application program interface) for a user, generating a request message according to the acquired configuration information, and sending the request message to a back-end server;
the back-end server executes the following operations through the back-end server: and receiving the request message, generating a standard request according to the request message and a simple storage service (S3) protocol, sending the standard request to an object storage system and sending feedback received from the object storage system to the front-end equipment.
2. The debugging system of claim 1 wherein the page is built at the front end device through an Vue component.
3. The debugging system of claim 1 wherein the back-end server employs a flash framework.
4. The debugging system of claim 1 wherein the front-end device sends the request message to the back-end server via an http protocol.
5. The debugging system of claim 4 wherein the back-end server receives the request message sent by the front-end device by way of a listening port.
6. The debugging system of claim 1 wherein the back-end server generating a standard request according to the S3 protocol based on the request message comprises:
calculating the signature of the user request according to the configuration information;
and splicing a standard http request according to the signature and the configuration information and an S3 protocol.
7. The debugging system of claim 6 wherein the object storage system authenticates based on the signature and returns response data to the back-end server according to the API in response to a user request after authentication has passed.
8. The debugging system of claim 7, wherein the back-end server sends the response data to the front-end device, and the front-end device displays information carried by the response data through a display page.
9. An API debugging method, characterized in that the debugging method comprises:
acquiring configuration information of the API according to a page provided for a user through a front-end service;
generating a request message according to the acquired configuration information through a front-end service, and sending the request message to a back-end server;
and receiving feedback information sent by the back-end server through the front-end service.
10. The debugging method of claim 9 wherein the page is built by the Vue component.
11. A debugging method according to claim 9, characterized in that said request message is sent to said back-end server by means of the http protocol.
12. The debugging method of claim 9 wherein the front-end service presents the information carried by the feedback information via a display page.
13. An API debugging method, characterized in that the debugging method comprises:
the back-end server receives the request message sent by the front-end service through the back-end service;
the back-end service generates a standard request according to the request message and a simple storage service S3 protocol, and sends the standard request to an object storage system;
and the back-end service sends the feedback information of the standard request received from the object storage system to the front-end service.
14. A debugging method in accordance with claim 13, wherein the back-end server employs a flash framework.
15. A debugging method according to claim 13, wherein the back-end server receives the request message sent by the front-end service by means of a listening port.
16. The debugging method of claim 13, wherein the back-end service generating a standard request according to the S3 protocol based on the request message comprises:
calculating the signature of the user request according to the configuration information;
and splicing a standard http request according to the signature and the configuration information and an S3 protocol.
17. A debugging method according to claim 16, wherein the object storage system performs authentication based on the signature and returns response data to the back-end server according to the API in response to a request from a user after the authentication is passed.
18. The debugging method of claim 17 wherein the back-end server sends the response data to the front-end service.
19. A computer readable storage medium having computer readable instructions stored thereon, which when executed by a processor implement the steps of the debugging method of any of claims 9-12 and the debugging method of any of claims 13-18.
20. A computer device comprising a memory and a processor, wherein,
the memory is to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, are capable of implementing the debugging method of any one of claims 9-12 or the debugging method of any one of claims 13-18.
CN201911414155.9A 2019-12-31 2019-12-31 API debugging system, method, storage medium and computer device Pending CN111240855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911414155.9A CN111240855A (en) 2019-12-31 2019-12-31 API debugging system, method, storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911414155.9A CN111240855A (en) 2019-12-31 2019-12-31 API debugging system, method, storage medium and computer device

Publications (1)

Publication Number Publication Date
CN111240855A true CN111240855A (en) 2020-06-05

Family

ID=70874181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911414155.9A Pending CN111240855A (en) 2019-12-31 2019-12-31 API debugging system, method, storage medium and computer device

Country Status (1)

Country Link
CN (1) CN111240855A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143261A (en) * 2021-12-01 2022-03-04 浪潮云信息技术股份公司 Method and system for dynamic routing of back-end address by API gateway

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731489A (en) * 2013-12-27 2014-04-16 华为技术有限公司 Data storage method, system and equipment
CN106156289A (en) * 2016-06-28 2016-11-23 北京百迈客云科技有限公司 The method of the data in a kind of read-write object storage system and device
CN108337208A (en) * 2017-01-19 2018-07-27 中国电信股份有限公司 Data guard method, alternative based on cloud storage and cloud storage system
CN108632325A (en) * 2017-03-24 2018-10-09 中国移动通信集团浙江有限公司 A kind of call method and device of application
CN109067733A (en) * 2018-07-27 2018-12-21 成都华为技术有限公司 The method and apparatus for sending data, and the method and apparatus for receiving data
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, device, electronic equipment and storage medium
CN109698943A (en) * 2019-02-15 2019-04-30 桂林电子科技大学 A kind of web camera access platform of capacity scalable
CN110058930A (en) * 2019-04-18 2019-07-26 中国联合网络通信集团有限公司 Method for scheduling task and equipment
CN110209344A (en) * 2018-07-26 2019-09-06 腾讯科技(深圳)有限公司 The method, apparatus and computer readable storage medium of migrating objects storage

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731489A (en) * 2013-12-27 2014-04-16 华为技术有限公司 Data storage method, system and equipment
CN106156289A (en) * 2016-06-28 2016-11-23 北京百迈客云科技有限公司 The method of the data in a kind of read-write object storage system and device
CN108337208A (en) * 2017-01-19 2018-07-27 中国电信股份有限公司 Data guard method, alternative based on cloud storage and cloud storage system
CN108632325A (en) * 2017-03-24 2018-10-09 中国移动通信集团浙江有限公司 A kind of call method and device of application
CN110209344A (en) * 2018-07-26 2019-09-06 腾讯科技(深圳)有限公司 The method, apparatus and computer readable storage medium of migrating objects storage
CN109067733A (en) * 2018-07-27 2018-12-21 成都华为技术有限公司 The method and apparatus for sending data, and the method and apparatus for receiving data
CN109597717A (en) * 2018-12-07 2019-04-09 北京金山云网络技术有限公司 A kind of data backup, restoration methods, device, electronic equipment and storage medium
CN109698943A (en) * 2019-02-15 2019-04-30 桂林电子科技大学 A kind of web camera access platform of capacity scalable
CN110058930A (en) * 2019-04-18 2019-07-26 中国联合网络通信集团有限公司 Method for scheduling task and equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114143261A (en) * 2021-12-01 2022-03-04 浪潮云信息技术股份公司 Method and system for dynamic routing of back-end address by API gateway

Similar Documents

Publication Publication Date Title
CN110442524B (en) Method and device for testing web service interface with authentication authorization
US9858177B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
US8296786B2 (en) Agent-based remote function execution
US9264497B2 (en) System and method for hosting mobile devices for testing in a cloud computing environment
CN113190464A (en) mock testing method, mock testing device, electronic equipment and mock testing medium
US10552306B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
US11843674B2 (en) Virtual workspace experience visualization and optimization
CN109450736B (en) Network interface test method and device, medium and computing equipment
CN113961463A (en) Application environment switching method and system, storage medium and electronic equipment
JP2023544884A (en) Ultrasonic split key transmission for enhanced security
CN107679831B (en) Method and related device for calling ERP function
CN114189553B (en) Flow playback method, system and computing device
CN115486050A (en) Method and apparatus for cascading multiple input content preparation templates for 5G networks
CN108089972A (en) interface test method and device
CN111240855A (en) API debugging system, method, storage medium and computer device
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN113138915A (en) Page testing method, device and medium
CN113383515A (en) Device enhancements for real-time communication
US9916280B2 (en) Virtualizing TCP/IP services with shared memory transport
Varvello et al. BatteryLab: A Collaborative Platform for Power Monitoring: https://batterylab. dev
US11262990B2 (en) Application topology discovery
US11496537B2 (en) Method and apparatus for reverse address mapping when using content preparation in 5G networks
CN108270803A (en) Network file and the method and system of desktop application transmission are realized by web technologies
CN114253928A (en) Access method and device for storage file
Malm Content management via mobile devices Accessing and modifying data and content in SharePoint

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination