API (Application Programming Interface) file management method, server and storage medium

A file management method and file management technology are applied in the fields of servers, computer-readable storage media, and application program interface file management methods, and can solve problems such as poor application effect, difficulty in timely modification, and reduced code readability.

Inactive Publication Date: 2018-08-21
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there are mainly two types of API file management. One is to add a large number of comments in the code that implements the API interface, and automatically generate a rest-style API file through tools. This type of API file has a strong code intrusion, greatly Reduce the readability of the code; the other is to create a markdown file and add an API interface description in the markdown file. This type of API file is difficult to modify in time when the interface changes. Under the scene, the application effect is not good

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
  • API (Application Programming Interface) file management method, server and storage medium
  • API (Application Programming Interface) file management method, server and storage medium
  • API (Application Programming Interface) file management method, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0078] Compared with the first embodiment, the API file management method proposed in this embodiment sends feedback information to the server 3 after setting the association relationship between the label and the client address, so as to improve the real-time monitoring of API file management, so that When the API file update fails, handle it in time.

[0079] In addition, the embodiment of the present invention also proposes a computer-readable storage medium, the computer-readable storage medium includes an API file management program 10, and the API file management program 10 implements the following operations when executed by a processor:

[0080] Receiving step: receive an API file newly uploaded by the server;

[0081] Judgment step: According to the interface name in the API file, it is judged whether it is a stored API file with an interface change or a newly added API file. If the interface of the stored API file is changed, send a prompt message in a preset format ...

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 discloses an API (Application Programming Interface) file management method, a server and a storage medium. The method includes: receiving an API file newly uploaded by a service end; according to an interface name in the API file, judging whether the same is an already stored API file of interface change or a newly added API file, if the same is the already stored API file of the interface change, sending prompting information of a preset format to the client, and ending a process, and if the same is the newly added API file, assigning a label for API code of a newly added API interface and the API file, and establishing a mapping relationship between the API code and the API file through the label; and setting an association relationship between the label and a client address. Therefore, effective monitoring of interface migration is realized, and code intrusion is avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to an Application Programming Interface (Application Programming Interface, API) file management method, a server and a computer-readable storage medium. Background technique [0002] API files are descriptive files about API interface calls, and each API file includes API interfaces and API interface call instructions. At present, there are mainly two types of API file management. One is to add a large number of comments in the code that implements the API interface, and automatically generate a rest-style API file through tools. This type of API file has a strong code intrusion, greatly Reduce the readability of the code; the other is to create a markdown file and add an API interface description in the markdown file. This type of API file is difficult to modify in time when the interface changes. In this scenario, the application effect is not good. Contents of the i...

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): G06F8/60
CPCG06F8/60
Inventor 叶腾飞
Owner PING AN TECH (SHENZHEN) 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