Supercharge Your Innovation With Domain-Expert AI Agents!

Method and devices used for realizing configuration and calling of application programming interface (API)

A programming interface and application technology, applied in the computer field, can solve the problems of difficult maintenance, high cost of error checking, and high configuration cost of the access product side, to simplify the API configuration process, easy to adjust or expand, easy to understand and use. Effect

Active Publication Date: 2017-12-01
ALIBABA GRP HLDG LTD
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Its disadvantages are: it needs to explain Json assembly rules in detail to guide users to use, and the cost of explanation is high; users need to understand the assembly rules of API complex parameters, which is costly to understand; because one parameter passes in multiple values, when users assemble errors, Problems that the API cannot accurately prompt
After receiving an error return, the user needs to check the entire Json, which is poor in friendliness and high in error troubleshooting costs
For example: the user can only be prompted that there is an error in this Json, but cannot be prompted that the type of the second disk is wrong
[0007] Solution 2. Access product configuration Split complex parameters into multiple for users: disk.1.name, disk.1.type, disk.1.size, disk.2.name, disk.2.type, disk .2.size, its disadvantages are: access to the product side is expensive to configure and difficult to maintain; access to the product side business system requires an understanding of the relationship between parameters

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and devices used for realizing configuration and calling of application programming interface (API)
  • Method and devices used for realizing configuration and calling of application programming interface (API)
  • Method and devices used for realizing configuration and calling of application programming interface (API)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The application will be described in further detail below in conjunction with the accompanying drawings.

[0034] figure 1 It shows a schematic flowchart of a method for configuring and invoking an application programming interface according to one aspect of the present application, wherein the method includes: step S1, step S2 and step S3.

[0035] In the step S1, the initial configuration parameters generated based on the cyclic configuration information are acquired; in the step S2, the configuration parameters of the application programming are generated based on the initial configuration parameters, wherein the parameter type is the initial configuration parameter of the cyclic type The configuration parameters recursively generate multiple configuration parameters; in the step S3, when the call request is received, based on the corresponding configuration parameters, the call request is parsed and reorganized to generate a call in the back-end parameter format in...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The object of the application is to provide a method and devices used for realizing configuration and calling of an application programming interface (API). For parameters which undergo batch execution and need a piece of basic logic or a combination of multiple pieces of the basic logic, the batch parameters can be combined into a plurality of initial configuration parameters, which are luculent in logic and simple in configuration, on the basis of cyclical configuration information through acquiring the initial configuration parameters generated on the basis of the cyclical configuration information, and planarization processing of the complex parameters can be realized; recursion can be carried out on the initial configuration parameters, of which a parameter type is a cyclic type, in a configuration phase to generate a plurality of configuration parameters, calling information obtained after recombining a call request into a back-end parameter format is linked into a recognizable parameter format of a product side, thus an API configuration process of a complex service scene is simplified, and use costs of complex API input parameters are reduced; and errors can be reported according to the specific parameter errors, and then the experience of the API is improved.

Description

technical field [0001] The present application relates to the computer field, and in particular to a technology for implementing application programming interface configuration and invocation. Background technique [0002] The API gateway is responsible for the protocol conversion, signature authentication, parameter processing and security protection of the API (Application Programming Interface, application programming interface); Complex business scenarios need to pass in complex API input parameters, such as: Json, and the API service provider of the access gateway parses it into the backend parameter format based on the input parameter information. [0003] When using the API to perform a complex business scenario, it is often necessary to pass in a complex parameter. For example, for a complex query, users need to query a certain business according to their own specified query conditions, or use complex parameters when adding or deleting the relationship between a pro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/44G06F9/445
CPCG06F9/44505G06F9/449
Inventor 谢文龙
Owner ALIBABA GRP HLDG LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More