CN111581344A - Interface information auditing method and device, computer equipment and storage medium - Google Patents

Interface information auditing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111581344A
CN111581344A CN202010337472.1A CN202010337472A CN111581344A CN 111581344 A CN111581344 A CN 111581344A CN 202010337472 A CN202010337472 A CN 202010337472A CN 111581344 A CN111581344 A CN 111581344A
Authority
CN
China
Prior art keywords
interface
target
class
interface information
name
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
CN202010337472.1A
Other languages
Chinese (zh)
Other versions
CN111581344B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010337472.1A priority Critical patent/CN111581344B/en
Publication of CN111581344A publication Critical patent/CN111581344A/en
Application granted granted Critical
Publication of CN111581344B publication Critical patent/CN111581344B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Power Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Machine Translation (AREA)

Abstract

The application provides an interface information auditing method and device, computer equipment and a storage medium, and relates to the technical field of cloud. The method is used for providing a scheme for checking interface information, and comprises the following steps: acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, wherein the interface information comprises at least two types of candidate names of the interface to be registered; if the target phrase matched with the interface to be registered is found in the first word stock, determining that the interface information is approved; the first word stock comprises a plurality of word groups corresponding to each interface information in the interface information which is checked and confirmed, each word group comprises various target names included in the interface information which is checked and confirmed, and the target word groups are formed by matching each target name with a candidate name of a corresponding category.

Description

Interface information auditing method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of computers, in particular to the technical field of cloud, and provides an interface information auditing method and device, computer equipment and a storage medium.
Background
With the continuous development of cloud technologies, some cloud platforms can provide various services for a service provider, and before the cloud platform provides services for the service provider, the service provider needs to register corresponding cloud services on the cloud platform, and then the cloud platform can open the functions of the cloud services for the service provider. At present, no scheme for service registration of a service provider on a cloud platform exists.
Disclosure of Invention
The embodiment of the application provides an interface information auditing method, an interface information auditing device, computer equipment and a storage medium, and is used for providing a method for automatically auditing interface information.
In one aspect, an interface information auditing method is provided, which includes:
acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, wherein the interface information comprises at least two types of candidate names of the interface to be registered;
if the target phrase matched with the interface to be registered is found in the first word stock, determining that the interface information is approved; the first word stock comprises a plurality of word groups corresponding to each interface information in the interface information which is checked and confirmed, each word group comprises various target names included in the interface information which is checked and confirmed, and the target word groups are formed by matching each target name with a candidate name of a corresponding category.
In another aspect, an interface information auditing apparatus is provided, including:
the acquisition module is used for acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, wherein the interface information comprises at least two types of candidate names of the interface to be registered;
the auditing module is used for determining that the interface information is approved if the target phrase matched with the interface to be registered is found in the first word stock; the first word stock comprises a plurality of word groups corresponding to each interface information in the interface information which is checked and confirmed, each word group comprises various target names included in the interface information which is checked and confirmed, and the target word groups are formed by matching each target name with a candidate name of a corresponding category.
In a possible embodiment, the at least two types of candidate names include main-class candidate names, and each word group in the first lexicon includes a main-class target name; the audit module is further configured to:
if the target phrase is not found in the first word stock, when the approximate phrase of the interface to be registered is found in the first word stock, determining that the interface information is approved; and the main class target name in the approximate phrase is matched with the main class candidate name of the interface to be registered, the similarity between other various target names in the approximate phrase and other various candidate names of the interface to be registered is greater than or equal to a threshold value.
In a possible embodiment, the auditing module is further configured to:
if the approximate phrase is not found in the first word stock, carrying out word segmentation processing on the main class candidate name to obtain a plurality of main class words;
for each main-class participle, if a target entry table matched with each main-class participle exists in the second word stock, determining that the interface information is approved; the second word bank comprises an entry list corresponding to each main-class participle obtained after word segmentation processing is carried out on the main-class target name in each examined interface information, the entry list corresponding to each main-class participle comprises a main-class participle set formed by the main-class participle and similar words thereof and other classes of participle sets, each other class of participle set comprises at least one other class participle determined according to the main-class participle, and the target entry list is the entry list in which the main-class participle set and the other classes of participle sets both contain the participles of the corresponding classes.
In a possible embodiment, the audit module further includes a first prompt module, where the first prompt module is specifically configured to:
obtaining at least one type of reference participles which are not matched with the participles of the target entry list;
generating and sending first prompt information; the first prompt message is used for indicating that the candidate name of the corresponding category in the at least two categories of candidate names is updated according to the at least one category of reference participles.
In a possible embodiment, the audit module further includes a second prompt module, where the second prompt module is specifically configured to:
if the interface information is not checked and passed, generating and sending second prompt information, wherein the second prompt information is used for displaying the interface information of the interface to be registered to a checking interface;
and receiving an audit result input through the audit interface, and updating the first word bank and the second word bank when the audit result is that the audit is passed.
In a possible embodiment, the at least two classes are divided according to different languages, wherein a main class is english, the other classes at least include chinese, and the audit module is specifically configured to:
and performing word segmentation processing on the main class candidate name according to the logic break points in the main class candidate name to obtain a plurality of main class words.
In a possible embodiment, the interface registration request includes a service type of the target object, the first lexicon includes a plurality of first sub-lexicons, and each first sub-lexicon includes a phrase corresponding to each interface information in a plurality of checked and confirmed interface information under one service type; the audit module is further configured to:
after interface information of an interface to be registered submitted by a target object is acquired from an interface registration request, searching a target first sub-lexicon matched with the service type of the target object;
and determining whether a target phrase matched with the interface to be registered exists in the target first sub-word library.
In a possible embodiment, each first sub-lexicon further comprises a unique identification code corresponding to each target name in each phrase of the checked interface information; the auditing module is specifically configured to:
generating identification codes of various candidate names according to the preset algorithm;
and respectively determining whether target phrases which correspond to the identification codes of the various candidate names exist in the target first sub-word library or not.
In another aspect, a computer device is provided, including:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the at least one processor implements the interface information auditing method according to any one of the foregoing by executing the instructions stored by the memory.
In another aspect, a storage medium stores computer instructions, which when executed on a computer, cause the computer to execute an interface information auditing method as described in any one of the preceding.
Due to the adoption of the technical scheme, the embodiment of the application has at least the following technical effects:
in the embodiment of the application, after at least two types of candidate names input by a target object are obtained, whether phrases matched with the at least two types of candidate names exist is searched in a first word stock, and if the target phrases matched with the at least two types of candidate names exist, it can be determined that interface information input by the target object passes the audit, that is, the interface information is automatically audited by matching with the first word stock in the embodiment of the application, and a scheme for auditing the interface information is provided. And the interface information is matched with the first lexicon, so that the checking mode is simple and direct, and the efficiency of checking the interface information is improved.
Drawings
Fig. 1 is a schematic structural diagram of an interface information device according to an embodiment of the present disclosure;
fig. 2 is a schematic view of a scene of interface information auditing according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a principle of interface information auditing according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an interaction between a server and a terminal according to an embodiment of the present application;
fig. 5 is an exemplary diagram of an interface registration page provided in an embodiment of the present application;
fig. 6 is an exemplary diagram of performing a word segmentation process on a first class candidate name according to an embodiment of the present application;
fig. 7 is a first exemplary diagram of an interface information audit feedback interface according to an embodiment of the present application;
fig. 8 is a second exemplary diagram of an interface information audit feedback interface according to an embodiment of the present application;
FIG. 9 is an exemplary diagram of an audit interface provided by an embodiment of the present application;
fig. 10 is a schematic structural diagram of an interface information auditing apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the drawings and specific embodiments.
In order to facilitate those skilled in the art to better understand the technical solutions in the embodiments of the present application, the following description refers to the technical terms related to the embodiments of the present application.
Cloud technology (Cloud technology): the management method is a management technology for unifying series resources such as hardware, software, network and the like in a wide area network or a local area network to realize the calculation, storage, processing and sharing of data. Interface: also referred to as service interfaces. The embodiments of the present application mainly relate to software interfaces, which may be understood as code files for implementing one or more methods.
Interface information: the related information for characterizing the interface may specifically include an interface name, the interface name may be multiple, and the interface information may also include a code language type related to the interface, where the code language type is, for example, java or python.
Target object: the method generally refers to an object requiring interface registration, such as a service provider, and the service provider may register a corresponding interface on the cloud platform, so as to provide a service for a user corresponding to the service provider through the interface. The target object is a user, and the user can register a corresponding interface on the cloud platform, and the user can use a corresponding service through the interface.
The target name is: refers to the name of the interface that has been approved, such as the interface name stored in the thesaurus. The object names may specifically include multiple types of object names of the interfaces, and any two types of object names are not identical. Each type of target name may be divided according to a language, and specifically includes a first type of target name and a second type of target name, where the first type of target name may be, for example, an english name of an interface, a chinese name of an interface, or an english abbreviation of an interface. The second type of target name may also be an english name of the interface, a chinese name of the interface, or an english abbreviation of the interface. Each type of target name may also be divided according to an interface standard, for example, a first type of target name divided according to a first type of standard, and a second type of target name divided according to a second type of standard. The at least two types of object names specifically include a main class object name and other class object names.
Candidate name: the interface name of the interface to be registered is input by the target object. The candidate names may specifically include multiple types of candidate names of the interface, any two types of candidate names are not completely the same, and each type of candidate name may be divided according to different languages, or may be divided according to different interface standards. For example, the candidate names specifically include a first class of candidate names and a second class of candidate names. The first type candidate name and the first type target name belong to the same type of name, and the second type candidate name and the second type target name belong to the same type of name. For example, the first type of candidate name may be, for example, an english name of the interface, a chinese name of the interface, or an english abbreviation of the interface. The second type of candidate name may also be an english name of the interface, a chinese name of the interface, or an english abbreviation of the interface. The at least two types of candidate names specifically include a main class candidate name and other class candidate names.
A first lexicon: it may be called a list of unary words or a unary word library. The first word stock stores the word group of each interface in a plurality of interfaces, and each word group comprises various target names included in the checked and confirmed interface information. When the target name includes multiple categories, each phrase correspondingly includes multiple categories of target names.
Or, the first lexicon can further comprise a unique identification code corresponding to each type of target name generated according to a preset algorithm. The preset algorithm is, for example, an encryption algorithm, specifically, for example, an MD5 algorithm, a sha256 algorithm, or the like. The first thesaurus may have a variety of formats, such as key-value storage. For example, the unique identification code may be used as a key, and the first-type object name and the second-type object name may be used as a key, or the first-type object name may be used as a key, and the second-type object name may be used as a value. For example, a first thesaurus is shown in table 1 below:
TABLE 1
Key with a key body Value of
ModifyDiskChargeType Modifying cloud disk charging mode
ModifyDiskAttribute Modifying cloud disk attributes
A second lexicon: the word list of each main-class participle in a plurality of main-class participles related to a main-class target name is stored in the second word bank, and the word list of each main-class participle comprises a main-class participle set formed by the main-class participle and similar words thereof and other various participle sets. The similar words of the main-class participle include words with the same or similar semanteme as the main-class participle, and also include words with the relevance degree with the main-class participle larger than or equal to a threshold value, wherein the relevance degree can be understood as the probability of the paired occurrence with the main-class participle for representing the target name. Each of the participle sets of the other categories includes at least one other category participle determined based on the main category participle.
In addition, the second thesaurus may further include a unique identification code of each of the at least two types of object names, or a unique identification code of the main type of object name. Similar to the first thesaurus, the second thesaurus may have a variety of formats and may also be stored in a key-value store format. In the second word bank, for example, the unique identification code of the main class target name is used as a key, and each entry table is used as a value, or for example, the main class entry is used as a key, and other class entries corresponding to each main class entry are used as values. Or for example, the main category entries are used as keys, other category entries associated with each main category entry, and similar words corresponding to the main category entries are used as values. For example, a second thesaurus is shown in table 2 below:
TABLE 2
Key with a key body Value of
Disk In bigram[Modify][pair]bigram[Modify][chinese]As a modification "
Charge In bigram[Disk][pair]bigram[disk][chinese]As a cloud dish "
Type In bigram[Charge][pair]bigram[Charge][chinese]Charging "
bigram bigram[Type][chinese]As a cloud dish "
Main class candidate name: the name is a preset candidate name in at least two types of candidate names, and specifically which type of the at least two types of candidate names is used as the main type candidate name may be preset by the device. When one of the at least two candidate names is used as the main candidate name, the other candidate names are all called other candidate names.
Main category word segmentation: the method refers to word segmentation obtained after word segmentation is carried out on the main class candidate name. For example, if the main class candidate name is an interface english name, the corresponding main class participle is specifically an english participle.
Word segmentation of other classes: the method refers to word segmentation obtained after word segmentation is carried out on other candidate names. For example, if the other candidate names are chinese names of the interface, the corresponding other candidate names are specifically chinese participles.
Target entry table: the word list is that the main class word segmentation set and other class word segmentation sets respectively contain a plurality of word segmentations in at least two classes of candidate names.
The following is a description of the design concept related to the embodiments of the present application.
In order to implement the auditing of the interface information of the service provider, the inventor of the present application has designed an interface information auditing method, which can be executed by a server, and the server can be used for auditing whether the interface information is correct or not, or whether the interface information meets the specification or not. The method includes the steps that interface information is obtained from an interface registration request, the interface information specifically comprises at least two types of candidate names of an interface, whether a target phrase matched with the at least two types of candidate names is searched in a first word stock or not is judged, if the target phrase identical with the at least two types of candidate names is searched in the first word stock, the interface information is directly determined to be approved, and therefore the process of examining the interface information is achieved. And whether the phrase is matched with the at least two types of candidate names is directly searched in the first word stock, and the interface information does not need to be processed in a related manner, so that the auditing efficiency of the interface information is improved. Moreover, manual intervention is not needed in the interface information auditing process, and the auditing process efficiency is high.
Further, the inventor of the present application also considers that in some cases, the main class candidate name is the same as the main class target name in the approximate phrase in the first thesaurus, but the other class candidate name is not the same as the other target name in the approximate phrase, which may be caused by the difference in understanding of the interface name by different service providers, so that the similarity comparison between the other class candidate name of the interface and the other class target name can be performed, and if the similarity is greater than or equal to the threshold, it is determined that the interface information is approved, so that when the interface name has a partial difference, the interface information can still be correctly approved, and the error condition of the approval is avoided.
Further, under the condition that the examination is not passed, the target object can be prompted to adjust the interface information according to the matched result according to the previously matched result, so that the target object can update the interface information. Or, under the condition that the interface information is not checked, or after the updated interface information is obtained, the interface information which is checked manually can be updated to the first word stock and the second word stock by means of the manual checking of the interface information, and after the manual checking of the interface information is passed, the first word stock and the second word stock are expanded.
Further, the number of the interfaces is various, or functions provided by a certain interface under different service types may be different, so that the inventor of the present application considers that the first thesaurus can be divided according to different service types to obtain a plurality of first sub-thesaurus, and thus, after the service type corresponding to the service provider is obtained, the corresponding interface can be searched from the first sub-thesaurus matched with the service type, on one hand, the matching range is smaller, which is more beneficial to quickly examining and verifying the interface information, and on the other hand, because the interface is searched under the service type, the interface information to be registered by the service provider can be more accurately determined in the later stage. Similarly, the second word stock may also be divided according to different service types to obtain a plurality of second sub-word stocks.
Based on the design concept, an application scenario of an interface information auditing method in the embodiment of the present application is introduced below. The method can be executed by interface information auditing equipment, and the interface information auditing equipment can be realized by a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform.
Referring to fig. 1, a schematic diagram of an interface information auditing apparatus 100 is shown, which includes one or more input devices 101, one or more processors 102, one or more memories 103, and one or more output devices 104.
The input device 101 is used to provide an input interface to obtain interface information and the like input by an external device or a service provider. After obtaining the interface information, the input device 101 sends the interface information to the processor 102, and the processor 102 implements a process of auditing the interface information by using program instructions stored in the memory 103, so as to obtain an auditing result of the interface information. And outputting the auditing result of the interface information through the output device 104.
Input device 101 may include, but is not limited to, one or more of a physical keyboard, function keys, a trackball, a mouse, a touch screen, a joystick, and the like, among others. The processor 102 may be a Central Processing Unit (CPU), a digital processing unit, or the like. The memory 103 may be a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 103 may also be a non-volatile memory (non-volatile memory) such as, but not limited to, a read-only memory (rom), a flash memory (flash memory), a hard disk (HDD) or a solid-state drive (SSD), or the memory 103 may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 103 may be a combination of the above memories. Output devices 104 such as a display, speakers, and printer, among others.
To more clearly illustrate the deployment scenario of the interface information auditing apparatus 100, please refer to fig. 2, which shows a schematic diagram of a deployment structure of the interface information auditing apparatus 100, or an application scenario diagram that can also be understood as an interface information auditing method.
The server 220 in the application scenario is equivalent to the interface information auditing device 100 in the foregoing, the application scenario includes a plurality of terminals 210 and the server 220, and the terminals may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and the like, but are not limited thereto. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the application is not limited herein.
The target object transmits the interface registration request to the server 220 through a client in the terminal 210 and/or transmits the interface registration request to the server 220 by accessing a web page. The interface registration request includes interface information including at least two types of candidate names for the interface. After the server 220 obtains the interface information, it may use the stored first lexicon to find whether a target phrase identical to the interface information exists in the first lexicon, that is, if a main class target name in the target phrase is identical to a main class candidate name in the interface information, if other class target names in the phrase are identical to other class candidate names in the interface information, the server 220 determines that the interface information is approved.
After the interface information is approved, the server 220 may determine, based on the service interface that can be supported by itself, whether the interface registered by the service provider is the service interface that can be supported by itself, and if so, complete the process of registering the interface by the service provider. After the registration process is completed, the target object can use the service corresponding to the service interface by using the service interface of the cloud platform.
In the embodiment, the auditing process of the interface information is realized. Moreover, since the server 220 directly matches the interface information by using the first lexicon, the interface information is quickly checked, and the interface information checking efficiency is improved.
Based on the application scenario discussed in fig. 2, the following describes the principle of the interface information auditing method according to the embodiment of the present application.
Referring to fig. 3, a schematic diagram of the server 220 for implementing interface information auditing is shown, and the following describes an example of the principle of the server 220 for implementing interface information auditing with reference to fig. 3.
S301, constructing a word stock.
Before the server 220 reviews the interface information, the server 220 needs to create a first thesaurus and a second thesaurus, for example, the server 220 may obtain corresponding interface information from a network resource, add the interface information to the first thesaurus and the second thesaurus, and may also periodically obtain and update contents in the first thesaurus and the second thesaurus from the network resource. Or, for example, the server 220 may add the contents of the interface information to the first thesaurus and the second thesaurus by using the interface information that is manually checked.
It should be noted that S301 is an optional step, and when performing the interface audit, the first thesaurus and the second thesaurus may have been successfully constructed, and then S301 does not need to be repeatedly executed.
And S302, interface entry.
The server 220 obtains interface information of an interface which a service provider needs to register from the terminal 210, and specifically obtains at least two types of candidate names of the interface. The detailed contents of at least two types of candidate names can refer to the contents discussed above, and are not described herein again.
And S303, automatically auditing.
The server 220 may implement an automatic audit process on the interface information through the first thesaurus and the second thesaurus, where the automatic audit condition is specifically divided into the following:
in the first case:
and if the first word stock has a word group with the main class target name identical to the main class candidate name, and other class candidate names of the word group are identical to other class candidate names in the interface information, determining that the first word stock has a target word group matched with the interface, and determining that the interface information passes the audit.
In the second case:
if an approximate phrase with the same main-class target name as the main-class candidate name exists in the first lexicon, and other-class target names of the approximate phrase are not the same as the other-class candidate names, the server 220 may determine, for each class, a similarity between the other-class target names and the other-class candidate names, and if the similarity between the other-class target names and the names corresponding to each class in the other-class candidate names of the interface to be registered is greater than or equal to a threshold, determine that the interface information is approved.
And if the similarity between the other target names and the other candidate names of the interface to be registered exists in at least one class, the interface information is determined not to pass the examination.
As an embodiment, values of the similarity threshold corresponding to any two types of names may be the same or different.
For example, the main class candidate name is a class a candidate name, the main class target name is a class a target name, the other class candidate names include a class B candidate name and a class C candidate name, the other class target names in the approximate phrase include a class B target name and a class C target name, and if the similarity between the class B candidate name and the class B target name is greater than or equal to a threshold value and the similarity between the class C candidate name and the class C target name is greater than or equal to the threshold value, it is determined that the interface information is approved.
In the third case:
if the first word bank does not have a word group with the same main class target name as the main class candidate name, the main class candidate name can be segmented respectively to obtain a plurality of main class segmented words, whether a target entry list matched with the main class segmented words exists in the second word bank or not is further determined, if the target entry list matched with the main class segmented words exists, interface information verification is determined to be passed, and the like, and if the target entry list does not exist in the second word bank, interface information verification is determined not to be passed.
It should be noted that, in the three cases, only one of the cases occurs in the process of actually auditing certain interface information.
And S304, carrying out manual review under the condition that the interface review fails.
When the interface information is not approved, a second prompt message may be sent, where the second prompt message is used to instruct the terminal 210 to display the interface information of the interface to be registered to the approval interface, and then the server 220 determines whether the interface information is approved according to the information input by the worker at the approval interface.
Under the condition that the interface information is passed through the manual examination, the interface information passed through the manual examination can be stored in the first word bank and the second word bank, and the first word bank and the second word bank can be updated.
As an embodiment, the server 220 records the number of times of manual review of the interface information, and writes the interface information into the first lexicon and the second lexicon when a ratio of the number of times of manual review to the total number of times of manual review of the interface information reaches a proportional threshold. The proportional threshold may be a value preset by server 220.
In this embodiment of the present application, the server 220 may search, in the first thesaurus, whether a target phrase matching at least two types of candidate names exists, and if the target phrase exists, it indicates that any one type of candidate names in the at least two types of candidate names matches a standard target name, so that it is determined that the interface information is approved, and a scheme for auditing the interface information is provided. And when the target phrase is not found in the first lexicon, matching can be continued according to the second lexicon, so that the automatic examination process of the interface information is realized, and the efficiency of examination of the interface information is improved.
In order to more clearly illustrate the interface information auditing scheme involved in the embodiments of the present application, an example of an interface information auditing method involved in the embodiments of the present application is described below based on the application scenario discussed in fig. 2 and the auditing principle discussed in fig. 3.
In the embodiment of the present application, the at least two types of candidate names include two types of candidate names, a main type candidate name is an interface english name, other types of candidate names are interface chinese names, a main type target name is an english name, and other types of candidate names are chinese names, but the specific types of the at least two types of candidate names are not limited in practice. The target object is a service provider as an example.
Referring to fig. 4, a schematic diagram of an interaction between the server 220 and the terminal 210 is shown. In fig. 4, one terminal 210 is taken as an example, and the number of terminals is not limited in practice, and the interaction process specifically includes:
s401, the terminal 210 generates an interface registration request in response to an input operation of the service provider.
When a service provider wants to use a certain service interface provided by a certain cloud platform, the service provider can access the cloud platform through a website corresponding to the cloud platform, so that communication connection between the terminal 210 and the server 220 is established, when the service provider opens the website, the server 220 issues configuration information of a webpage, and the terminal 210 further presents a corresponding interface registration interface.
The interface registration interface may include an interface input box for providing an entry for input for the service provider. The interface registration interface may also include an interface search button that the service provider may click to search for the interface that he wants. The interface registration interface can also comprise displayed interface input prompt information, and the interface input prompt information is used for prompting the service provider of the interface information required to be input and the format of the input interface information. The interface registration interface can also comprise an interface information list, the interface information list comprises interface information of each interface in the plurality of interfaces, and the service provider can directly select one or more interface information to simplify the operation of the service provider.
As an embodiment, the interface information of each interface in the interface information list is sequentially arranged from high to low according to the registration frequency of each interface. While the server 220 provides the interface registration service, the server 220 records the number of times each interface is registered, and arranges the interfaces in the order from high to low based on the number of times the interfaces are registered, so that the interfaces with high registration frequency are arranged in front, so that the service provider can know the current hot spot interface service and can select the service provider conveniently.
After displaying the interface registration interface, the service provider may input the interface chinese name and the interface english name of the service interface that the service provider wants to register in the interface registration interface, or the service provider may directly select interface information from the interface information list, and the terminal 210 obtains the interface information in response to the input operation of the service provider, and generates the interface registration request based on the identifier of the terminal 210 or the account ID of the service provider on the cloud platform, the interface information, and the like. The interface information input by the service provider may be interface information corresponding to one interface, or may be interface information corresponding to each of a plurality of interfaces.
As an example, the service provider may input its own service type in addition to the interface information. The purpose of the service provider registering the service interface is to implement a certain service, and therefore, when registering the service interface, the service provider can input its own service type so as to provide a service corresponding to the service type later.
For example, referring to fig. 5, a schematic diagram of an interface registration interface is shown, and the interface registration page includes an interface input box 501, an interface search key 502, interface input prompt information 503, and an interface information list 504. The interface information list 504 includes contents such as "ReInitDisk + block storage" shown in fig. 5, for example, the service provider inputs "modifydikcargetype" to modify the charging mode of the cloud disk in the interface shown in fig. 5, and the terminal 210 also obtains the interface information input by the service provider. In addition, the interface registration interface may further include a return control 505, and the service provider may click on the return control 505, return to the previous page, and the like.
S402, the terminal 210 transmits an interface registration request to the server 220.
After the terminal 210 generates the interface registration request, the interface registration request may be sent to the server 220, and when the terminal 210 sends the interface registration request, the interface registration request may be forwarded to the server 220 through another server.
S403, the server 220 obtains the interface information.
After obtaining the interface registration request, the interface registration request may be parsed to obtain an interface chinese name and an interface english name of the interface to be registered, which are included in the interface request. Of course, the interface registration request may include only the interface information, and obtaining the interface information after obtaining the interface registration request is equivalent to obtaining the interface information. If the service provider inputs interface information of a plurality of interfaces, naturally, the server 220 can obtain the interface information corresponding to each interface. The following describes a process of auditing interface information of one interface, and is similar to the process of auditing other interface information.
As a real-time, the server 220 may create multiple processes according to the service types supported by itself, where each process is used to implement the auditing of the interface information under one service type, so that multiple new interfaces are audited in parallel, and the auditing process is accelerated. And one process is associated with the unary sub-word library and the binary sub-word library under the service type of the process, so that the condition of error audit is avoided, and the accuracy of audit is improved.
S404, the server 220 determines whether a target phrase matching both the interface chinese name and the interface english name in the interface information exists in the first thesaurus.
The manner of constructing the first word stock and the second word stock may refer to the content discussed above, after the first word stock is constructed, when the first word stock includes an english name and a chinese name corresponding to the english name, after the server 220 obtains the interface chinese name in the interface information and the interface english name, it may be found whether there is an english name matching the interface english name in the first word stock, where matching of the english character strings means that the letters of the character strings constituting the two english names and the order of the letters are the same, but the case form of each letter may be different. Such as "Reinitdisk" and "Reinitdisk" may be understood as two identical English names. The meaning of the first thesaurus can refer to the content discussed above and will not be described herein. And if the first English name matched with the English name of the interface exists, determining whether the first Chinese name in the first phrase corresponding to the first English name is matched with the Chinese name of the interface. The matching of Chinese character strings means that the Chinese characters composing the Chinese name and the sequence of each Chinese character are the same.
For example, the service provider inputs "modifydikcharggetype" to modify the charging method of the cloud disk, "the first thesaurus stored in the server 220 specifically refers to the contents shown in table 1, the server 220 is the same as" modifydikcharggetype "in the first phrase in the first thesaurus according to" modifydikcharggettype, "and the server 220 continues to determine whether" modifydikcharggetype "is the same as the chinese name corresponding to" modifydikcharggettype "in the first phrase.
Alternatively, the server 220 may first search for whether there is a chinese name matching the chinese name of the interface in the first lexicon, and then determine whether the first english name in the first phrase corresponding to the first chinese name matches the english name of the interface if there is a first chinese name matching the chinese name of the interface.
For example, the service provider inputs "modifydikcharggetype to modify the charging method of the cloud disk", the first thesaurus stored in the server 220 specifically refers to the contents shown in table 1, the server 220 determines whether the "modifydikcharggettype" is the same as the "charging method of the modified cloud disk" in the first phrase in the first thesaurus according to the "charging method of the modified cloud disk", and the server 220 continues to determine whether the "modifydikcharggetype" is the same as the english name corresponding to the "charging method of the modified cloud disk" in the first phrase.
When the first lexicon includes the english name, the chinese name corresponding to the english name, the unique identification code of the english name, and the unique identification code of the chinese name, the unique identification code and the unique identification code may be generated in a manner as described above, and details thereof are not repeated here. After obtaining the interface chinese name and the interface english name, the server 220 may generate a first identification code of the interface english name and a second identification code of the interface chinese name according to a preset algorithm, directly search the first thesaurus with the first identification code, determine whether a unique identification code identical to the first identification code exists in the first thesaurus, and correspondingly determine whether a unique identification code identical to the second identification code exists in the first thesaurus, and if two unique identification codes associated with a certain phrase in the first thesaurus are identical to the first identification code and the second identification code, it indicates that a target phrase matching the interface english name and the interface chinese name exists in the first thesaurus.
For example, a first thesaurus stored in the server 220 is specifically shown in the following table 3:
TABLE 3
Key with a key body Value of
eeb9e47b Charging mode for ModifyDiskChargeType-modified cloud disk
5391b26 ModifyDiskAttribute-modified cloud disk attributes
Each key in table 3 is a unique identification code obtained by encrypting the content of the "english name" according to an encryption algorithm, that is, the key in table 3 is equivalent to a unique identification code corresponding to only the main-class object name.
When the "modifydikcharggettype" input by the service provider modifies the charging mode of the cloud disk, the server 220 encrypts the "modifydikcharggettype" according to an md5 encryption algorithm, obtains a first identification code "eeb 9e47 b" corresponding to the interface, and determines whether a unique identification code identical to the first identification code exists in the first lexicon according to comparison between the first identification code and the key in table 3.
It should be noted that the "first phrase" in the embodiments of the present application refers to a phrase matching with the interface english name, and does not refer to a certain phrase in the first lexicon, and the "first english name" refers to an english name in the first phrase, and the "first chinese name" refers to a chinese name in the first phrase. For convenience of description, when the first phrase is matched with both the interface english name and the interface chinese name in the interface information, the first phrase is the target phrase.
As an embodiment, the first word stock includes first sub-word stocks under each service type, and each first sub-word stock includes word groups of each interface under one service type.
After obtaining the service type of the service provider, the server 220 may first determine a target first sub-lexicon (which may also be referred to as a target unary sub-lexicon) corresponding to the service type according to the service type corresponding to the service provider, and then search for whether there is a phrase matching the interface Chinese name and the interface English name in the target first sub-lexicon. Therefore, the searching range can be reduced, and the efficiency of interface information auditing is improved. Moreover, under different service types, the functions correspondingly realized by the interfaces may be different, and the service types are classified, so that more accurate service can be conveniently registered for the service provider subsequently.
S405, if the first word stock has the target word group matched with both the interface English name and the interface Chinese name, the interface information is determined to be approved.
As discussed above, if the chinese name in a phrase in the first thesaurus matches the chinese name of the interface, and the english name in the phrase matches the english name of the interface, then the chinese name and the english name of the interface are both compliant, so that server 220 determines that the interface information is approved.
S404 to S405 correspond to the first case discussed above with reference to fig. 3.
S406, if there is an approximate phrase matching the first name of the interface in the first thesaurus, but the first chinese name in the approximate phrase does not match the name of the interface, the server 220 determines whether the similarity between the first chinese name and the name of the interface is greater than or equal to a threshold.
Each facilitator may have slight differences in the translation or recognition result of the second name of the interface, but these differences do not affect the subsequent processing of the interface information, and therefore, in the embodiment of the present application, when the first english name is the same as the english name of the interface, but when the first chinese name is different from the chinese name of the interface, the similarity between the first chinese name and the chinese name of the interface may be further determined. There are many ways to determine the similarity of two chinese character strings, which are exemplified below.
One way to determine the similarity of two chinese strings is as follows:
respectively converting the first Chinese name and the interface Chinese name into vectors;
the similarity between the two vectors is determined.
Specifically, the server 220 converts the first chinese name into a first vector and converts the interface chinese name into a second vector, for example, the first chinese name and the interface chinese name are encoded by using unique hot coding, specifically, a word common to the first chinese name and the interface chinese name may be encoded as "1", and a chinese character not common to the first chinese name and the interface chinese name may be encoded as "0". Common refers to the same Chinese characters that are present in both Chinese strings.
After obtaining the first vector and the second vector, determining a similarity between the first vector and the second vector, for example, calculating a cosine similarity between the two vectors, or a Levenshtein (Levenshtein) distance, or the like.
When the at least two types of candidate names include three or more candidate names, it is necessary to determine the similarity between the other candidate names except the main type name and the names of the corresponding types in the other target names in the approximate phrase.
S407, if the similarity between the first Chinese name and the interface Chinese name is larger than or equal to the threshold value, the interface information is determined to be approved.
If the similarity between the first Chinese name and the interface Chinese name is larger than or equal to the threshold value, the first Chinese name and the interface Chinese name are not greatly different, and therefore the interface information is determined to be approved.
S408, if the similarity between the first Chinese name and the interface Chinese name is smaller than the threshold value, the interface information is determined not to be approved.
If the similarity between the first Chinese name and the interface Chinese name is smaller than the threshold value, the difference between the first Chinese name and the interface Chinese name is larger, and therefore the interface information is determined not to be approved.
In the embodiments of S406 to S408, when the english name of the interface matches the first english name of the first phrase, but the chinese name of the interface does not match the first chinese name, the similarity between the chinese name of the interface and the first chinese name is determined, and when the similarity between the chinese name of the interface and the first chinese name is higher, it is determined that the interface information is approved, so that a situation that the interface information is not approved due to the understanding difference of the service provider can be avoided.
Wherein S406-S408 correspond to the second case discussed in FIG. 3.
S409, if there is no phrase matching with the interface english name in the first lexicon, the server 220 obtains a plurality of english participles of the interface english name.
The interface english name is actually composed of one or more english words, but the order of the english words composing the interface english name may not be exactly the same for different standards of the interface name, or different usage habits, and thus, if the first english name identical to the interface english name is not found in the first thesaurus, the interface english name may still be in compliance with the specification. Therefore, in the embodiment of the present application, when there is no phrase matching with the interface english name in the first lexicon, that is, there is no first english name in the first lexicon that is the same as the interface english name, the interface english name is segmented to obtain a plurality of english segments.
As an embodiment, when performing word segmentation on the english name of the interface, the word segmentation may be performed based on a character string matching method, specifically, a plurality of english words are pre-stored, and then the english name of the interface is matched with the english words, and each matched english word is an english word.
Or, according to the logic break point in the English name of the interface, the English name of the interface is participled. The naming mode of the interface English name can be a hump naming method, and the hump naming method is specifically that letters at the logic break points of the interface English name are in an uppercase form. The logical break is actually the first letter of each word, and if the interface english name includes multiple english words, then there are multiple logical breaks. During word segmentation, the server 220 can obtain the position of the logic break point according to the position of the capital letter in the english name of the interface, and then perform word segmentation on the english name of the interface according to the position of the logic break point to obtain a plurality of english word segments.
For example, referring to fig. 6, the english name of the interface is specifically denoted as "modifydikcargetype", and the server 220 determines the logic break points of the english name of the interface according to the position of the capital letter, such as points a, b, and c shown in fig. 6, and further can specifically split the english name of the interface into three word groups of "ModifyDisk", "disckcarge", and "chargettype" according to the three logic break points.
S410, the server 220 determines whether a target entry list matching the plurality of english segmented words exists in the second thesaurus.
The server 220 can search the target entry list corresponding to each english participle in the second lexicon, that is, the target entry list is a entry list in which the main class participle set and the other class participle sets both include participles of corresponding classes, and then it is determined that the interface information is approved. If one or more English participles cannot find the corresponding English participle in the entry list or at least one English participle corresponding to other classes of participles cannot be matched with the corresponding participle in the entry list, the entry list is not matched with the English participles.
As an embodiment, the second thesaurus includes a plurality of second sub-thesaurus divided according to different service types. Before executing S410, the server 220 matches a target second sub-lexicon matched with the service type of the facilitator from the plurality of second sub-lexicons according to the service type corresponding to the facilitator, and determines whether a target entry table matched with the plurality of english segmented words exists in the target second sub-lexicon. Therefore, the matching range of the server 220 can be reduced, and the efficiency of interface information auditing is improved.
S411, the server 220 determines that the interface information audit does not pass if a target entry table matching at least one main-class participle exists in the second lexicon for each participle of the main class.
S412, for each word segmentation of the main category, if a target entry table matching each word segmentation of the main category exists in the second lexicon, the server 220 determines that the interface information is approved.
For example, with continued reference to fig. 6, after the server 220 obtains a plurality of english tokens, the plurality of english tokens may be matched with a second lexicon, specifically, the second lexicon may refer to table 2 discussed above, the server 220 determines that three word groups of "ModifyDisk", "DiskCharge", and "ChargeType" can find a corresponding word group in table 2, and the chinese tokens corresponding to the three word groups are also matched with the corresponding word group in table 2, thereby determining that the interface information meets the requirement.
Wherein S410-S411 correspond to the third scenario discussed in FIG. 3.
S413, when the interface information is not verified, sends the first prompt information to the terminal 210.
The case where the interface information is not approved specifically includes the foregoing S408 and S411, and in these cases, the interface information input by the service provider is not in compliance with the specification, so that the service provider may be prompted to update the interface information according to the matching result, and the server 220 may send the first prompt information to the terminal 210. The first prompt may be presented in the form of a floating window or in a page in the terminal 210.
Specifically, in the case that the verification fails to pass the foregoing S408, it indicates that the interface english name input in the service has a higher possibility of having a problem, so that the first chinese name corresponding to the first english name in the first thesaurus that is the same as the interface english name can be carried in the first prompt information, and the service provider is prompted to update the interface chinese name to the first chinese name. Or after the Chinese names of the interfaces are segmented, Chinese segmentation which is not matched with the first Chinese name can be determined, then reference segmentation corresponding to the Chinese segmentation in the second word stock is obtained, the reference segmentation is carried in the first prompt information, and the target object is prompted to update the Chinese names of the interfaces according to the reference segmentation.
Specifically, in the case of S411, the verification fails, which indicates that the interface chinese name input by the facilitator has a higher possibility of having a problem, so that the first english name with a higher similarity to the interface english name in the first thesaurus can be carried in the first prompt message, and the facilitator is prompted to update the interface english name to the first english name.
For example, please refer to fig. 7, which shows a schematic diagram illustrating an interface information auditing feedback interface on the terminal 210, where the interface information input by the service provider is "modifydikcharggetype + charging mode of the modified cloud disk", and the server 220 determines that the "charging mode of the modified cloud disk" does not match with the "charging mode of the modified cloud disk" in table 2, so that it is suggested to display the first prompt information 701, specifically, it is suggested that "you input" modifydikcharggetype + charging mode of the modified cloud disk "in fig. 7 fails to automatically audit, and it is suggested to modify" charging mode of the modified cloud disk "into" modified cloud disk charging mode ".
S414, sending the second prompting message to the terminal 210 when the interface information is not verified.
The case that the interface information audit is not passed specifically includes the foregoing S408 and S411, in the case of S408 and S411, the interface information may be transferred to the manual audit, or after S417, the updated interface information may be transferred to the manual audit. Specifically, the server 220 may generate second prompt information, where the second prompt information is used to prompt to display the interface information to be audited to the audit interface. The presenting manner of the second prompting message may refer to the presenting manner of the first prompting message discussed above, and is not described herein again.
For example, the interface information input by the service provider is "modifydikcharggettype + charging method for modifying cloud disk", and the server 220 determines that the interface information is not approved through the above process, and then the server 220 feeds back second prompt information to the terminal 210, please refer to fig. 8, which shows a schematic diagram of an interface information audit feedback interface displayed on the terminal 210, where the second prompt information 801 is specifically "modifydikcharggettype + charging method for modifying cloud disk" input by you "shown in fig. 8, and suggests to perform manual audit.
S415, the terminal 211 generates manual review result information of the interface information in response to the review passing operation of the staff.
After the review interface is displayed, the staff may perform a review passing operation on the interface information on the terminal 211, and the terminal 211 determines that the interface information is approved, and generates manual review passing information of the interface information. Or, the staff performs an operation of not passing the interface information audit, the terminal 211 determines that the interface information audit does not pass, generates manual audit non-passing information of the interface information, and displays the audit non-passing information on a page corresponding to the terminal 211. After the staff member passes the audit, the server 220 may obtain the audit result information from the terminal 211.
For example, the interface information input by the service provider is "modifydikcharggettype + modified cloud disk charging mode", the server 220 determines that the interface information is not verified through the above process, and then the service provider changes the interface information into "modifydikchargargetype + modified cloud disk charging mode" according to the first prompt information, and manually verifies the updated interface information, and displays a verification interface shown in fig. 9, and manually verifies the passing information 901 on the interface in fig. 9, specifically, as shown in fig. 9, "modifydikcharggettype + modified cloud disk charging mode" manually verified passing ".
In an embodiment, the manual review result information includes manual review non-pass information or manual review pass information, the manual review non-pass information is used for indicating that the interface information is not passed through review, and the manual review pass information is used for indicating that the interface information is passed through review. The audit passing information includes the interface information that the audit passes, and the interface information that the audit passes may be the interface information updated by the service provider or the interface information originally input by the service provider.
S416, the terminal 211 sends the manual review result information to the server 220.
S417, the server 220 updates the first word bank and the second word bank according to the manual review result information.
After the server 220 obtains the manual review passing information, if the manual review result information is the manual review passing information, the server 220 may correspondingly add the interface english name and the interface chinese name of the interface information to the first thesaurus, and correspondingly add the multiple english participles of the interface english name and the multiple chinese participles of the interface chinese name of the interface information to the second thesaurus based on the interface information that passes the review.
It should be noted that three situations may occur in the process of auditing the interface information in S404 to S405, S406 to S408, and S410 to S411, and actually one of the situations may occur in the process of auditing certain interface information.
As an embodiment, S406-S408, S410-S411, S413, S414, S415-S416 and S417 are six optional parts.
In the embodiment of the present application, the interface english name is taken as the main class candidate name, and the interface chinese name is taken as the other class candidate names, but actually, the main class candidate names of the at least two classes of candidate names may be arbitrary, and the at least two classes of candidate names may further include, for example, an interface korean name, an interface japanese name, an interface german name, and the like.
Based on the same inventive concept, an embodiment of the present application provides an interface information auditing apparatus, which is equivalently arranged in the interface information auditing device 100 discussed above, and referring to fig. 10, the interface information auditing apparatus 1000 includes:
an obtaining module 1001, configured to obtain interface information of an interface to be registered submitted by a target object from an interface registration request, where the interface information includes at least two types of candidate names of the interface to be registered;
the auditing module 1002 is configured to determine that the interface information is approved if the target phrase matched with the interface to be registered is found in the first lexicon; the first word stock comprises a plurality of word groups corresponding to each interface information in the checked and confirmed interface information, each word group comprises various target names included in the checked and confirmed interface information, and the target word groups are formed by matching each target name with a candidate name corresponding to the category.
In a possible embodiment, the at least two types of candidate names include main-class candidate names, and each word group in the first lexicon includes a main-class target name; the audit module 1002 is further configured to:
if the target phrase is not found in the first word stock, when the approximate phrase of the interface to be registered is found in the first word stock, determining that the interface information is approved; the main class target name in the approximate phrase is matched with the main class candidate name of the interface to be registered, other various target names in the approximate phrase are respectively matched with other various candidate names of the interface to be registered, and the similarity between the names corresponding to each category is larger than or equal to a threshold value.
In one possible embodiment, the auditing module 1002 is further configured to:
if the approximate phrase is not found in the first lexicon,
if the approximate phrase is not found in the first word stock, carrying out word segmentation processing on the main class candidate name to obtain a plurality of main class words;
for each main-class participle, if a target entry table matched with each main-class participle exists in the second word stock, determining that the interface information is approved; the second word bank comprises a vocabulary list corresponding to each main-class participle obtained after word segmentation processing is carried out on the main-class target name in each examined interface information, the vocabulary list corresponding to each main-class participle comprises a main-class participle set formed by the main-class participle and similar words thereof and other classes of participle sets, each other class of participle set comprises at least one other class participle determined according to the main-class participle, and the target vocabulary list is a vocabulary list in which the main-class participle set and the other classes of participle sets both contain participles of corresponding classes.
In a possible embodiment, the auditing module further includes a first prompting module, and the first prompting module 1003 is specifically configured to:
obtaining at least one type of reference participles which are not matched with the participles of the target entry list;
generating and sending first prompt information; the first prompt message is used for indicating that the candidate name of the corresponding category in the at least two categories of candidate names is updated according to the at least one category of reference participles.
In a possible embodiment, the audit module further includes a second prompt module, and the second prompt module 1004 is specifically configured to:
if the interface information is not checked and passed, second prompt information is generated and sent, and the second prompt information is used for displaying the interface information of the interface to be registered to a checking interface;
and receiving an audit result input through the audit interface, and updating the first word bank and the second word bank when the audit result is that the audit is passed.
In a possible embodiment, at least two classes are divided according to different languages, wherein the main class is english, and the other classes at least include chinese, and the auditing module 1002 is specifically configured to:
and performing word segmentation processing on the main class candidate name according to the logic break points in the main class candidate name to obtain a plurality of main class words.
In a possible embodiment, the interface registration request includes a service type of the target object, the first lexicon includes a plurality of first sub-lexicons, each first sub-lexicon includes a phrase corresponding to each interface information in a plurality of checked and confirmed interface information under a service type; the audit module 1002 is further configured to:
after acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, searching a target first sub-lexicon matched with the service type of the target object;
and determining whether a target phrase matched with the interface to be registered exists in the target first sub-word library.
In a possible embodiment, each first sub-lexicon further comprises a unique identification code corresponding to each target name in each phrase of the checked interface information; the auditing module 1002 is specifically configured to:
generating identification codes of various candidate names according to a preset algorithm;
and respectively determining whether target phrases which correspond to the identification codes of the various candidate names exist in the target first sub-word library or not.
It should be noted that the interface information auditing device 1000 may implement any one of the interface information auditing methods discussed above.
Based on the same inventive concept, the embodiment of the application also provides computer equipment. The computer device corresponds to the server 220 in the foregoing. Referring to FIG. 11, a computing device 1100 is shown in the form of a general purpose computing device. The components of computer device 1100 may include, but are not limited to: at least one processor 1110, at least one memory 1120, and a bus 1130 that connects the various system components, including the processor 1110 and the memory 1120.
Bus 1130 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 1120 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)1121 and/or cache memory 1122, and may further include Read Only Memory (ROM) 1123.
The memory 1120 may also include a program/utility 1126 having a set (at least one) of program modules 1125, such program modules 1125 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment. The processor 1110 is configured to execute the program instructions and the like stored in the memory 1120 to implement the interface information auditing method discussed above, or to implement the functions of the interface information auditing apparatus 1000 or the interface information auditing device 100 discussed above.
Computer device 1100 can also communicate with one or more external devices 1140 (e.g., keyboard, pointing device, etc.), and also with one or more devices that enable terminal device 210 to interact with computer device 1100, and/or with any devices (e.g., router, modem, etc.) that enable computer device 1100 to communicate with one or more other devices. Such communication may occur via an input/output (I/O) interface 1150. Also, computer device 1100 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via network adapter 1160. As shown, the network adapter 1160 communicates with the other modules for the computer device 1100 through a bus 1130. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the computer device 1100, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Based on the same inventive concept, embodiments of the present application provide a storage medium storing computer instructions, which when executed on a computer, cause the computer to perform the interface information auditing method discussed above. The storage medium may be understood as a computer-readable storage medium.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (14)

1. An interface information auditing method is characterized by comprising the following steps:
acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, wherein the interface information comprises at least two types of candidate names of the interface to be registered;
if the target phrase matched with the interface to be registered is found in the first word stock, determining that the interface information is approved; the first word stock comprises a plurality of word groups corresponding to each interface information in the interface information which is checked and confirmed, each word group comprises various target names included in the interface information which is checked and confirmed, and the target word groups are formed by matching each target name with a candidate name of a corresponding category.
2. The method of claim 1, wherein the at least two types of candidate names include a main class candidate name, and each phrase in the first lexicon includes a main class target name; the method further comprises the following steps:
if the target phrase is not found in the first word stock and the approximate phrase of the interface to be registered is found in the first word stock, determining that the interface information is approved; and the main class target name in the approximate phrase is matched with the main class candidate name of the interface to be registered, the similarity between other various target names in the approximate phrase and other various candidate names of the interface to be registered is greater than or equal to a threshold value.
3. The method of claim 2, wherein the method further comprises:
if the approximate phrase is not found in the first word stock, carrying out word segmentation processing on the main class candidate name to obtain a plurality of main class words;
for each main-class participle, if a target entry table matched with each main-class participle exists in the second word stock, determining that the interface information is approved; the second word bank comprises an entry list corresponding to each main-class participle obtained after word segmentation processing is carried out on the main-class target name in each examined interface information, the entry list corresponding to each main-class participle comprises a main-class participle set formed by the main-class participle and similar words thereof and other classes of participle sets, each other class of participle set comprises at least one other class participle determined according to the main-class participle, and the target entry list is the entry list in which the main-class participle set and the other classes of participle sets both contain the participles of the corresponding classes.
4. The method of claim 3, wherein the method further comprises:
obtaining at least one type of reference participles which are not matched with the participles of the target entry list;
generating and sending first prompt information; the first prompt message is used for indicating that the candidate name of the corresponding category in the at least two categories of candidate names is updated according to the at least one category of reference participles.
5. The method of claim 3 or 4, further comprising:
if the interface information is not checked and passed, generating and sending second prompt information, wherein the second prompt information is used for displaying the interface information of the interface to be registered to a checking interface;
and receiving an audit result input through the audit interface, and updating the first word bank and the second word bank when the audit result is that the audit is passed.
6. The method according to claim 3, wherein the at least two classes are divided according to different languages, wherein a main class is english, the other classes at least include chinese, and the performing the word segmentation processing on the main class candidate name to obtain a plurality of main class words specifically includes:
and performing word segmentation processing on the main class candidate name according to the logic break points in the main class candidate name to obtain a plurality of main class words.
7. The method according to any one of claims 1 to 4 or 6, wherein the interface registration request includes a service type of the target object, the first thesaurus includes a plurality of first sub-thesaurus, and each first sub-thesaurus includes a phrase corresponding to each interface information in a plurality of checked and confirmed interface information under one service type;
after acquiring the interface information of the interface to be registered submitted by the target object from the interface registration request, the method comprises the following steps:
searching a target first sub-word library matched with the service type of the target object;
and determining whether a target phrase matched with the interface to be registered exists in the target first sub-word library.
8. The method of claim 7, wherein each first sub-lexicon further comprises a unique identification code corresponding to each target name in each phrase of the checked interface information; and the number of the first and second groups,
the determining whether a target phrase matched with the interface to be registered exists in the target first sub-word library specifically includes:
generating identification codes of various candidate names according to a preset algorithm;
and respectively determining whether target phrases which correspond to the identification codes of the various candidate names exist in the target first sub-word library or not.
9. An interface information auditing apparatus, comprising:
the acquisition module is used for acquiring interface information of an interface to be registered submitted by a target object from an interface registration request, wherein the interface information comprises at least two types of candidate names of the interface to be registered;
the auditing module is used for determining that the interface information is approved if the target phrase matched with the interface to be registered is found in the first word stock; the first word stock comprises a plurality of word groups corresponding to each interface information in the interface information which is checked and confirmed, each word group comprises various target names included in the interface information which is checked and confirmed, and the target word groups are formed by matching each target name with a candidate name of a corresponding category.
10. The apparatus of claim 9, wherein the at least two types of candidate names comprise main class candidate names, and wherein each phrase in the first lexicon comprises main class target names; the audit module is further configured to:
if the target phrase is not found in the first word stock, when the approximate phrase of the interface to be registered is found in the first word stock, determining that the interface information is approved; and the main class target name in the approximate phrase is matched with the main class candidate name of the interface to be registered, the similarity between other various target names in the approximate phrase and other various candidate names of the interface to be registered is greater than or equal to a threshold value.
11. The apparatus of claim 10, wherein the audit module is further to:
if the approximate phrase is not found in the first word stock, performing word segmentation processing on the at least two types of candidate names respectively to obtain a plurality of word segments corresponding to each type of name;
for each participle of the main class, if a target entry table matched with each participle of the main class exists in the second word stock, determining that the interface information is approved; the second word bank comprises an entry list corresponding to each main-class participle obtained after word segmentation processing is carried out on the main-class target name in each examined interface information, the entry list corresponding to each main-class participle comprises a main-class participle set formed by the main-class participle and similar words thereof and other classes of participle sets, each other class of participle set comprises at least one other class participle determined according to the main-class participle, and the target entry list is the entry list in which the main-class participle set and the other classes of participle sets both contain the participles of the corresponding classes.
12. The apparatus according to any one of claims 9 to 11, wherein the interface registration request includes a service type of the target object, the first lexicon includes a plurality of first sub-lexicons, each first sub-lexicon includes a phrase corresponding to each interface information in a plurality of checked and confirmed interface information under one service type; the audit module is further configured to:
after interface information of an interface to be registered submitted by a target object is acquired from an interface registration request, searching a target first sub-lexicon matched with the service type of the target object; and determining whether a target phrase matched with the interface to be registered exists in the target first sub-word library.
13. A computer device, comprising:
at least one processor, and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the at least one processor implementing the method of any one of claims 1-8 by executing the instructions stored by the memory.
14. A storage medium storing computer instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 8.
CN202010337472.1A 2020-04-26 2020-04-26 Interface information auditing method and device, computer equipment and storage medium Active CN111581344B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337472.1A CN111581344B (en) 2020-04-26 2020-04-26 Interface information auditing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337472.1A CN111581344B (en) 2020-04-26 2020-04-26 Interface information auditing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111581344A true CN111581344A (en) 2020-08-25
CN111581344B CN111581344B (en) 2024-07-23

Family

ID=72119252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337472.1A Active CN111581344B (en) 2020-04-26 2020-04-26 Interface information auditing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111581344B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650802A (en) * 2020-12-22 2021-04-13 浪潮云信息技术股份公司 Butt joint method and device for government affair data
CN113688213A (en) * 2021-02-09 2021-11-23 鼎捷软件股份有限公司 Application program interface service searching system and searching method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346884A (en) * 2011-09-19 2012-02-08 北京信城通数码科技有限公司 Automatic review system and method for trade subject qualification of internet drugs
CN103167056A (en) * 2013-01-31 2013-06-19 中国科学院计算机网络信息中心 Domain name registration method based on automatic audit
CN105139141A (en) * 2015-11-02 2015-12-09 浪潮软件股份有限公司 Method and system for automatically checking enterprise name
CN107483420A (en) * 2017-07-31 2017-12-15 北京百悟科技有限公司 Signal auditing device and method
CN109542644A (en) * 2018-11-19 2019-03-29 北京小米移动软件有限公司 Application programming interface call method and device
CN109831682A (en) * 2018-12-28 2019-05-31 广州华多网络科技有限公司 Signal auditing method, device, electronic equipment and storage medium
CN110580308A (en) * 2018-05-22 2019-12-17 北京京东振世信息技术有限公司 information auditing method and device, electronic equipment and storage medium
CN110674255A (en) * 2019-09-24 2020-01-10 湖南快乐阳光互动娱乐传媒有限公司 Text content auditing method and device
CN110782998A (en) * 2019-10-12 2020-02-11 平安医疗健康管理股份有限公司 Data auditing method and device, computer equipment and storage medium
WO2020077895A1 (en) * 2018-10-16 2020-04-23 深圳壹账通智能科技有限公司 Signing intention determining method and apparatus, computer device, and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102346884A (en) * 2011-09-19 2012-02-08 北京信城通数码科技有限公司 Automatic review system and method for trade subject qualification of internet drugs
CN103167056A (en) * 2013-01-31 2013-06-19 中国科学院计算机网络信息中心 Domain name registration method based on automatic audit
CN105139141A (en) * 2015-11-02 2015-12-09 浪潮软件股份有限公司 Method and system for automatically checking enterprise name
CN107483420A (en) * 2017-07-31 2017-12-15 北京百悟科技有限公司 Signal auditing device and method
CN110580308A (en) * 2018-05-22 2019-12-17 北京京东振世信息技术有限公司 information auditing method and device, electronic equipment and storage medium
WO2020077895A1 (en) * 2018-10-16 2020-04-23 深圳壹账通智能科技有限公司 Signing intention determining method and apparatus, computer device, and storage medium
CN109542644A (en) * 2018-11-19 2019-03-29 北京小米移动软件有限公司 Application programming interface call method and device
CN109831682A (en) * 2018-12-28 2019-05-31 广州华多网络科技有限公司 Signal auditing method, device, electronic equipment and storage medium
CN110674255A (en) * 2019-09-24 2020-01-10 湖南快乐阳光互动娱乐传媒有限公司 Text content auditing method and device
CN110782998A (en) * 2019-10-12 2020-02-11 平安医疗健康管理股份有限公司 Data auditing method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112650802A (en) * 2020-12-22 2021-04-13 浪潮云信息技术股份公司 Butt joint method and device for government affair data
CN113688213A (en) * 2021-02-09 2021-11-23 鼎捷软件股份有限公司 Application program interface service searching system and searching method thereof
CN113688213B (en) * 2021-02-09 2023-09-29 鼎捷软件股份有限公司 Application program interface service searching system and searching method thereof

Also Published As

Publication number Publication date
CN111581344B (en) 2024-07-23

Similar Documents

Publication Publication Date Title
US20210264109A1 (en) Stylistic Text Rewriting for a Target Author
US10417350B1 (en) Artificial intelligence system for automated adaptation of text-based classification models for multiple languages
US11681944B2 (en) System and method to generate a labeled dataset for training an entity detection system
US8296124B1 (en) Method and apparatus for detecting incorrectly translated text in a document
US8972336B2 (en) System and method for mapping source columns to target columns
US10832004B2 (en) Method, system, and computer program for artificial intelligence answer
US20170374093A1 (en) Robust Matching for Identity Screening
WO2019224629A1 (en) Training data expansion for natural language classification
US10437933B1 (en) Multi-domain machine translation system with training data clustering and dynamic domain adaptation
CN111459977B (en) Conversion of natural language queries
KR101509727B1 (en) Apparatus for creating alignment corpus based on unsupervised alignment and method thereof, and apparatus for performing morphological analysis of non-canonical text using the alignment corpus and method thereof
CN110929125A (en) Search recall method, apparatus, device and storage medium thereof
CN104008093A (en) Method and system for chinese name transliteration
CN113961768B (en) Sensitive word detection method and device, computer equipment and storage medium
CN111581344B (en) Interface information auditing method and device, computer equipment and storage medium
CN110704390A (en) Method, device, electronic equipment and medium for obtaining server maintenance script
US11409660B1 (en) Systems and methods for translating address strings to standardized addresses
CN116955720A (en) Data processing method, apparatus, device, storage medium and computer program product
US11822589B2 (en) Method and system for performing summarization of text
US11481547B2 (en) Framework for chinese text error identification and correction
CN117435189A (en) Test case analysis method, device, equipment and medium of financial system interface
US11321529B2 (en) Date and date-range extractor
CN113204613B (en) Address generation method, device, equipment and storage medium
US11341190B2 (en) Name matching using enhanced name keys
CN115481031A (en) Southbound gateway detection method, device, equipment and medium

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