Method and system for updating network application program interface

A network application program and interface technology, applied in the Internet field, can solve problems such as damage, WebAPI defects, and inability to isolate WebAPI

Active Publication Date: 2014-12-17
ADVANCED NEW TECH CO LTD
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the field of open platforms, once the Web API (Web Application Programming Interface) is released online, it will be called by a large number of external applications, and the released Web API will inevitably need to be upgraded due to reasons such as new functions or bug fixes. However, Upgrading the published Web API will bring the following three problems: 1) For compatibility upgrade, how to achieve transparency to external applications, that is, without forcing external applications to change the original Web API calling method , make the compatibility upgrade take effect automatically, and at the same time, for the internal gateway, it can also distinguish the Web API before and after the compatibility upgrade, so as to do different internal processing; 2) For non-compatibility upgrades, how to achieve The isolation of the Web API does not affect the normal operation of those external applications that have called the Web API before the upgrade, and at the same time, the external application can choose whether to call the Web API after the upgrade; 3) How to do online testing The Web API isolation and switching between the environment and the online official environment, that is, in the online test environment, the upgraded Web API can be tested and verified using online real requests, while the online official environment still uses the upgraded Web API during the test period. The previous Web API, after the test passes the release, the Web API used in the online official environment will automatically switch to the upgraded version
Afterwards, since a user can have multiple email addresses, the Web API is upgraded for non-compatibility, and the email address attribute is changed to the list type {“email”:[“xxxx.com”, “yyyx.com”]}, Then it will break the operation of the application that originally used the property in the string form
[0006] At the same time, since the online test environment and the online official environment use the same data, after using the above three methods to upgrade the Web API, it will immediately affect the online test environment and the online official environment at the same time, so the online test environment cannot be achieved. Web API isolation between the online test environment and the online official environment. Once the upgraded Web API causes serious defects, it will have a great impact on the online official environment.

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for updating network application program interface
  • Method and system for updating network application program interface
  • Method and system for updating network application program interface

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0024] According to an embodiment of the present application, a method and system for upgrading a network application program interface are provided.

[0025] refer to figure 1 , figure 1 It is a flow chart of the method for upgrading the network application program interface involved in the embodiment of the present application. Such as figure 1 As shown, when the web application program interface (Web API) is being upgraded, in step S101, in the upgrade startup phase of upgrading the Web API, a second definition corresponding to the upgraded version of the Web API is generated information, wherein the second definition information is stored in a database; the first definition information corresponding to the initial version of th...

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

PUM

No PUM Login to view more

Abstract

The invention provides a method and system for updating a network application program interface. The method includes the steps that in an updating starting stage, second definition information corresponding to an updated version of a Web API is generated, the second definition information is stored in a database, and first definition information corresponding to an original version of the Web API is stored in the database; in the updating on-line test stage, publish state information in the second definition information is updated so that the updated version of the Web API can be marked in a current on-line test state; in an updating publishing stage, the publish state information in the second definition information is updated so that the updated version of the Web API can be marked in a current published state, and if the Web API is updated compatibly, publish state information in the first definition information is updated so that the original version of the Web API can be marked to be expired in the updating publishing stage. The method and system simultaneously support compatible updating and incompatible updating, isolation and automatic switching of the Web API in an on-line test environment and in an on-line formal environment can be achieved.

Description

technical field [0001] The present application relates to the Internet field, in particular to a method and system for upgrading a network application program interface. Background technique [0002] In the field of open platforms, once the Web API (Web Application Programming Interface) is released online, it will be called by a large number of external applications, and the released Web API will inevitably need to be upgraded due to reasons such as new functions or bug fixes. However, Upgrading the published Web API will bring the following three problems: 1) For compatibility upgrade, how to achieve transparency to external applications, that is, without forcing external applications to change the original Web API calling method , make the compatibility upgrade take effect automatically, and at the same time, for the internal gateway, it can also distinguish the Web API before and after the compatibility upgrade, so as to do different internal processing; 2) For non-compa...

Claims

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

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 张先武
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products