CN102707958B - A kind of interface generation method of calibration and equipment based on open platform - Google Patents

A kind of interface generation method of calibration and equipment based on open platform Download PDF

Info

Publication number
CN102707958B
CN102707958B CN201210189745.8A CN201210189745A CN102707958B CN 102707958 B CN102707958 B CN 102707958B CN 201210189745 A CN201210189745 A CN 201210189745A CN 102707958 B CN102707958 B CN 102707958B
Authority
CN
China
Prior art keywords
interface
interaction parameter
module
open platform
character string
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.)
Active
Application number
CN201210189745.8A
Other languages
Chinese (zh)
Other versions
CN102707958A (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.)
Beijing Hongxiang Technical Service Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210189745.8A priority Critical patent/CN102707958B/en
Publication of CN102707958A publication Critical patent/CN102707958A/en
Application granted granted Critical
Publication of CN102707958B publication Critical patent/CN102707958B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Method of calibration and equipment are generated the invention discloses the interface based on open platform, wherein the equipment, including:Setup module, pre-sets the reference format of the element;Configuration module, the element according to needed for the construction rule of each type of interface obtains each type of interface of generation respectively;Reminding module, the prompting input element corresponding with the type of incoming interface waiting in application program access interface, the input content of received element is related to the application program;Interface generation module, according to the element and corresponding with the type of the interface constructs the rule generation interface;Error checking module, when accessing the interface failure, verifies to the character string involved by the element according to the reference format, the factor that the interface accesses failure is analyzed according to check results.The present invention ensure that third party developer generates correct interface, and provide when third party developer is generating wrong interface simple and rapid solution.

Description

A kind of interface generation method of calibration and equipment based on open platform
Technical field
The invention belongs to computer realm, specifically, it is related to a kind of interface generation method of calibration based on open platform And equipment.
Background technology
In existing Internet era, the service of website is packaged into series of computation machine API easy to identify(Application programming Interface)Open away there is provided being used to third party developer, this behavior is called Open API, and there is provided Open API platform It is referred to as open platform.Third party developer, that is, provide internet application or will provide internet application Individual and unit, think that application program that will be own is placed on an open platform, and then be supplied to end user.End user, The colony of the application program provided using open platform.
Website with Open API can not only provide the easy access to webpage, can also carry out the data interaction of complexity Deng other operations, the website is so as to be converted to the development platform of equal value with operating system, and third party developer can be based on this A little websites existed and disclosed and develop many colourful applications.In numerous internet open platforms, according to It is different according to the main body serviced, open platform is also divided into two classes, a class is centralization open platform, the Open API masters of platform Be used for the business function that developed application program is provided for the website of itself, the application program access these API from And integrated corresponding function, offer service is provided on an open platform;Also one kind is distributed type open platform, and this kind of platform is carried The standard API development and application programs are used for a standard API and the third party developer that connects, the application program is being audited Safety and stability after, you can these application programs are pushed to all support standard API website.
Third party developer accesses application program a certain function of open platform(I.e. corresponding Open API)When, it is necessary to According to the own service demand suitable access process of pathfinder selection related to open platform, and in access process it is understood that Multiple Open API definitions with correlation, for Open API use be third party developer access open platform master One of work.Generally, open platform can provide detailed Open API for third party developer and illustrate document and connect Enter study course to instruct the corresponding function that it accesses application program open platform, but developer is to access process and Open Being unfamiliar with for API definition, inevitably leads to the API of the generation error when application program accesses corresponding function to cause Open platform failure is accessed, type of error includes:Domain name mistake that API path errors, API are related to, API coherent element mistakes Deng.
At this stage, needed when application program is accessed a certain function of open platform by third party developer according to Open API Illustrate that the corresponding API of generation is write in document and access study course.If writing for the API meets regular requirement, the API meetings are accessed Directly open the corresponding page.But when the generation of the API has mistake, if API described in front-end access, general meeting Error code or error description are provided on the page, if API described in back-end access, directly error code can be returned to or mistake is retouched State.After third party developer takes error code or error description, the related operation personnel of contact or technology customer service are seeked advice from, Then modified according to resulting consulting result and regenerate API and then conduct interviews again.It is possible to still the presence of mistake Changed after modification is seeked advice from again by mistake, this process may need finally application program can just be successfully accessed repeatedly by several wheels API。
Obviously, access API during, generation API processes complexity directly result in occur mistake situation it is more, and Developer lacks the process experience of relevant error when encountering problems again, and is limited by front end exhibition method, third party's exploitation Person hardly results in the detailed information of mistake.
And lack fast and convenient error analysis instrument after error message is got, in existing procedure, and only take The behavior of man-machine interactively carries out one-to-one explanation, and the settling mode of attendant consultation service can substantially reduce the development efficiency of developer;And And when feeding back to technology customer service a large amount of the problem of, can also increase the workload of open platform technologies customer service.
The content of the invention
In view of this, the technical problems to be solved by the invention there is provided a kind of interface generation school based on open platform Method and apparatus is tested, the combination that error checking and interface are generated can be applied in third party developer and start access and access procedure In, interface generting machanism ensures that third party developer generates correct interface, and error-checking mechanism ensures third party developer in life Simple and rapid solution is provided during into wrong interface, so that it is guaranteed that the smoothness of third party developer's exploitation, also mitigates The operating pressures of open platform technologies customer services.
In order to solve the above-mentioned technical problem, calibration equipment is generated the invention discloses a kind of interface based on open platform, Including:Setup module, configuration module, reminding module, interface generation module and error checking module, wherein, the setup module, Reference format for pre-setting the element;The configuration module, for the construction rule according to each type of interface The element needed for each type of interface of generation is obtained respectively;The reminding module, for being carried in application program access interface Show corresponding with the type of the incoming interface waiting element of input, the input content and the application program phase of received element Close;The interface generation module, for according to the element and it is corresponding with the type of the interface construct rule generation described in Interface;The error checking module, for when accessing the interface failure, according to the reference format to involved by the element And character string verified, analyze the factor that the interface accesses failure according to check results.
Further, the element, including:With the interface related domain name, path and/or interaction parameter.
Further, the error checking module, for the order according to domain name, path, interaction parameter in the element Using Chain of Responsibility mode, the character string involved by the element is verified according to the reference format.
Further, the error checking module, for after the reason for interface accesses failure is analyzed, with reference to institute State reference format and provide amendment prompting.
Further, the error checking module, enters according to the reference format to the character string involved by the element During row verification, for being matched according to the reference format using regular expression to the character string involved by the element.
Further, the error checking module, enters according to the reference format to the character string involved by the element During row verification, for being judged to carry out the character string involved by the interaction parameter using data interval according to the reference format Matching verification.
Further, the error checking module, for according to the element and corresponding with the type of the interface When construction rule generates the interface, the interaction parameter in the element is verified, if the input of the interaction parameter There is mistake in content, then shows wrong content and provide amendment prompting for changing inputted interaction parameter, if the interaction The input content of parameter is correct, then notifies that the interface generation module is handled according to the input content of the interaction parameter.
Further, the interface generation module, when being handled according to the input content of the interaction parameter, for root The digital signature applied to the interface is obtained according to the key information in the interaction parameter.
In order to solve the above-mentioned technical problem, verification side is generated the invention also discloses a kind of interface based on open platform Method, including:Pre-set the reference format of the element;Generation is obtained according to the construction of each type of interface rule respectively every Element needed for the interface of type;In application program access interface, prompting input is corresponding with the type of incoming interface waiting first Element, the input content of the element is related to the application program;It is according to the element and corresponding with the type of the interface The construction rule generation interface;When accessing the interface failure, according to the reference format to involved by the element Character string is verified, and the factor that the interface accesses failure is analyzed according to check results.
Further, the element, including:With the interface related domain name, path and/or interaction parameter.
Further, when being verified according to the reference format to the character string involved by the element, according to described Domain name, path, the order of interaction parameter are completed using Chain of Responsibility mode in element.
Further, after the factor of the interface access failure is analyzed, provide amendment with reference to the reference format and carry Show.
Further, when accessing the interface success, the implementing result page.
Further, verification is carried out to the character string involved by the element to be accomplished by the following way:According to the mark Quasiconfiguaration is matched using regular expression to the character string involved by the element.
Further, when accessing the interface failure, data interval judgment mode is used always according to the reference format Matching verification is carried out to the character string involved by the element.
Further, according to the element and corresponding with the type of the interface rule generation interface is being constructed When, also the interaction parameter in the element is verified, if mistake occurs in the input content of the interaction parameter, shown Wrong content simultaneously provides amendment prompting, if the input content of the interaction parameter is correct, the input to the interaction parameter Content is handled.
Further, the interaction parameter in the element is verified, including:Canonical is used according to the reference format Expression formula is matched to the character string involved by the interaction parameter, and is sentenced according to the reference format using data interval The disconnected character string to involved by the interaction parameter carries out matching verification.
Further, the input content of the interaction parameter is handled, including:When the interaction parameter is further wrapped When including key information, the digital signature applied to the interface is obtained always according to the key information.
Compared with currently existing scheme, the technique effect that the present invention is obtained:
1)The combination of error checking and interface generation can be applied in third party developer and start in access and access procedure, Interface generting machanism ensures that third party developer generates correct interface, and error-checking mechanism ensures that third party developer is generating Simple and rapid solution is provided during wrong interface, so that it is guaranteed that the smoothness and high efficiency of third party developer's exploitation.
2)Error checking is used as an easy errored response mechanism so that third party developer timely can obtain in error To answer, at the same to a certain extent can substitute technology customer service function, and then alleviate the work of open platform technologies customer service Pressure, can greatly promote the operating efficiency of open platform side, save more manpowers.
3)Interface generting machanism, which only needs to third party developer's offer element, can automatically generate interface, enormously simplify people The complexity of work operation, so as to effectively reduce the probability for mistake occur.
Brief description of the drawings
Fig. 1 is the method flow diagram of the embodiment of the present invention
Fig. 2 is the specific implementation flow chart of the embodiment of the present invention;
Fig. 3 is the operational flowchart of interface generting machanism in the embodiment of the present invention;
Fig. 4 is the operational flowchart of error-checking mechanism in the embodiment of the present invention;
Fig. 5 is the first structure figure of the equipment of the embodiment of the present invention;
Fig. 6 is the second structure chart of the equipment of the embodiment of the present invention;
Fig. 7 is the 3rd structure chart of the equipment of the embodiment of the present invention.
Embodiment
Describe embodiments of the present invention in detail below in conjunction with schema and embodiment, thereby how the present invention is applied Technological means can fully understand and implement according to this to solve technical problem and reach the implementation process of technology effect.
The present invention is applied to open platform, as shown in figure 1, being the method flow diagram of the embodiment of the present invention, performs following behaviour Make:Pre-set the reference format of the element(Step S1);Life is obtained according to the construction of each type of interface rule respectively Element into needed for each type of interface(Step S2);Prompting input and incoming interface waiting in application program access interface The corresponding element of type, the input content of the element is related to the application program(Step S3);Further according to the element and It is corresponding with the type of the interface to construct the rule generation interface(Step S4);When accessing the interface failure, according to The reference format is verified to the character string involved by the element, and analyzing the interface according to check results accesses mistake The factor lost(Step S5).
The method of the present invention is illustrated with an embodiment below.As shown in Fig. 2 being the specific reality of the embodiment of the present invention Flow chart is applied, following operation is performed:
Step SS1, pre-sets the reference format of the element;Taken out respectively according to each type of API construction rule Element as needed for being born into each type of API;Prompting input and API to be accessed type when application program accesses API Corresponding element, the input content of the element is related to the application program;Class further according to the element and with the API Type constructs the rule generation API accordingly;
The element, including:Domain name, path and/or the interaction parameter of the API;The path is general after domain name So as to constitute the URL of the API(URL).
When generating the API, also the interaction parameter in the element is verified, if the interaction parameter is defeated Enter content and mistake occur, then show wrong content and amendment prompting is provided, if the input content of the interaction parameter is correct, Handled according to the input content of the interaction parameter.
Interaction parameter in the element can be used in combination a variety of verification modes to verify, because the interaction parameter of input It is varied, therefore corresponding verification mode can be used according to different interaction parameters, including:1)Adopted according to the reference format The character string involved by the interaction parameter is matched with regular expression, for example with what is realized based on regular expression URL validators detect the validity of the form of the Callback URL, certainly, and the present invention is not limited to time, can also use canonical table Up to the formula verification amount of money, authority etc.;2)It can also be judged according to the reference format using data interval(Such as judge the total of character string Whether whether the value in interval interior, character string is in data interval etc. for body length)To the word involved by the interaction parameter Symbol string carries out matching verification.Certainly, the present invention is not limited to both of the above, can also use other modes.
The operation handled according to the input content of the interaction parameter, including:When the interaction parameter is further wrapped When including key information, the digital signature applied to the API is obtained always according to the key information;Certainly other can also be included Operation, the present invention is not limited to this.
Illustrate step SS1 interface generting machanism exemplified by generating the API for being used for supplementing with money below.
The URL of API for supplementing with money is https://openapi.360.cn/page/pay, wherein Openapi.360.cn is the domain name of the API, and page/pay is the path of the API, it is necessary to the interaction parameter of input It is as shown in the table:
As shown in figure 3, being the operational flowchart of interface generting machanism in the embodiment of the present invention.
When application program accesses above-mentioned API, the selection access API first points out input API URL(Including Domain name and path), i.e. https://openapi.360.cn/page/pay, in addition it is also necessary to four interaction parameters inputted in upper table App_key, user_id, notify_uri, amount and extra interaction parameter app_secret(Key information), the 3rd Square developer inputs according to the actual conditions of application program(That is step S110);Assuming that the interaction parameter of third party developer's input Particular content be:
app_key=2d49f00dad3c4c70c71ac8da2fe7228c,
user_id=123456,
notify_uri=http://notify/uri,
amount=100,
App_secret=1b74b02c23942045f6f5778de306b691,
Interaction parameter is verified automatically according to the data form of the interaction parameter(That is step S120)If, the interaction There is mistake in the input content of parameter, then automatic Display wrong content and provide amendment prompting for third party developer change input Interaction parameter(That is step S130)If the input content of the interaction parameter is correct, also automatically according to the app_ Secret uses signature calculation method(Such as md5)The digital signature sign applied to the API is calculated, certainly, except signature Calculate, other processing can also be carried out according to the input content of the interaction parameter(That is step S140).
Finally automatically according to above-mentioned element and corresponding with the type of the API construct the rule generation API(That is step S150):
https://openapi.360.cn/page/pay?app_key=2d49f00dad3c4c70c71ac8da2fe72 28c&user_id=123456&notify_uri=http://notify/uri&amount=100&sign= 9ea3fc8f46c6a57df4757215c0b2774e
Step SS2, accesses the API, when accessing the API failures, performs step SS3 or step SS4;Accessing During the API successes, the corresponding API implementing result page is called.
Step SS3, the interface according to the elementary analysis accesses the factor of failure and provides amendment prompting, and third party opens Originator regenerates the API after the element according to amendment prompting modification input, returns and performs step SS2;
Order according to domain name in the element, path, interaction parameter is verified using Chain of Responsibility mode;According to described Interface described in elementary analysis accesses the factor of failure and provides amendment prompting, specifically includes:When accessing the API failures, root The character string involved by the element is verified according to the reference format, the type and the interface of the API is analyzed The factor of failure is accessed, and amendment prompting is provided for changing inputted element with reference to the reference format.
The means that implement verified to the character string include in the following manner:1)Used according to the reference format Regular expression is successively matched to character string involved in domain name and path, the institute provided for same open platform There is API domain name usually identical, and the path for each API that same open platform is provided is then different;2)Further according to The data form of the interaction parameter is used in combination a variety of verification modes to verify the wrong content of interaction parameter, because input Interaction parameter is varied, therefore corresponding verification mode can be used according to different interaction parameters, including:According to the standard Form is matched using regular expression to the character string involved by the interaction parameter, for example with based on regular expression The URL validators of realization detect the validity of the form of the Callback URL, certainly, and the present invention is not limited to time, can also be used The regular expression verification amount of money, authority etc.;It can also be judged according to the reference format using data interval(Such as judge character string Overall length whether in interval, whether the value of character string in data interval etc.)To involved by the interaction parameter Character string carry out matching verification.Certainly, the present invention is not limited to both of the above, can also use other modes.
Step SS3 error-checking mechanism is illustrated with an application example below.
The URL of API for supplementing with money is https://openapi.360.cn/page/pay, wherein Openapi.360.cn is the domain name of the API, and page/pay is the path of the API, and interaction parameter is as shown in the table:
As shown in figure 4, being the operational flowchart of error-checking mechanism in the embodiment of the present invention.Pre-set the element Reference format(That is step S310), it is necessary to explanation, the domain name of open platform is typically all unique, so under open platform Each API domain name is exactly openapi.360.cn, and each API path is then different but observes standard form;For this example In for the API that supplements with money, it states the reference format in domain name and path i.e. such as https://openapi.360.cn/page/ Pay, including character therein, symbol and present position;For in this example for the API supplemented with money, the form of its interaction parameter I.e. as shown in data form in upper table.
When accessing the API failures, according to above-mentioned default reference format using regular expression in the element Domain name involved by character string verified(That is step S320), Direct Analysis, which makes mistake, if wrong content and provides The domain name of input is changed in amendment prompting for third party developer(That is step S330);
Regular expression is further used in the element according to above-mentioned default reference format if without mistake Path involved by character string verified(That is step S340), Direct Analysis, which makes mistake, if wrong content and provides The path of input is changed in amendment prompting for third party developer(That is step S350);
If being that can to analyze the function of the API be to supplement with money according to domain name and path, and then confirm without mistake The API, interaction parameter is verified further according to the data form of interaction parameter corresponding with the API(That is step S360), such as It is really wrong, Direct Analysis make mistake content and with reference to the reference format provide amendment prompting for third party developer modification The interaction parameter of input(That is step S370);
If without mistake, it indicates that verification does not find mistake(That is step S380)If access interface is still sent out again Raw mistake, then explanation is the mistake that automatic error handling mechanism can not be tackled, and at this moment can further perform step SS4 and seek depth Degree processing.
Step SS4, third party developer checks after error code or error description that the related operation personnel of contact or technology are objective Take and seeked advice from, then modified according to resulting consulting result and regenerate API, returned and perform step SS2.
Above-mentioned steps SS4 is manual errors treatment mechanism of the prior art, and above-mentioned steps SS3 is automatic intelligence of the invention Energy error handling mechanism, it can be seen that step SS3 provides useful supplement for prior art in step SS4, and of the invention is automatic Error handling mechanism can tackle and provide preferable solution completely for conventional error, and for automatic error handler The mistake that can not be tackled is made, step SS4 can be further performed and seek advanced treating, it is clear that automatic error handling mechanism is significantly Improve the development efficiency of third party developer in ground.
The equipment of the present invention is illustrated with an embodiment below, the equipment is corresponding with above method flow, it is not enough Part refers to above method part.As shown in figure 5, the first structure figure of the equipment for the embodiment of the present invention.It is described to be used to open The interface generation calibration equipment of platform is laid flat, including:Setup module 10, configuration module 20, reminding module 30, interface generation module 40 With error checking module 50, wherein,
The setup module 10, the reference format for pre-setting the element;The element, including:Connect with described Mouth related domain name, path and/or interaction parameter;
The configuration module 20, obtains generation each type of respectively for the construction rule according to each type of interface Element needed for interface;
The reminding module 30, is connected with configuration module 20, for pointing out input in application program access interface with treating The corresponding element of type of access interface, the input content of the received element is related to the application program;
The interface generation module 40, is connected with reminding module 30, for the class according to the element and with the interface Type constructs the rule generation interface accordingly;
The error checking module 50, is connected with setup module 10, for when accessing the interface failure, according to described Reference format is verified to the character string involved by the element, and analyzing the interface according to check results accesses failure Factor.Especially, the error checking module 50 uses responsibility according to the order of domain name in the element, path, interaction parameter Chain mode, is verified according to the reference format to the character string involved by the element;And in verification, further root The character string involved by the element is matched using regular expression according to the reference format;Can also be according to the mark Quasiconfiguaration is judged using data interval(Such as judge character string overall length whether in interval, whether the value of character string locate In data interval etc.)Matching verification is carried out to the character string involved by the element.Certainly, the present invention is not limited to the above two Person, can also use other modes.
Error checking module described in this example 50 can be connected with the reminding module 30, directly by the reminding module 30 Place obtains the input content of the element, when accessing the interface failure according to the reference format to involved by the element Character string verified;Certainly, the error checking module 50 can not also be connected with the reminding module 30, access institute The input content that analysis obtains the element is carried out to the interface generated when stating interface failure, according to the reference format to institute The character string involved by element is stated to be verified.
The equipment of the present invention is illustrated with an embodiment again below.As shown in fig. 6, being the equipment of the embodiment of the present invention The second structure chart, for open platform interface generate calibration equipment, including:Setup module 11, configuration module 21, prompting mould Block 31, interface generation module 41 and error checking module 51.
Setup module 11, configuration module 21, the function of interface generation module 41 respectively with setup module 10, configuration module 20th, interface generation module 40 is identical, repeats no more.
Reminding module 31 and error checking module 51 are except the work(with such as preceding reminding module 30 and error checking module 50 Can and it perform outside corresponding operating, also with following functions:
The error checking module 51, is further used for after the reason for interface accesses failure is analyzed, with reference to institute State reference format and provide amendment prompting, and the amendment prompting is sent to the reminding module 31;
The reminding module 31, is further used for the amendment prompting being presented to user.
The equipment of the present invention is illustrated with an embodiment again below.As shown in fig. 7, being the equipment of the embodiment of the present invention The 3rd structure chart, for open platform interface generate calibration equipment, including:Setup module 12, configuration module 22, prompting mould Block 32, interface generation module 42 and error checking module 52.
Setup module 12, configuration module 22, the function of reminding module 32 are as described in above two apparatus embodiments, i.e., with setting Put module 10 and 11, configuration module 20 and 21, the function phase of reminding module 30 and 31 same, repeat no more.
Interface generation module 42 and error checking module 52 are except with such as above two apparatus embodiments(I.e. interface is generated Module 40 and 41, error checking module 50 and 51)Described function is simultaneously performed outside corresponding operating, also with following functions:
The interface generation module 42, when generating the interface, notifies the error checking module 52;It is additionally operable to The notice of error checking module 52 is received, when being handled according to the input content of the interaction parameter, for being handed over according to described Key information in mutual parameter obtains the digital signature applied to the interface;
The error checking module 52, when generating the interface, for carrying out school to the interaction parameter in the element Test, if mistake occurs in the input content of the interaction parameter, show wrong content and amendment is provided and point out to supply modification institute defeated The interaction parameter entered, if the input content of the interaction parameter is correct, notifies the interface generation module 42 according to described The input content of interaction parameter is handled.
It should be noted that in the case where not conflicting, the embodiment in the present invention and the feature in embodiment can phases Mutually it is combined.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence Various corresponding changes and deformation, but these corresponding changes and deformation can be made according to the present invention by knowing those skilled in the art The protection domain of appended claims of the invention should all be belonged to.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program, Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD Deng.Alternatively, all or part of step of above-described embodiment can also use one or more integrated circuits to realize.Accordingly Each module/unit in ground, above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.

Claims (16)

1. a kind of interface generation calibration equipment based on open platform, it is characterised in that including:Setup module, configuration module, carry Show module, interface generation module and error checking module, wherein,
The setup module, the reference format for pre-setting element;
The configuration module, each type of interface institute of generation is obtained for the construction rule according to each type of interface respectively The element needed;
The reminding module, for pointing out input corresponding with the type of incoming interface waiting first in application program access interface Element, the input content of received element is related to the application program;
The interface generation module, for according to the element and it is corresponding with the type of the interface construct rule generation described in Interface;When the application program accesses the interface success, the implementing result page of the corresponding interface is called;
The error checking module, for when the application program accesses the interface failure, according to the reference format pair Character string involved by the element is verified, and the factor that the interface accesses failure is analyzed according to check results;
The error checking module, is further used for using responsibility according to the order of domain name in the element, path, interaction parameter Chain mode, is verified according to the reference format to the character string involved by the element.
2. the interface based on open platform generates calibration equipment as claimed in claim 1, it is characterised in that
The element, including:With the interface related domain name, path and/or interaction parameter.
3. the interface based on open platform generates calibration equipment as claimed in claim 1 or 2, it is characterised in that
The error checking module, is further used for after the reason for interface accesses failure is analyzed, with reference to the standard Form provides amendment prompting.
4. the interface based on open platform generates calibration equipment as claimed in claim 3, it is characterised in that
The error checking module, when being verified according to the reference format to the character string involved by the element, enters one Walk for being matched according to the reference format using regular expression to the character string involved by the element.
5. the interface based on open platform generates calibration equipment as claimed in claim 4, it is characterised in that
The error checking module, when being verified according to the reference format to the character string involved by the element, enters one Walk for being judged to carry out matching school to the character string involved by the interaction parameter using data interval according to the reference format Test.
6. the interface based on open platform generates calibration equipment as claimed in claim 5, it is characterised in that
The error checking module, for according to the element and it is corresponding with the type of the interface construct rule generation institute When stating interface, the interaction parameter in the element is verified, if there is mistake in the input content of the interaction parameter, Displaying wrong content simultaneously provides amendment prompting for changing inputted interaction parameter, if the input content of the interaction parameter is just Really, then notify that the interface generation module is handled according to the input content of the interaction parameter.
7. the interface based on open platform generates calibration equipment as claimed in claim 6, it is characterised in that
The interface generation module, when being handled according to the input content of the interaction parameter, for being joined according to the interaction Key information in number obtains the digital signature applied to the interface.
8. a kind of interface generation method of calibration based on open platform, it is characterised in that including:
Pre-set the reference format of element;
Element according to needed for the construction rule of each type of interface obtains each type of interface of generation respectively;
In application program access interface in prompting input element corresponding with the type of incoming interface waiting, the input of the element Hold related to the application program;
According to the element and corresponding with the type of the interface construct the rule generation interface;
When the application program accesses the interface failure, according to the reference format to the character string involved by the element Verified, the factor that the interface accesses failure is analyzed according to check results;The interface is accessed in the application program During success, the implementing result page of the corresponding interface is called;
When being verified according to the reference format to the character string involved by the element, according to domain name, road in the element Footpath, the order of interaction parameter are completed using Chain of Responsibility mode.
9. the interface based on open platform generates method of calibration as claimed in claim 8, it is characterised in that
The element, including:With the interface related domain name, path and/or interaction parameter.
10. the interface based on open platform generates method of calibration as claimed in claim 8 or 9, it is characterised in that
After the factor of the interface access failure is analyzed, amendment prompting is provided with reference to the reference format.
11. the interface based on open platform generates method of calibration as claimed in claim 10, it is characterised in that
When accessing the interface success, the implementing result page.
12. the interface based on open platform generates method of calibration as claimed in claim 11, it is characterised in that to the element Involved character string carries out verification and is accomplished by the following way:
The character string involved by the element is matched using regular expression according to the reference format.
13. the interface based on open platform generates method of calibration as claimed in claim 12, it is characterised in that
When accessing the interface failure, always according to the reference format using data interval judgment mode to involved by the element And character string carry out matching verification.
14. the interface based on open platform generates method of calibration as claimed in claim 13, it is characterised in that
According to the element and it is corresponding with the type of the interface construct rule generate the interface when, also to the element In interaction parameter verified, if mistake occurs in the input content of the interaction parameter, displaying wrong content is simultaneously provided Amendment prompting, if the input content of the interaction parameter is correct, is handled the input content of the interaction parameter.
15. the interface based on open platform generates method of calibration as claimed in claim 14, it is characterised in that to the element In interaction parameter verified, further comprise:
The character string involved by the interaction parameter is matched using regular expression according to the reference format, Yi Jigen Judge to carry out matching verification to the character string involved by the interaction parameter using data interval according to the reference format.
16. the interface based on open platform generates method of calibration as claimed in claim 15, it is characterised in that to the interaction The input content of parameter is handled, and is further comprised:
When the interaction parameter further comprises key information, obtained always according to the key information applied to the interface Digital signature.
CN201210189745.8A 2012-06-08 2012-06-08 A kind of interface generation method of calibration and equipment based on open platform Active CN102707958B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210189745.8A CN102707958B (en) 2012-06-08 2012-06-08 A kind of interface generation method of calibration and equipment based on open platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210189745.8A CN102707958B (en) 2012-06-08 2012-06-08 A kind of interface generation method of calibration and equipment based on open platform

Publications (2)

Publication Number Publication Date
CN102707958A CN102707958A (en) 2012-10-03
CN102707958B true CN102707958B (en) 2017-07-14

Family

ID=46900782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210189745.8A Active CN102707958B (en) 2012-06-08 2012-06-08 A kind of interface generation method of calibration and equipment based on open platform

Country Status (1)

Country Link
CN (1) CN102707958B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873481B (en) * 2014-03-31 2018-01-30 百度在线网络技术(北京)有限公司 Verification method, open platform, service end and checking system
CN104468608B (en) * 2014-12-23 2019-03-08 北京奇虎科技有限公司 Application program cut-in method, device
CN104468832B (en) * 2014-12-25 2018-05-25 广东电子工业研究院有限公司 A kind of light distributed structure/architecture based on http agreements
US20170192942A1 (en) * 2016-01-06 2017-07-06 Google Inc. Hierarchical positioned event dispatch
CN108228186B (en) * 2017-12-29 2020-12-11 国网山东省电力公司德州供电公司 Substation five-prevention locking rule expression verification method based on responsibility chain mode
CN110109818A (en) * 2019-03-15 2019-08-09 平安城市建设科技(深圳)有限公司 Monitoring method, device, terminal and the readable storage medium storing program for executing of back end interface data
CN111399825A (en) * 2020-03-17 2020-07-10 四川研宝科技有限公司 API (application programming interface) development management method and system based on API document

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003256223A (en) * 2002-03-06 2003-09-10 Ntt Docomo Inc Service control method and device in open api system
CN101359999B (en) * 2007-07-30 2011-05-11 中兴通讯股份有限公司 Method and apparatus for network element data synchronization
CN102053994B (en) * 2009-11-10 2013-06-05 阿里巴巴集团控股有限公司 Language parser and parsing method using same
CN102193798B (en) * 2011-03-22 2013-08-21 天津大学 Method for automatically acquiring Open application programming interface (API) based on Internet
CN102203736B (en) * 2011-05-20 2014-04-02 华为技术有限公司 Method and device for calling open application programming interface (openapi)
CN102413464B (en) * 2011-11-24 2014-07-09 杭州东信北邮信息技术有限公司 GBA (General Bootstrapping Architecture)-based secret key negotiation system and method of telecommunication capability open platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
淘宝客问题解答集v0.1;断水刀168;《百度文库》;20120204;第1-4页 *

Also Published As

Publication number Publication date
CN102707958A (en) 2012-10-03

Similar Documents

Publication Publication Date Title
CN102707958B (en) A kind of interface generation method of calibration and equipment based on open platform
US10896286B2 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
US10198715B2 (en) Web content management driven collaborative activities system and method
Machado Neto et al. Heuristics for the assessment of interfaces of mobile devices
CN104361139B (en) Data importing device and method
CN108427632A (en) Automatic test approach and device
US20190303269A1 (en) Methods and systems for testing visual aspects of a web page
US10867120B1 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
CN103440198B (en) Form validation method
WO2013075612A1 (en) Auto login method and device
CN109635300B (en) Data verification method and device
CN107220036A (en) A kind of visual development method and system of component and template
JP2020187733A (en) Application programming interface documentation annotation
Wang et al. A systematic test case selection methodology for product lines: results and insights from an industrial case study
US20150074045A1 (en) Business Rule Management System
EP2923267B1 (en) Method and system for providing a net effect platform for developing and correcting screen scraping parser scripts
TW201610713A (en) Identifying and surfacing relevant report artifacts in documents
CN104471530A (en) Executable software specification generation
Perez-Marin Adaptive Computer Assisted Assessment of free-text students' answers: an approach to automatically generate students' conceptual models
US9201977B2 (en) Automatic flowchart-based webpage generation for troubleshooting or task completion without manual programming
CN104156394B (en) mobile page creation system and method
CN104536884A (en) Code testing method and device
US11727195B2 (en) Modular systems and methods for selectively enabling cloud-based assistive technologies
JP6902871B2 (en) Entity recognition for improved document productivity
CN105302835B (en) A kind of document handling method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
ASS Succession or assignment of patent right

Owner name: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20120910

Owner name: BEIJING QIHU TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: QIZHI SOFTWARE (BEIJING) CO., LTD.

Effective date: 20120910

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100016 CHAOYANG, BEIJING TO: 100088 XICHENG, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20120910

Address after: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Applicant after: Qizhi software (Beijing) Co.,Ltd.

Address before: The 4 layer 100016 unit of Beijing city Chaoyang District Jiuxianqiao Road No. 14 Building C

Applicant before: Qizhi software (Beijing) Co.,Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220803

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 xinjiekouwai street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230710

Address after: 1765, floor 17, floor 15, building 3, No. 10 Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: Beijing Hongxiang Technical Service Co.,Ltd.

Address before: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Patentee before: 3600 Technology Group Co.,Ltd.