CN107872484A - REST API fast registration methods, devices and systems - Google Patents

REST API fast registration methods, devices and systems Download PDF

Info

Publication number
CN107872484A
CN107872484A CN201610855017.4A CN201610855017A CN107872484A CN 107872484 A CN107872484 A CN 107872484A CN 201610855017 A CN201610855017 A CN 201610855017A CN 107872484 A CN107872484 A CN 107872484A
Authority
CN
China
Prior art keywords
api
rest
parameter
rest api
module
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.)
Granted
Application number
CN201610855017.4A
Other languages
Chinese (zh)
Other versions
CN107872484B (en
Inventor
何震苇
李蓉蓉
杨新章
周荣生
梁柏青
陆钢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201610855017.4A priority Critical patent/CN107872484B/en
Publication of CN107872484A publication Critical patent/CN107872484A/en
Application granted granted Critical
Publication of CN107872484B publication Critical patent/CN107872484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1073Registration or de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/541Client-server

Abstract

The present invention discloses a kind of REST API fast registration methods, devices and systems.This method includes:API registration meter apparatus receives the declarative state transfer REST application programming interfaces API of user's input essential information;Api interface resolver extracts REST API parameter list from REST API request bag and response bag and calls example, to complete whole REST API registration process.The present invention avoids cumbersome parameter and example Input Process, realizes flexible, quick, consistent REST API registration management by the input/output parameters and call request/response example of the extraction API from REST API requests and reply data bag.

Description

REST API fast registration methods, devices and systems
Technical field
The present invention relates to mobile Internet field interface opening field, more particularly to a kind of RESTAPI fast registrations method, Device and system.
Background technology
REST (Representational State Transfer, declarative state transfer) API (Application Programming Interface, application programming interface) it is to be based on HTTP (HyperText Transfer Protocol, HTTP) lightweight service interface, it has also become the main flow interface form of major open platform.
REST API need the registration issue in open platform to open to the outside world, check and call for third party, such as Fig. 1 Shown prior art REST API registration management methods be present, it is difficult to it is fast to adapt to API economy era API quantity The requirement that speed increases.
Using manual logon mode:Manual typing REST API one by one every terms of information, including URL (Uniform Resource Locator, URL), interface parameters, call example etc., complicated API has a large amount of inputs, output Parameter, typing is not only poorly efficient by hand entirely, and easily error.
Using API model lead-in modes:API registration is realized by the REST API descriptive models for importing pre-defined.So And current most of REST API not yet implementation models, before registering first model script is write as API, it is necessary to extra API Model editing and maintenance workload, and current three big API descriptive models (Swagger, APIBlueprint and RAML) are not It is enough perfect, all REST API forms can not be described, such as three does not support emerging YAML (Yet Another Markup Language, another markup language) data format and Token token data types, only RAML supports XML (Extensible Markup Language, extensible markup language), the logon mode flexibility based on API models is poor.
The content of the invention
In view of above technical problem, the invention provides a kind of REST API fast registrations method and system, API registration table Device, test API gateway and api interface resolver, realize flexible, quick, consistent REST API registration management.
According to an aspect of the present invention, there is provided a kind of REST API fast registration methods, including:
API registration meter apparatus receives the declarative state transfer REST application programming interfaces API of user's input base This information;
Api interface resolver shows from REST API request bag and response bag extraction REST API parameter list and calling Example, to complete whole REST API registration process.
In one embodiment of the invention, the API registration meter apparatus receives the declarative state transfer of user's input REST application programming interfaces API essential information includes:
API registration meter apparatus receives the REST API of user's input essential information;
REST API essential information is sent to test API gateway by API registration meter apparatus;
Test API gateway and API front end services port is created according to the essential information, and bind API back-end servers.
In one embodiment of the invention, the api interface resolver carries from REST API request bag and response bag Take REST API parameter list and call example to include:
Test API gateway and receive the RESTAPI request bags that API suppliers utilize API test clients to send;
The REST API requests bag is transmitted to the rear end API service with front-end A PI port bindings by test API gateway Device and api interface resolver;
Api interface resolver parses parameter list from REST API request bags and calls example, wherein the parameter List includes required parameter, and the calling example includes request example.
In one embodiment of the invention, the ginseng of request bag and response bag extraction the REST API from REST API Ordered series of numbers table and calling example also include:
Rear end API server processing REST API requests, and REST API response bags are returned into test API gateway;
REST API response bags are transmitted to api interface resolver by test API gateway;
Api interface resolver parses parameter list from REST API response bags and calls example, wherein the parameter List includes response parameter, and the calling example includes response example.
In one embodiment of the invention, the api interface resolver carries from REST API request bag and response bag The step of parameter list for taking REST API, includes:
The data of YAML, XML, JSON data format in REST API requests bag and response bag are parsed.
In one embodiment of the invention, the api interface resolver carries from REST API request bag and response bag The step of parameter list for taking REST API, includes:
To the multiple REST API requests during REST API requests, the multiple REST in REST API answerings API responses carry out multiple Parameter analysis of electrochemical;
Multiple Parameter analysis of electrochemical result is collected, it is determined that final REST API parameter list.
In one embodiment of the invention, the result to multiple Parameter analysis of electrochemical collects, it is determined that final REST API parameter list includes:
URL template in multiple Parameter analysis of electrochemical result and Path parameter result are collected, it is determined that final URL template And Path parameter;
The parameter type of Path, Query, Header, Body parameter in multiple Parameter analysis of electrochemical result is collected, it is determined that The final argument type of Path, Query, Header, Body parameter;
The HttpStatus Code and Status Message parameters of API responses in multiple Parameter analysis of electrochemical result are carried out Collect, it is determined that final HttpStatus Code and Status Message parameter values.
In one embodiment of the invention, methods described also includes:
Api interface resolver is by the parameter list and calls example write-in API registration table.
In one embodiment of the invention, methods described also includes:
API registration meter apparatus to the parameter list and calls example to delete after the modification for receiving user instructs Remove, change;
And/or
API registration meter apparatus issues API registration information after the confirmation for receiving user instructs, to formal API gateway, with Just third-party application calls REST API by formal API gateway;
And/or
API registration meter apparatus is asked in the API registration information inspection for receiving developer and being sent by API portal websites Afterwards, REST API log-on message is sent to API portal websites, so that developer checks.
According to another aspect of the present invention, there is provided a kind of API registration meter apparatus, including it is essential information receiving module, basic Information sending module and parameter list receiving module, wherein:
Essential information receiving module, the declarative state for receiving user's input shift REST application programming interfaces API essential information;
Essential information sending module, for REST API essential information to be sent into test API gateway, to test API gateway REST API requests bag and response bag are transmitted to api interface resolver;
Parameter list receiving module, parsed for receiving api interface resolver from REST API requests bag and response bag The parameter list and calling example gone out, to complete whole REST API registration process.
In one embodiment of the invention, the API registration meter apparatus also includes parameter adapting module, log-on message is sent out At least one in module is presented in cloth module and log-on message, wherein:
Parameter adapting module, after being instructed in the modification for receiving user, to the parameter list and example is called to enter Row is deleted, modification;
Log-on message release module, after being instructed in the confirmation for receiving user, to formal API gateway issue API notes Volume information, so that third-party application calls RESTAPI by formal API gateway;
Module is presented in log-on message, for looking into receiving the API registration information that developer sent by API portal websites After seeing request, REST API log-on message is sent to API portal websites, so that developer checks.
According to another aspect of the present invention, there is provided one kind test API gateway, including serve port creation module, request connect Module and request forwarding module are received, wherein:
Serve port creation module, for receiving the statement character of application programming interface API registration meter apparatus transmission State transfer REST API essential information, API front end services port is created according to the essential information, and binds API rear ends clothes Business device;
Request receiving module, the REST API request bags for utilizing API test clients to send for receiving API suppliers;
Forwarding module is asked, for the REST API requests bag to be transmitted to the rear end API with front-end A PI port bindings Server and api interface resolver, so as to api interface resolver parsed from REST API request bags parameter list and Example is called, and writes API registration table, wherein the parameter list includes required parameter, the calling example is shown including request Example.
In one embodiment of the invention, the test API gateway also includes response receiving module and response forwarding mould Block, wherein:
Response receiving module, for receiving the REST returned after rear end API server is handled REST API requests API response bags;
Response forwarding module, for REST API response bags to be transmitted into api interface resolver, so that api interface parses Device parses parameter list from REST API request bags and calls example, and writes API registration table, wherein the parameter list Also include response parameter, the calling example also includes response example.
According to another aspect of the present invention, there is provided a kind of api interface resolver, including packet-receiving module, packet Parsing module and parameter read-in module, wherein:
Packet-receiving module, the declarative state transfer REST application programs for receiving test API gateway forwarding are compiled Journey interface API request bag, wherein test API gateway is receiving REST of the API suppliers using the transmission of API test clients During API request bag, by the REST API requests bag be transmitted to the rear end API server of front-end A PI port bindings and Api interface resolver;
Resolve packet module, for parsing parameter list from REST API request bags and calling example, wherein, institute Stating parameter list includes required parameter, and the calling example includes request example;
Parameter read-in module, for the parameter list and calling example to be write into API registration table.
In one embodiment of the invention, packet-receiving module is additionally operable to test the REST API of API gateway forwarding Response bag, wherein, test API gateway holds what API server returned after handling REST API requests upon receipt During REST API response bags, REST API response bags are transmitted to api interface resolver;Resolve packet module be additionally operable to from Parameter list is parsed in REST API request bags and calls example, wherein the parameter list also includes response parameter, it is described Example is called also to include response example.
In one embodiment of the invention, resolve packet module is used to answer REST API requests bag or REST API The data for answering YAML, XML, JSON data format in bag are parsed.
In one embodiment of the invention, resolve packet module is used for multiple during REST API requests Multiple RESTAPI responses in REST API requests, REST API answerings carry out multiple Parameter analysis of electrochemical;And to repeatedly ginseng Number analysis result is collected, it is determined that final REST API parameter list.
In one embodiment of the invention, resolve packet module is used for the URL moulds in multiple Parameter analysis of electrochemical result Plate and Path parameter result are collected, it is determined that final URL template and Path parameter;To in multiple Parameter analysis of electrochemical result The parameter type of Path, Query, Header, Body parameter is collected, and determines Path, Query, Header, Body parameter Final argument type;To HttpStatus Code and Status the Message parameters of API responses in multiple Parameter analysis of electrochemical result Collected, it is determined that final HttpStatus Code and Status Message parameter values.
According to another aspect of the present invention, there is provided a kind of REST API fast registration systems, including any implementation as described above Described in API registration meter apparatus described in example, the test API gateway described in any of the above-described embodiment and any of the above-described embodiment Api interface resolver.
The present invention is asked by extracting API input/output parameters from REST API requests and reply data bag and calling / response example is sought, avoids cumbersome parameter and example Input Process, realizes flexible, quick, consistent REST API registrations Management.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the schematic diagram of prior art REST API registration management methods of the present invention.
Fig. 2 is the schematic diagram of REST API fast registrations system one embodiment of the present invention.
Fig. 3 is the schematic diagram of REST API fast registrations method first embodiment of the present invention.
Fig. 4 a- Fig. 4 c are the schematic diagram of REST API fast registrations method second embodiment of the present invention.
Fig. 5 is the schematic diagram of API registration meter apparatus first embodiment of the present invention.
Fig. 6 is the schematic diagram of API registration meter apparatus second embodiment of the present invention.
Fig. 7 is the schematic diagram of present invention test API gateway first embodiment.
Fig. 8 is the schematic diagram of present invention test API gateway second embodiment.
Fig. 9 is the schematic diagram of api interface resolver one embodiment of the present invention.
Figure 10 is the schematic diagram of resolve packet module in one embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Below Description only actually at least one exemplary embodiment is illustrative, is never used as to the present invention and its application or makes Any restrictions.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
Unless specifically stated otherwise, the part and positioned opposite, the digital table of step otherwise illustrated in these embodiments Do not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality Proportionate relationship draw.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
Fig. 2 is the schematic diagram of REST API fast registrations system one embodiment of the present invention.As shown in Fig. 2 the REST API fast registrations system includes API registration meter apparatus 1, test API gateway 2 and api interface resolver 3.
API registration meter apparatus 1, the declarative state for receiving user's input shift REST application programming interfaces The essential informations such as API API Name, URL, and REST API essential information is sent to test API gateway 2.
API gateway 2 is tested, the essential information of the REST API for receiving the transmission of API registration meter apparatus 1;According to described Essential information creates API front end services port, and binds API back-end servers;API suppliers are received using API test clients Hold the REST API request bags sent;The REST API requests bag is transmitted to and taken with the rear end API of front-end A PI port bindings Business device and api interface resolver 3.
Api interface resolver 3, the REST API requests bag forwarded for receiving test API gateway 2;From REST Parameter list is parsed in API request bag and calls example, wherein, the parameter list includes required parameter, and the calling is shown Example includes request example;By the parameter list and call example write-in API registration table.
The REST API fast registration systems provided based on the above embodiment of the present invention, for current REST API registrations pipe The problems such as poorly efficient existing for reason, fallibility, very flexible, two that REST API registration information is divided into manual entry and automatically generated Partial content, first by essential informations such as manual entry API Name, URL, then by from REST API request data package Automatically extract REST API parameter list and call example, complete whole REST API registration process, so as to realize flexibly, Quickly, consistent REST API registration management.
In one embodiment of the invention, test API gateway 2 can be also used for receiving rear end API server to REST The REST API response bags that API request returns after being handled;REST API response bags are transmitted to api interface resolver 3.
Api interface resolver 3 can be also used for parsing parameter list from REST API request bags and call example, and API registration table is write, wherein the parameter list also includes response parameter, the calling example also includes response example.
The above embodiment of the present invention can extract API input/output ginseng from REST API requests and reply data bag Number and call request/response example, so as to avoid cumbersome parameter and example Input Process, improve REST API registrations effect Rate.In the above embodiment of the present invention, the registration parameter and calling example of open interface are directed to real API Calls, from And it ensure that the uniformity that opening API interface is realized with rear end API.
Fig. 3 is the schematic diagram of REST API fast registrations method first embodiment of the present invention.Preferably, the present embodiment can be by REST API fast registrations system of the present invention performs.Fig. 3 embodiments can include:
Step 31, API registration meter apparatus 1 receives the declarative state transfer REST application programming interfaces of user's input API essential information.
Step 32, the REST that api interface resolver 3 is sent from test application by testing API gateway to API server REST API parameter list is extracted in the response bag that API request bag and API server returns and calls example, with Complete whole REST API registration process.
In one embodiment of the invention, API input/output is extracted from REST API requests and reply data bag Parameter, including input, the parameter name and parameter type of output parameter, parameter type support numeral, boolean, date, character string, number Group, object.
The REST API fast registration methods provided based on the above embodiment of the present invention, it is that one kind is based on API communication bag solutions The REST API fast registration methods of analysis, this method is for poorly efficient, fallibility, flexibility existing for the management of current REST API registrations The problems such as poor, two parts content that REST API registration information is divided into manual entry and automatically generated, first by manual entry The essential informations such as API Name, URL, then by automatically extracting REST API parameter from REST API request data package List and calling example, whole REST API registration process is completed, so as to realize flexible, quick, consistent REST API notes Volume management.
In one embodiment of the invention, the REST API requests of extraction and response bag can be as the calling of API documents Request and response example.
In the above embodiment of the present invention, the registration parameter and calling example of open interface are directed to real API and adjusted With API registration is combined with API tests, ensure that the uniformity that opening API interface and API are realized.
In one embodiment of the invention, for REST API every kind of parameter model (Path, Query, Header, Body) expansible parameter interpretation device is provided, support arbitrary parameter combination collocation.Thus the above embodiment of the present invention can be flexible Adapt to all kinds of REST API forms.
In one embodiment of the invention, methods described can also include:According to the change of API request and reply data Automatically update API registration information and API document information, the version change of automatic Administration API log-on message.Thus, in the present invention The intelligence degree that embodiment further improves API registration and management is stated, improves Consumer's Experience.
Fig. 4 a- Fig. 4 c are the schematic diagram of REST API fast registrations method second embodiment of the present invention.Preferably, this implementation Example can be performed by REST API fast registrations system of the present invention.Fig. 4 a embodiments can include:
Step 41, REST API essential information is manually added into API registration table first, API essential informations include:
API Name:Such as send short message.
Front end URL prefix, such as:/api/1.0/app.
Rear end URL prefix, such as:http://10.10.10.10/app.
Http methods, such as:post.
Step 42, API registration meter apparatus can use RPC to test API gateway issue API front ends URL entrances (Remote Procedure Call Protocol, remote procedure call protocol) calls or event pushes mode by API base This information is sent to test API gateway.
Step 43, test API gateway create API front end services port according to API essential informations, and API front ends URL is API Test gateway domain name+preceding degree URL prefix, such as http://testapi.open.cn/api/1.0/app, and bind API rear ends clothes Business device.
Step 44, API suppliers send RESTAPI requests using API test clients to test API gateway, test API API request is transmitted to the rear end API server with front-end A PI port bindings by gateway, and rear end API server handles API request, API responses are returned into API test gateways.API request and API responses use standard HTTP requests and response encapsulation, wherein Position of the parameter of API request in HTTP request bag can be Path, Query, HttpHeader or HttpBody, and response is joined Several positions can be StatusCode, HttpHeader or HttpBody.
API request bag and response bag are transmitted to api interface resolver by step 45, test API gateway.
Step 46, api interface resolver are from request Packet analyzing API request parameter (parameter name, parameter type), from response bag Response parameter is parsed, the required parameter being resolved to, response parameter and request example and response example are write to the registration of the API List item.
In one embodiment of the invention, in Fig. 4 a embodiments in step 46, the api interface resolver is from request bag Parsing API request parameter can include from the step of response Packet analyzing response parameter:To REST API requests bag or REST The data of YAML, XML, JSON data format are parsed in API response bags.Such as:Can to REST API requests bag or The data of the different data format such as YAML, XML, JSON are parsed in Body parameters in REST API response bags.
In one embodiment of the invention, as shown in Figure 4 b, in Fig. 4 a embodiments in step 46, the api interface solution Parser can include from request Packet analyzing API request parameter or from the step of response Packet analyzing response parameter:
Step 461, to more in the multiple REST API requests during REST API requests, REST API answerings Secondary REST API responses carry out multiple Parameter analysis of electrochemical.
Step 462, multiple Parameter analysis of electrochemical result is collected, it is determined that final REST API parameter list.
In one embodiment of the invention, as illustrated in fig. 4 c, step 462 step can include in Fig. 4 b embodiments:
Step 4621, the URL template in multiple Parameter analysis of electrochemical result and Path parameter result are collected, it is determined that finally URL template and Path parameter.
Such as:Pass through multi collect URL values:
/api/1.0/app/123/category/456;
/api/1.0/app/189/category/4930;
It can determine that URL template is:/api/1.0/app/{path1}/category/{path2}.
Wherein, URL template is by URL prefix (/api/1.0/app/), path constant (category) and path parameter (path1, path2) is formed.Path constant is constant in multiple request, and path parameter at least has two not in multiple request Same value.
Step 4622, the parameter type to Path, Query, Header, Body parameter in multiple Parameter analysis of electrochemical result are carried out Collect, determine the final argument type of Path, Query, Header, Body parameter.
Such as:The recognizable parameter type of Path, Query, Header, Body parameter, the parameter type of support are:It is whole Number, floating number, boolean, date, character string, array, object.Wherein integer, floating number, boolean, date belong to accurate type, meet Character string type is translated into during to string value.
Step 4623, HttpStatus Code and the Status Message to API responses in multiple Parameter analysis of electrochemical result Parameter is collected, it is determined that final HttpStatus Code and Status Message parameter values.Wherein, in API responses HttpStatus Code and Status Message parameters occur in pairs.
Such as the HttpStatus Code and Status Message parameter values of parsing are 200A for the first time, second of solution The HttpStatus Code and Status Message parameter values of analysis are 200B, then by final HttpStatus Code and Status Message parameter values are updated to secondary analytic value, i.e. HttpStatus Code and Status Message ginsengs Numerical value is defined by last time analytic value.
Step 47, API suppliers can delete the parameter and example that need not be issued, and confirm that API registration information is formal backward API gateway issues API.
Step 48, developer check API registration information by API doors, and third-party application is called by formal API gateway REST API。
For the problems such as poorly efficient, fallibility, very flexible, the present invention is above-mentioned existing for current REST API registrations management method The method of embodiment by automatically extracting REST API interface message from REST API request and reply data bag, so as to REST API registration process is simplified, improves REST API registration efficiency.The method of the above embodiment of the present invention is by API's Registration process is combined with API test process, allows API log-on message and API back-end realization to be consistent, so as to be lifted The quality of REST API registration information.
The above embodiment of the present invention can realize the parsing of the data to different data formats such as YAML, XML, JSON.
The above embodiment of the present invention can be answered the multiple REST API requests during REST API requests, REST API Multiple REST API responses during answering carry out multiple Parameter analysis of electrochemical, and multiple Parameter analysis of electrochemical result is carried out to collect determination most Whole REST API parameter list.Thus, the above embodiment of the present invention improves the instruction to API Parameter analysis of electrochemical, so as to enter One step improves the quality of REST API registration information.
How ginseng is made requests on to api interface resolver in the above embodiment of the present invention step 46 below by specific example Number parsing illustrates.
First, required parameter parsing example:
POST/api/1.0/app/3065HTTP/1.1
Accept:application/json;
Content-Type:application/json
Authorization:f2s3d1ad13c4d32fas3d15ac3d13c4d32
Content-Length:72
{"appName":"TestApp","appType":1,"appState":0,"desc":"It'sa test app"}
For above-mentioned request data package, Parameter analysis of electrochemical step is as follows:
Step 0, the URL prefix for the API for assuming to issue in test API gateway are "/api/1.0/app/ ".
Step 1, the first word for parsing HttpMethod, i.e. request bag, obtain POST.
Step 2, parsing Path parameter list.Arrived after extraction URL prefix '' between (i.e. Query parameters) or space Content, Path parameter are named as Path1, Path2... successively, obtain Paths [{ " path1 ", " Integer ", " 3065 " }].
Step 3, parsing Query parameter lists.Extract URLContent afterwards, this example are sky.
Step 4, parsing HttpHeader parameter lists, are obtained:
HttpHeaders:[{"Accept","string","application/json"},
{"Content-Type","string","application/json"},
{"Authorization","string","f2s3d1ad13c4d32fas3d15ac3d13c4d32"},
{"Content-Length","Integer",72}
]
Step 5, filter criteria HttpHeader (standard HttpHeader lists can pre-define), in this example Accept, Content-Type, Content-Length are standard http heads, and APIHeader lists are obtained after filtering.
APIHeaders:[{"Authorization","string"," f2s3d1ad13c4d32fas3d15ac3d13c4d32"}]
6th, Body parameters are parsed.
A) JSON (JavaScript object representation) is performed if Content-Type is application/json Resolver, JSON parsings are carried out to body parameters.
B) XML parser is performed if Content-Type is application/xml, XML is carried out to body parameters Parsing.
C) YAML resolvers are performed if Content-Type is application/x-yaml, body parameters is carried out YAML is parsed.
This example carries out json and parses to obtain following Body parameters:
For the above-mentioned request data package of the present invention, following required parameter list may finally be obtained:
2nd, response Parameter analysis of electrochemical example
HTTP/1.1 200OK
Content-Type:application/json;charset-UTF-8
{"appId":1,"appName":"TestApp","appType":1,"appState":0,"desc":"It's a test app"}
It is as follows for above-mentioned reply data bag, Parameter analysis of electrochemical step:
Step 1, the StatusCode and Message for parsing Http, are here 200 and OK.
Step 2, parsing HttpHeader parameter lists, it is similar with the HttpHeader analysis modes of above-mentioned request.
Step 3, parsing Body parameters, it is similar with the Body Parameter analysis of electrochemical modes of above-mentioned request.
Finally give following response parameter list:
Below by specific example to the API registration meter apparatus 1 in REST API fast registration systems of the present invention, test The 26S Proteasome Structure and Function of API gateway 2 and api interface resolver 3 illustrates:
Fig. 5 is the schematic diagram of API registration meter apparatus first embodiment of the present invention.As shown in figure 5, the API notes of Fig. 2 embodiments Volume meter apparatus 1 can include essential information receiving module 11, essential information sending module 12 and parameter list receiving module 13, its In:
Essential information receiving module 11, the declarative state transfer REST application programmings for receiving user's input connect Mouth API essential information.
Essential information sending module 12, for the essential information of the REST API to be sent into test API gateway 2, with Just test API gateway 2REST API requests bag and response bag is transmitted to api interface resolver 3.
Parameter list receiving module 13, solved for receiving api interface resolver 3 from REST API requests bag and response bag The parameter list and calling example of precipitation, to complete whole REST API registration process.
The API registration meter apparatus provided based on the above embodiment of the present invention, exist for current REST API registrations management Poorly efficient, fallibility, very flexible the problems such as, by REST API registration information is divided into manual entry and automatically generates two parts Hold, first by essential informations such as manual entry API Name, URL, then by being carried automatically from REST API request data package Take REST API parameter list and call example, complete whole REST API registration process, so as to realize it is flexible, quick, Consistent REST API registration management.
Fig. 6 is the schematic diagram of API registration meter apparatus second embodiment of the present invention.Compared with embodiment illustrated in fig. 5, in Fig. 6 In illustrated embodiment, the API registration meter apparatus 1 can also include parameter adapting module 14, the and of log-on message release module 15 At least one in module 16 is presented in log-on message, wherein:
Parameter adapting module 14, after being instructed in the modification for receiving user, to the parameter list and call example Deleted, changed.
Such as:Parameter adapting module 14 can indicate according to user, delete the parameter and example that need not be issued.
Thus the above embodiment of the present invention adds user and checks link, so as to improve the accuracy of API registration information And otherness, Consumer's Experience is improved, user can select to need the parameter and example issued as needed.
Log-on message release module 15, after being instructed in the confirmation for receiving user, API is issued to formal API gateway Log-on message, so that third-party application calls REST API by formal API gateway.
Thus the above embodiment of the present invention adds user's verification and confirms link, so as to further increase API registration The accuracy of information.
Module 16 is presented in log-on message, in the API registration information for receiving developer and being sent by API portal websites After checking request, REST API log-on message is sent to API portal websites, so that developer checks.
Thus the above embodiment of the present invention facilitates developer's checking and managing to API registration information, improves exploitation The usage experience of person.
Fig. 7 is the schematic diagram of present invention test API gateway first embodiment.As shown in fig. 7, the test API of Fig. 2 embodiments Gateway 2 can include serve port creation module 21, request receiving module 22 and request forwarding module 23, wherein:
Serve port creation module 21, for receiving the declarative of the transmission of application programming interface API registration meter apparatus 1 State transfer REST API essential information, creates API front end services port, and bind API rear ends according to the essential information Server.
Request receiving module 22, the REST API requests for utilizing API test clients to send for receiving API suppliers Bag.
Forwarding module 23 is asked, for the REST API requests bag to be transmitted to the rear end with front-end A PI port bindings API server and api interface resolver 3, so that api interface resolver 3 parses parameter row from REST API request bags Table and calling example, and API registration table is write, wherein the parameter list includes required parameter, the calling example includes please Seek example.
The test API gateway provided based on the above embodiment of the present invention, for existing for the management of current REST API registrations The problems such as poorly efficient, fallibility, very flexible, api interface resolver will be sent to from REST API request data package, so as to API Interface resolver automatically extracts REST API interface message, so as to simplify REST API registration process, improves REST API registration efficiency.API registration process is combined by the method for the above embodiment of the present invention with API test process, allows API Log-on message and API back-end realization be consistent, so as to improve the quality of REST API registration information.
Fig. 8 is the schematic diagram of present invention test API gateway second embodiment.Compared with embodiment illustrated in fig. 7, in Fig. 8 institutes Showing in embodiment, the test API gateway 2 can also include response receiving module 24 and response forwarding module 25, wherein:
Response receiving module 24, for receiving what is returned after rear end API server is handled REST API requests REST API response bags.
Response forwarding module 25, for REST API response bags to be transmitted into api interface resolver 3, so as to api interface solution Parser 3 parses parameter list from REST API request bags and calls example, and writes API registration table, wherein the parameter List also includes response parameter, and the calling example also includes response example.
The above embodiment of the present invention from REST API request and reply data bag by automatically extracting REST API's Interface message, so as to simplify REST API registration process, improve REST API registration efficiency.
Fig. 9 is the schematic diagram of api interface resolver one embodiment of the present invention.As shown in figure 9, the 9API of Fig. 2 embodiments Interface resolver 3 includes packet-receiving module 31, resolve packet module 32 and parameter read-in module 33, wherein:
Packet-receiving module 31, REST application programs are shifted for receiving the declarative state that test API gateway 2 forwards DLL API request bag, wherein test API gateway 2 is receiving what API suppliers were sent using API test clients During REST API request bags, by the REST API requests bag be transmitted to the rear end API server of front-end A PI port bindings, And api interface resolver 3.
Resolve packet module 32, for parsing parameter list from REST API request bags and calling example, wherein, The parameter list includes required parameter, and the calling example includes request example.
Parameter read-in module 33, for the parameter list and calling example to be write into API registration table.
In one embodiment of the invention, packet-receiving module 31 can be also used for receive test API gateway 2 forward REST API response bags, wherein, test API gateway 2 hold API server to handle REST API requests upon receipt During the REST API response bags returned afterwards, REST API response bags are transmitted to api interface resolver 3;Resolve packet module 32 can be also used for parsing parameter list from REST API request bags and call example, wherein the parameter list also includes Response parameter, the calling example also include response example.
The api interface resolver provided based on the above embodiment of the present invention, for current REST API registrations management method The problems such as existing poorly efficient, fallibility, very flexible, by automatically extracting REST from REST API request and reply data bag API interface message, so as to simplify REST API registration process, improve REST API registration efficiency.The present invention is above-mentioned API registration process is combined by the method for embodiment with API test process, allow API log-on message and API rear end it is real Now it is consistent, so as to improve the quality of REST API registration information.
In one embodiment of the invention, resolve packet module 32 it is specific can be used for REST API requests bag or The data of YAML, XML, JSON data format are parsed in REST API response bags.
The above embodiment of the present invention can realize the parsing of the data to different data formats such as YAML, XML, JSON.
In one embodiment of the invention, resolve packet module 32 specifically can be used for REST API request processes In multiple REST API requests, multiple REST API responses in REST API answerings carry out multiple Parameter analysis of electrochemical;With And multiple Parameter analysis of electrochemical result is collected, it is determined that final REST API parameter list.
In one embodiment of the invention, resolve packet module 32 specifically can be used for multiple Parameter analysis of electrochemical result In URL template and Path parameter result collected, it is determined that final URL template and Path parameter;To multiple Parameter analysis of electrochemical As a result the parameter type of middle Path, Query, Header, Body parameter is collected, and determines Path, Query, Header, Body The final argument type of parameter;To the HttpStatus Code and Status of API responses in multiple Parameter analysis of electrochemical result Message parameters are collected, it is determined that final HttpStatus Code and Status Message parameter values.
The above embodiment of the present invention can be answered the multiple REST API requests during REST API requests, REST API Multiple REST API responses during answering carry out multiple Parameter analysis of electrochemical, and multiple Parameter analysis of electrochemical result is carried out to collect determination most Whole REST API parameter list.Thus, the above embodiment of the present invention improves the instruction to API Parameter analysis of electrochemical, so as to enter One step improves the quality of REST API registration information.
Figure 10 is the schematic diagram of resolve packet module in one embodiment of the invention.As shown in Figure 10, Fig. 9 packet Parsing module 32 can be subdivided into three modules:API request header parsing module 321, API response headers parsing module 322 and Body Parsing module 323, wherein:
API request header parsing module 321 and API response headers parsing module 322 all call (or dependence) Body parsing modules 323。
API request header parsing module 321 can include HttpMethod resolution units, URL template resolution unit, Path ginsengs Number resolution unit, Query Parameter analysis of electrochemical unit, Header Parameter analysis of electrochemical unit, type resolution unit, it is respectively used to parse API HttpMethod, URL template, Path parameter, Query parameters, Header parameters and each parameter type in request header.
API response headers parsing module 322 can include StatusCode resolution units, Header Parameter analysis of electrochemical unit, class Type resolution unit is respectively used to parse StatusCode parameters, Header Parameter analysis of electrochemical unit and each parameter type.
Body parsing modules 323 can include XML resolution units, JSON resolution units, YAML resolution units and be respectively used to Parse the data of XML, JSON, YAML data format in packet Body.
Header Parameter analysis of electrochemical unit wherein in API request header parsing module 321 and API response headers parsing module 322, The repeat units such as type resolution unit are extractable to be out used as public module.
API registration meter apparatus 1 described above, test API gateway 2, api interface resolver 3 can be implemented as using In perform the general processor of function described herein, programmable logic controller (PLC) (PLC), digital signal processor (DSP), Application specific integrated circuit (ASIC), field programmable gate array (FPGA) either other PLDs, discrete gate or crystalline substance Body pipe logical device, discrete hardware components or it is any appropriately combined.
So far, the present invention is described in detail.In order to avoid the design of the masking present invention, it is public that this area institute is not described Some details known.Those skilled in the art as described above, can be appreciated how to implement technology disclosed herein completely Scheme.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
Description of the invention provides for the sake of example and description, and is not exhaustively or by the present invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.Select and retouch State embodiment and be to more preferably illustrate the principle and practical application of the present invention, and one of ordinary skill in the art is managed The present invention is solved so as to design the various embodiments with various modifications suitable for special-purpose.

Claims (18)

  1. A kind of 1. REST API fast registration methods, it is characterised in that including:
    API registration meter apparatus receives the declarative state transfer REST application programming interfaces API of user's input basic letter Breath;
    Api interface resolver extracts REST API parameter list from REST API request bag and response bag and calls example, To complete whole REST API registration process.
  2. 2. according to the method for claim 1, it is characterised in that the API registration meter apparatus receives the statement of user's input Character state transfer REST application programming interfaces API essential information includes:
    API registration meter apparatus receives the REST API of user's input essential information;
    REST API essential information is sent to test API gateway by API registration meter apparatus;
    Test API gateway and API front end services port is created according to the essential information, and bind API back-end servers.
  3. 3. according to the method for claim 1, it is characterised in that request bag of the api interface resolver from REST API Include with response bag extraction REST API parameter list and calling example:
    Test API gateway and receive the RESTAPI request bags that API suppliers utilize API test clients to send;
    The REST API requests bag is transmitted to the rear end API server of front-end A PI port bindings by test API gateway, with And api interface resolver;
    Api interface resolver parses parameter list from REST API request bags and calls example, wherein the parameter list Including required parameter, the calling example includes request example.
  4. 4. according to the method for claim 3, it is characterised in that the request bag and response bag from REST API is extracted REST API parameter list and calling example also includes:
    Rear end API server processing REST API requests, and REST API response bags are returned into test API gateway;
    REST API response bags are transmitted to api interface resolver by test API gateway;
    Api interface resolver parses parameter list from REST API response bags and calls example, wherein the parameter list Including response parameter, the calling example includes response example.
  5. 5. according to the method any one of claim 1-4, it is characterised in that the api interface resolver is from REST The step of API request bag and response bag extraction REST API parameter list, includes:
    The data of YAML, XML, JSON data format in REST API requests bag and response bag are parsed.
  6. 6. according to the method any one of claim 1-4, it is characterised in that the api interface resolver is from REST The step of API request bag and response bag extraction REST API parameter list, includes:
    Multiple REST API requests during REST API requests, the multiple REST API in REST API answerings are answered Answer and carry out multiple Parameter analysis of electrochemical;
    Multiple Parameter analysis of electrochemical result is collected, it is determined that final REST API parameter list.
  7. 7. according to the method for claim 6, the result to multiple Parameter analysis of electrochemical collects, it is determined that final REST API parameter list includes:
    URL template in multiple Parameter analysis of electrochemical result and Path parameter result are collected, it is determined that final URL template and Path parameter;
    The parameter type of Path, Query, Header, Body parameter in multiple Parameter analysis of electrochemical result is collected, it is determined that The final argument type of Path, Query, Header, Body parameter;
    HttpStatus Code and the StatusMessage parameters of API responses in multiple Parameter analysis of electrochemical result are collected, It is determined that final HttpStatus Code and StatusMessage parameter values.
  8. 8. according to the method any one of claim 1-4, it is characterised in that also include:
    Api interface resolver is by the parameter list and calls example write-in API registration table;
    And/or
    API registration meter apparatus to the parameter list and calls example to be deleted, repaiied after the modification for receiving user instructs Change;
    And/or
    API registration meter apparatus issues API registration information after the confirmation for receiving user instructs, to formal API gateway, so as to the Tripartite applies calls REST API by formal API gateway;
    And/or
    API registration meter apparatus, will after the API registration information inspection request that developer is sent by API portal websites is received REST API log-on message is sent to API portal websites, so that developer checks.
  9. 9. a kind of API registration meter apparatus, it is characterised in that including essential information receiving module, essential information sending module and ginseng Ordered series of numbers table receiving module, wherein:
    Essential information receiving module, for receiving the declarative state transfer REST application programming interfaces API of user's input Essential information;
    Essential information sending module, for REST API essential information to be sent into test API gateway, to test API nets Close REST API requests bag and response bag is transmitted to api interface resolver;
    Parameter list receiving module, parsed from REST API requests bag and response bag for receiving api interface resolver Parameter list and calling example, to complete whole REST API registration process.
  10. 10. API registration meter apparatus according to claim 9, it is characterised in that also including parameter adapting module, registration letter At least one in release module and log-on message presentation module is ceased, wherein:
    Parameter adapting module, after being instructed in the modification for receiving user, to the parameter list and example is called to delete Remove, change;
    Log-on message release module, after being instructed in the confirmation for receiving user, to formal API gateway issue API registration letter Breath, so that third-party application calls RESTAPI by formal API gateway;
    Module is presented in log-on message, for please in the API registration information inspection for receiving developer and being sent by API portal websites After asking, REST API log-on message is sent to API portal websites, so that developer checks.
  11. 11. one kind test API gateway, it is characterised in that including serve port creation module, request receiving module and request forwarding Module, wherein:
    Serve port creation module, the declarative state for receiving the transmission of application programming interface API registration meter apparatus turn REST API essential information is moved, API front end services port is created according to the essential information, and bind API back-end servers;
    Request receiving module, the REST API request bags for utilizing API test clients to send for receiving API suppliers;
    Forwarding module is asked, for the REST API requests bag to be transmitted to the rear end API service with front-end A PI port bindings Device and api interface resolver, so that api interface resolver parses parameter list and calling from REST API request bags Example, and API registration table is write, wherein the parameter list includes required parameter, the calling example includes request example.
  12. 12. test API gateway according to claim 11, it is characterised in that also turn including response receiving module and response Module is sent out, wherein:
    Response receiving module, for receiving the REST API returned after rear end API server is handled REST API requests Response bag;
    Response forwarding module, for REST API response bags to be transmitted into api interface resolver, so as to api interface resolver from Parameter list is parsed in REST API request bags and calls example, and writes API registration table, wherein the parameter list also wraps Response parameter is included, the calling example also includes response example.
  13. 13. a kind of api interface resolver, it is characterised in that write including packet-receiving module, resolve packet module and parameter Enter module, wherein:
    Packet-receiving module, the declarative state transfer REST application programmings for receiving test API gateway forwarding connect Mouthful API request bag, wherein test API gateway receive REST API that API suppliers are sent using API test clients please When seeking bag, the REST API requests bag is transmitted to the rear end API server and api interface with front-end A PI port bindings Resolver;
    Resolve packet module, for parsing parameter list from REST API request bags and calling example, wherein, the ginseng Ordered series of numbers table includes required parameter, and the calling example includes request example;
    Parameter read-in module, for the parameter list and calling example to be write into API registration table.
  14. 14. api interface resolver according to claim 13, it is characterised in that
    Packet-receiving module is additionally operable to test the REST API response bags of API gateway forwarding, wherein, test API gateway is connecing , should by REST API when receiving the REST API response bags returned after rear end API server is handled REST API requests Answer bag and be transmitted to api interface resolver;
    Resolve packet module is additionally operable to parse parameter list from REST API request bags and calls example, wherein the ginseng Ordered series of numbers table also includes response parameter, and the calling example also includes response example.
  15. 15. the api interface resolver according to claim 13 or 14, it is characterised in that
    Resolve packet module is used for YAML, XML, JSON data format in REST API requests bag or REST API response bags Data parsed.
  16. 16. the api interface resolver according to claim 13 or 14, it is characterised in that
    Resolve packet module is used for the multiple REST API requests during REST API requests, REST API answerings In multiple REST API responses carry out multiple Parameter analysis of electrochemical;And multiple Parameter analysis of electrochemical result is collected, it is determined that finally REST API parameter list.
  17. 17. api interface resolver according to claim 16, it is characterised in that
    Resolve packet module is used to collect the URL template in multiple Parameter analysis of electrochemical result and Path parameter result, really Fixed final URL template and Path parameter;To the ginseng of Path, Query, Header, Body parameter in multiple Parameter analysis of electrochemical result Several classes of types are collected, and determine the final argument type of Path, Query, Header, Body parameter;To multiple Parameter analysis of electrochemical knot HttpStatus Code and Status the Message parameters of API responses in fruit are collected, it is determined that final HttpStatus Code and Status Message parameter values.
  18. 18. a kind of REST API fast registration systems, it is characterised in that including the API registration table as described in claim 9 or 10 Device, the test API gateway as described in claim 11 or 12 and the API as any one of claim 13-17 connect Mouth resolver.
CN201610855017.4A 2016-09-27 2016-09-27 REST API rapid registration method, device and system Active CN107872484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610855017.4A CN107872484B (en) 2016-09-27 2016-09-27 REST API rapid registration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610855017.4A CN107872484B (en) 2016-09-27 2016-09-27 REST API rapid registration method, device and system

Publications (2)

Publication Number Publication Date
CN107872484A true CN107872484A (en) 2018-04-03
CN107872484B CN107872484B (en) 2020-12-25

Family

ID=61751267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610855017.4A Active CN107872484B (en) 2016-09-27 2016-09-27 REST API rapid registration method, device and system

Country Status (1)

Country Link
CN (1) CN107872484B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151091A (en) * 2018-09-21 2019-01-04 福建南威软件有限公司 A kind of API gateway service for supporting dubbo agreement to call
CN109144512A (en) * 2018-08-22 2019-01-04 杭州数澜科技有限公司 A kind of method and system generating API
CN109558311A (en) * 2018-10-26 2019-04-02 深圳点猫科技有限公司 A kind of the automation interface method of calibration and electronic equipment of educational system
CN110610069A (en) * 2019-09-09 2019-12-24 苏州浪潮智能科技有限公司 Method and device for calling REST interface in web system
CN110968296A (en) * 2019-12-03 2020-04-07 政采云有限公司 Data acquisition method, device, equipment and readable storage medium
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN111506365A (en) * 2019-01-31 2020-08-07 北京数聚鑫云信息技术有限公司 Method and device for automatically constructing API
CN112131022A (en) * 2020-09-22 2020-12-25 深圳力维智联技术有限公司 Open API management method, device and system and computer readable storage medium
CN114257531A (en) * 2021-12-10 2022-03-29 北京金山云网络技术有限公司 Test method and related device for Application Programming Interface (API) gateway
CN114338783A (en) * 2021-11-08 2022-04-12 浙江高信技术股份有限公司 API management platform based on technical middlebox and management method thereof
KR102411296B1 (en) * 2020-12-30 2022-06-22 한국전자기술연구원 Method for providing semantic REST API
US11647100B2 (en) 2018-09-30 2023-05-09 China Mobile Communication Co., Ltd Research Inst Resource query method and apparatus, device, and storage medium
CN116401650A (en) * 2023-04-14 2023-07-07 苏州慧睿康智能科技有限公司 Determinant-based API finite state security calling method
CN112131022B (en) * 2020-09-22 2024-05-14 深圳力维智联技术有限公司 Open API management method, device, system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615116A (en) * 2008-06-23 2009-12-30 成都市华为赛门铁克科技有限公司 A kind of interface acquisition methods, Apparatus and system
CN103561113A (en) * 2013-11-18 2014-02-05 金蝶软件(中国)有限公司 Web Service interface generating method and device
US8676979B2 (en) * 2010-05-18 2014-03-18 Salesforce.Com, Inc. Methods and systems for efficient API integrated login in a multi-tenant database environment
CN104158856A (en) * 2014-07-23 2014-11-19 武汉理工大学 Local API calling method dispense with preset of secure session
CN104639603A (en) * 2014-11-27 2015-05-20 四川长虹电器股份有限公司 RESTful (representational state transfer) service design method based on Spring MVC
US20150295983A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Generation of representational state transfer interface from application programming interfaces

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615116A (en) * 2008-06-23 2009-12-30 成都市华为赛门铁克科技有限公司 A kind of interface acquisition methods, Apparatus and system
US8676979B2 (en) * 2010-05-18 2014-03-18 Salesforce.Com, Inc. Methods and systems for efficient API integrated login in a multi-tenant database environment
CN103561113A (en) * 2013-11-18 2014-02-05 金蝶软件(中国)有限公司 Web Service interface generating method and device
US20150295983A1 (en) * 2014-04-09 2015-10-15 International Business Machines Corporation Generation of representational state transfer interface from application programming interfaces
CN104158856A (en) * 2014-07-23 2014-11-19 武汉理工大学 Local API calling method dispense with preset of secure session
CN104639603A (en) * 2014-11-27 2015-05-20 四川长虹电器股份有限公司 RESTful (representational state transfer) service design method based on Spring MVC

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109144512A (en) * 2018-08-22 2019-01-04 杭州数澜科技有限公司 A kind of method and system generating API
CN109144512B (en) * 2018-08-22 2022-05-03 杭州数澜科技有限公司 Method and system for generating API
CN109151091B (en) * 2018-09-21 2022-01-21 福建南威软件有限公司 API gateway service supporting dubbo protocol calling
CN109151091A (en) * 2018-09-21 2019-01-04 福建南威软件有限公司 A kind of API gateway service for supporting dubbo agreement to call
US11647100B2 (en) 2018-09-30 2023-05-09 China Mobile Communication Co., Ltd Research Inst Resource query method and apparatus, device, and storage medium
CN109558311A (en) * 2018-10-26 2019-04-02 深圳点猫科技有限公司 A kind of the automation interface method of calibration and electronic equipment of educational system
CN111506365A (en) * 2019-01-31 2020-08-07 北京数聚鑫云信息技术有限公司 Method and device for automatically constructing API
CN110610069A (en) * 2019-09-09 2019-12-24 苏州浪潮智能科技有限公司 Method and device for calling REST interface in web system
CN110968296A (en) * 2019-12-03 2020-04-07 政采云有限公司 Data acquisition method, device, equipment and readable storage medium
CN110968296B (en) * 2019-12-03 2023-07-25 政采云有限公司 Data acquisition method, device, equipment and readable storage medium
CN111010438A (en) * 2019-12-13 2020-04-14 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN111010438B (en) * 2019-12-13 2022-11-11 北京达佳互联信息技术有限公司 Remote procedure calling method, device, server and storage medium
CN112131022A (en) * 2020-09-22 2020-12-25 深圳力维智联技术有限公司 Open API management method, device and system and computer readable storage medium
CN112131022B (en) * 2020-09-22 2024-05-14 深圳力维智联技术有限公司 Open API management method, device, system and computer readable storage medium
KR102411296B1 (en) * 2020-12-30 2022-06-22 한국전자기술연구원 Method for providing semantic REST API
CN114338783A (en) * 2021-11-08 2022-04-12 浙江高信技术股份有限公司 API management platform based on technical middlebox and management method thereof
CN114257531B (en) * 2021-12-10 2024-02-23 北京金山云网络技术有限公司 Test method and related device for application programming interface API gateway
CN114257531A (en) * 2021-12-10 2022-03-29 北京金山云网络技术有限公司 Test method and related device for Application Programming Interface (API) gateway
CN116401650A (en) * 2023-04-14 2023-07-07 苏州慧睿康智能科技有限公司 Determinant-based API finite state security calling method
CN116401650B (en) * 2023-04-14 2023-11-14 苏州慧睿康智能科技有限公司 Determinant-based API finite state security calling method

Also Published As

Publication number Publication date
CN107872484B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN107872484A (en) REST API fast registration methods, devices and systems
CN105099811B (en) Interface testing method and device
US9225840B2 (en) System and method for providing a communication endpoint information service
CN102118230B (en) Tree and tabular combined notation (TTCN)-based network protocol performance testing method
CN106850318B (en) The visualization of IMS signaling process shows system, method and server
WO2017054531A1 (en) Yang model-based compiling method, and corresponding interface, component, and system
US20130305091A1 (en) Drag and drop network topology editor for generating network test configurations
CN107122258A (en) Method and apparatus for the state code check of test interface
CN109828903A (en) Automated testing method, device, computer installation and storage medium
BRPI0611113A2 (en) system and method for processing data records in a mediation system
CN110275831A (en) The mock data verification method and device of protocol interface
EP2702743A1 (en) Account linkage in machine-to-machine scenarios
EP3364601B1 (en) Testing method, device and system
CN107368412A (en) Automated testing method/system, computer-readable recording medium and electronic equipment
CN111083168A (en) Configurable data transmission method and device of Internet of things platform gateway and gateway
CN108600085A (en) Message is sent and output method, device, server, terminal and storage medium
CN107979506A (en) Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN103944902B (en) Realize the method, apparatus and equipment of business polymerization Mashup business
CN107040613A (en) A kind of message transmitting method and system
JP2004173284A (en) Tracking method and tracking device for multimedia message through remote communication network
Chen et al. Ensuring interoperability for the Internet of Things: Experience with CoAP protocol testing
WO2023134312A1 (en) Content charging test method, management device, terminal device and storage medium
CN110162476A (en) Test method and device
CN108462731A (en) Agent data method, apparatus and electronic equipment

Legal Events

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