CN111367793A - API quality detection system and method based on block chain intelligent contract - Google Patents
API quality detection system and method based on block chain intelligent contract Download PDFInfo
- Publication number
- CN111367793A CN111367793A CN202010114203.9A CN202010114203A CN111367793A CN 111367793 A CN111367793 A CN 111367793A CN 202010114203 A CN202010114203 A CN 202010114203A CN 111367793 A CN111367793 A CN 111367793A
- Authority
- CN
- China
- Prior art keywords
- api
- service
- provider
- quality detection
- chain
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 54
- 238000000034 method Methods 0.000 title claims description 12
- 238000012360 testing method Methods 0.000 claims description 22
- 238000012545 processing Methods 0.000 claims description 12
- 238000005516 engineering process Methods 0.000 claims description 11
- 238000013475 authorization Methods 0.000 claims description 9
- 230000008520 organization Effects 0.000 claims description 4
- 238000007689 inspection Methods 0.000 claims 6
- 239000008186 active pharmaceutical agent Substances 0.000 description 161
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012937 correction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000003245 working effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3696—Methods or tools to render software testable
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an API (application program interface) quality detection system based on a block chain intelligent contract, which comprises an alliance chain, an API provider client, an API third-party quality detection mechanism client and an API user client, wherein the API provider client and the API third-party quality detection mechanism client are communicated with a central service and the alliance chain through a network, and the API user client shares API information through the alliance chain; also discloses an API quality detection method based on the intelligent contract of the block chain; by utilizing the characteristics of data non-tampering and tracing on the block chain, the loss caused by metadata change of an API provider, error of API return data, API inaccessibility and the like at present can be solved, and the business system crash of a downstream API user caused by random API change of the API provider is avoided.
Description
Technical Field
The invention relates to an API quality detection system and method based on a block chain intelligent contract.
Background
The name application architecture in API is a predefined function or convention for linking different components of a software system in order to provide the ability for applications and developers to access a set of routines based on certain software or hardware without accessing the native code or understanding the details of the internal workings.
In the current API market, more, a platform side provides an API metadata description standard for reference by an API provider, the API provider completes customization and modification according to an access standard, the platform side accesses the API regularly to check the validity and quality of the API, and the data quality of the API is generally determined by an API user according to the actual service of the API user.
However, since the API markets are numerous and different in standards, the API provider needs to adapt to each API market to meet the standards, which increases the burden on the API provider; moreover, since the API has the characteristic of incapability of tracing, if tracing problem disputes occur, the requirement on the public confidence of the platform is high, the API correction by the API provider is usually stored in the database, the API change needs to be recorded in the database one by one depending on the visibility of the platform, and the data in the database needs to be artificially ensured not to be tampered, which has a certain risk; finally, the APIs provided on the API platforms, such as weather and four-factor authentication, require that the quality of data and results of API users is high or low during the use of the API platforms, and the quality requirements of each API user are different, so that the quality of the returned data of the API also lacks a uniform quality standard.
Disclosure of Invention
The invention aims to provide a technical scheme of an API quality detection system based on a block chain intelligent contract aiming at the defects in the prior art, which utilizes the characteristics of data on a block chain that data cannot be tampered and traced, can solve the loss caused by the change of metadata of the existing API provider, the error of API return data, the inaccessible API and the like, and can make clear the responsible party through the tracing function of the block chain.
In order to solve the technical problems, the invention adopts the following technical scheme:
an API quality detection system based on a block chain intelligent contract is characterized in that: the API user client side shares API information through the alliance chain, and the alliance chain is composed of a plurality of service nodes connected with the network and a consensus service cluster; the block chain technology of the alliance chain is adopted, API data are shared between organizations trusted among alliance chains, a third-party quality detection mechanism is introduced, besides the state detection of the original API, the third-party quality detection mechanism is a standard quality system established for the quality of the API data, the API shared among the alliance chains is guaranteed to be healthy and high in quality, due to the fact that the block chain technology of the alliance chain has the characteristic of traceability, the historical record of API change can be traced, and a credible basis can be provided when business fault responsibility division caused by the API change is processed.
Furthermore, the center service is provided with a server connected with the network, and the server is provided with a storage module and a processing module for managing and storing user information, alliance chain authorization information, API metadata information and conventional service information; the alliance chain authorization information belongs to an organization authorization system, trusted organizations can share API information from alliance chains through the authorization information, and a storage module exists in a database mode and can store various information in the system.
Further, the alliance chain authorizes and issues certificates through CA service; the credibility of the alliance chain and the characteristics of data tamper-proof and easy traceability are guaranteed.
Further, the consensus service cluster is arranged to form a block chain, and the service node receives and sends the account book change information in the block chain through the network.
The API quality detection method based on the block chain intelligent contract is characterized by comprising the following steps: the method comprises the following steps:
A) the API provider client side inputs API metadata and self-checking:
(A 1) Inputting API metadata;
(A 2) Inputting a test case of API self-checking;
(A 3) Sending a request to a central service processing module;
(A 4) The central service processing module feeds back a test result;
(A 5) If the test result fed back by the service center processing module is qualified, storing the API metadata into the center service storage module, and if the test result is unqualified, modifying the API metadata by an API provider and returning to the step A1 to re-input the correct API metadata;
B) the API third-party quality detection mechanism performs quality detection on the API which passes the API provider self-check:
(B 1) Acquiring an API list passing through the self-check of an API provider from a central service storage module;
(B 2) Inputting a test case aiming at a service scene;
(B 3) Sending a request to a central service;
(B 4) The central service feeds back a detection result;
(B 5) If the detection results fed back by the central service pass, the API list is stored in the alliance chain, if the detection results do not pass, the API list is sent back to the central service, the central service feeds back the results to the API provider client, and the API provider modifies the results and re-inputs correct API metadata;
C) the API users share the API list which passes the quality detection from the alliance chain through the block chain technology.
Further, in step B, the quality detection is performed on the returned data of the API, and whether the field completeness of the returned data from the API and the returned data meet the business meaning is performed.
Further, in steps B5 and C, the API list of the passed test case is written into the federation chain, and the API is shared to the organizations in the federation chain by using the characteristics of the federation chain, so as to construct a trusted and high-quality API platform.
When the API is changed every time, the API needs to be subjected to self-checking by an API provider and detection by a third-party quality detection mechanism, and an API list detected by an existing test case is stored in a alliance chain, so that the API is guaranteed to be downward compatible every time of updating, and the service system crash of a downstream API user caused by random API change of the API provider is avoided.
Due to the adoption of the technical scheme, the invention has the following beneficial effects:
the invention adopts block chain technology of alliance chain, shares API data to the trusted organizations among alliance chain, introduces third party quality detection mechanism, besides the state detection of the original API, the method is a standard quality system established for the quality of API data, ensures that the API shared among alliance chains is healthy and high-quality, because the block chain technology of the alliance chain has the characteristic of traceability, the history of API change can be traced, when the service fault responsibility division caused by the API change is processed, a credible basis can be provided, when the API is changed every time, the API needs to be detected by an API provider self-check mechanism and a third-party quality detection mechanism, the API list detected by the existing test case is stored in the alliance chain, so that the API is guaranteed to be downward compatible when being updated every time, and the business system crash of a downstream API user caused by the fact that the API is randomly changed by an API provider is avoided.
The invention utilizes the characteristics of data on the block chain that the data can not be tampered and traced, can solve the loss caused by the change of the metadata of the API provider, the error of the API returned data, the inaccessible API and the like at present, and can make clear the responsible party by the tracing function of the block chain.
Drawings
The invention will be further described with reference to the accompanying drawings in which:
FIG. 1 is a system diagram of an API quality detection system based on a blockchain intelligent contract according to the present invention;
FIG. 2 is a flow chart of the API quality detection system of the present invention.
Detailed Description
As shown in fig. 1 and fig. 2, the API quality detection system based on the blockchain intelligent contract includes a federation chain, an API provider client, an API third-party quality detection mechanism client, and an API consumer client, where the API provider client and the API third-party quality detection mechanism client both communicate with a central service and the federation chain through a network, the API consumer client shares API information through the federation chain, and the federation chain is composed of a plurality of service nodes connected to the network and a consensus service cluster; the block chain technology of the alliance chain is adopted, API data are shared between organizations trusted among alliance chains, a third-party quality detection mechanism is introduced, besides the state detection of the original API, the third-party quality detection mechanism is a standard quality system established for the quality of the API data, the API shared among the alliance chains is guaranteed to be healthy and high in quality, due to the fact that the block chain technology of the alliance chain has the characteristic of traceability, the historical record of API change can be traced, and a credible basis can be provided when business fault responsibility division caused by the API change is processed.
The central service is provided with a server connected with the network, and the server is provided with a storage module and a processing module for managing and storing user information, alliance chain authorization information, API metadata information and conventional service information; the alliance chain authorization information belongs to an organization authorization system, trusted organizations can share API information from alliance chains through the authorization information, and a storage module exists in a database mode and can store various information in the system.
The alliance chain authorizes and signs and issues certificates through CA service; the credibility of the alliance chain and the characteristics of data tamper-proof and easy traceability are guaranteed.
The consensus service clusters are arranged to form a block chain, and the business node receives and sends the account book change information in the block chain through the network.
The API quality detection method based on the block chain intelligent contract comprises the following steps:
A) the API provider client side inputs API metadata and self-checking:
(A 1) Inputting API metadata;
(A 2) Inputting a test case of API self-checking;
(A 3) Sending a request to a central service processing module;
(A 4) The central service processing module feeds back a test result;
(A 5) If the test result fed back by the service center processing module is qualified, storing the API metadata into the center service storage module, and if the test result is unqualified, modifying the API metadata by an API provider and returning to the step A1 to re-input the correct API metadata;
B) the API third-party quality detection mechanism performs quality detection on the API which passes the API provider self-check:
(B 1) Acquiring an API list passing through the self-check of an API provider from a central service storage module;
(B 2) Inputting a test case aiming at a service scene;
(B 3) Sending a request to a central service;
(B 4) The central service feeds back a detection result;
(B 5) If the detection results fed back by the central service pass, the API list is stored in the alliance chain, if the detection results do not pass, the API list is sent back to the central service, the central service feeds back the results to the API provider client, and the API provider modifies the results and re-inputs correct API metadata;
C) the API users share the API list which passes the quality detection from the alliance chain through the block chain technology.
In step B, the quality detection is performed on the returned data of the API, and whether the returned data conforms to the business meaning or not, based on the field completeness of the returned data from the API.
In steps B5 and C, the API list of the passed test case is written into the alliance chain, and the API is shared to the organization in the alliance chain by using the characteristics of the alliance chain, so that a credible and high-quality API platform is constructed.
When the API is changed every time, the API needs to be subjected to self-checking by an API provider and detection by a third-party quality detection mechanism, and an API list detected by an existing test case is stored in a alliance chain, so that the API is guaranteed to be downward compatible every time of updating, and the service system crash of a downstream API user caused by random API change of the API provider is avoided.
Due to the adoption of the technical scheme, the invention has the following beneficial effects:
the invention adopts block chain technology of alliance chain, shares API data to the trusted organizations among alliance chain, introduces third party quality detection mechanism, besides the state detection of the original API, the method is a standard quality system established for the quality of API data, ensures that the API shared among alliance chains is healthy and high-quality, because the block chain technology of the alliance chain has the characteristic of traceability, the history of API change can be traced, when the service fault responsibility division caused by the API change is processed, a credible basis can be provided, when the API is changed every time, the API needs to be detected by an API provider self-check mechanism and a third-party quality detection mechanism, the API list detected by the existing test case is stored in the alliance chain, so that the API is guaranteed to be downward compatible when being updated every time, and the business system crash of a downstream API user caused by the fact that the API is randomly changed by an API provider is avoided.
The invention utilizes the characteristics of data on the block chain that the data can not be tampered and traced, can solve the loss caused by the change of the metadata of the API provider, the error of the API returned data, the inaccessible API and the like at present, and can make clear the responsible party by the tracing function of the block chain.
The above is only a specific embodiment of the present invention, but the technical features of the present invention are not limited thereto. Any simple variations, equivalent substitutions or modifications based on the present invention to achieve substantially the same technical effects are within the scope of the present invention.
Claims (7)
1. An API quality detection system based on a block chain intelligent contract is characterized in that: the API user side client side shares API information through the alliance chain, and the alliance chain is composed of a plurality of service nodes connected with the network and an consensus service cluster.
2. The system of claim 1, wherein the API quality inspection system based on the blockchain intelligent contract comprises: the central service is provided with a server connected with a network, and the server is provided with a storage module and a processing module for managing and storing user information, alliance chain authorization information, API metadata information and conventional service information.
3. The system of claim 1, wherein the API quality inspection system based on the blockchain intelligent contract comprises: the federation chain is authorized and certificate issued by a CA service.
4. The system of claim 1, wherein the API quality inspection system based on the blockchain intelligent contract comprises: the consensus service cluster is arranged to form a block chain, and the service node receives and sends the account book change information in the block chain through a network.
5. The method for API quality inspection based on blockchain intelligent contracts according to claim 1, wherein: the method comprises the following steps:
A) the API provider client side inputs API metadata and self-checking:
(A 1) Inputting API metadata;
(A 2) Inputting a test case of API self-checking;
(A 3) Sending a request to a central service processing module;
(A 4) The central service processing module feeds back a test result;
(A 5) If the test result fed back by the service center processing module is qualified, storing the API metadata into the center service storage module, and if the test result is unqualified, modifying the API metadata by an API provider and returning to the step A1 to re-input the correct API metadata;
B) the API third-party quality detection mechanism performs quality detection on the API which passes the API provider self-check:
(B 1) Acquiring an API list passing through the self-check of an API provider from a central service storage module;
(B 2) Inputting a test case aiming at a service scene;
(B 3) Sending a request to a central service;
(B 4) The central service feeds back a detection result;
(B 5) If the detection results fed back by the central service pass, the API list is stored in the alliance chain, if the detection results do not pass, the API list is sent back to the central service, the central service feeds back the results to the API provider client, and the API provider modifies the results and re-inputs correct API metadata;
C) the API users share the API list which passes the quality detection from the alliance chain through the block chain technology.
6. The method of claim 5, wherein the API quality inspection method based on the blockchain intelligent contract comprises: in the step B, the quality detection is performed on the returned data of the API, and whether the returned data conforms to the business meaning or not and the field completeness of the returned data from the API.
7. The method of claim 5, wherein the API quality inspection method based on the blockchain intelligent contract comprises: in the steps B5 and C, the API list of the passed test case is written into the alliance chain, and the API is shared to the organization in the alliance chain by utilizing the characteristics of the alliance chain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010114203.9A CN111367793A (en) | 2020-02-25 | 2020-02-25 | API quality detection system and method based on block chain intelligent contract |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010114203.9A CN111367793A (en) | 2020-02-25 | 2020-02-25 | API quality detection system and method based on block chain intelligent contract |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111367793A true CN111367793A (en) | 2020-07-03 |
Family
ID=71206428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010114203.9A Pending CN111367793A (en) | 2020-02-25 | 2020-02-25 | API quality detection system and method based on block chain intelligent contract |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111367793A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328605A (en) * | 2020-11-26 | 2021-02-05 | 安徽继远软件有限公司 | Block chain-based power field safety data management method and system |
US11726773B2 (en) | 2021-05-19 | 2023-08-15 | Micro Focus Llc | Software supply chain quality control evaluation using blockchain |
CN116823026A (en) * | 2023-06-05 | 2023-09-29 | 北京世拓天宇科技有限公司 | Engineering data processing system and method based on block chain |
CN116823026B (en) * | 2023-06-05 | 2024-05-31 | 中建正大科技有限公司 | Engineering data processing system and method based on block chain |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015065398A1 (en) * | 2013-10-30 | 2015-05-07 | Hewlett-Packard Development Company, L.P. | Application programable interface (api) discovery |
US20180352033A1 (en) * | 2017-05-30 | 2018-12-06 | Verizon Patent And Licensing Inc. | Blockchain micro-services framework |
CN109063169A (en) * | 2018-08-17 | 2018-12-21 | 福建省农村信用社联合社 | A kind of customer data management system based on block chain |
CN109240900A (en) * | 2018-08-16 | 2019-01-18 | 北京京东尚科信息技术有限公司 | Block chain network service platform and its intelligent contract detection method, storage medium |
CN110489493A (en) * | 2019-08-27 | 2019-11-22 | 山东浪潮人工智能研究院有限公司 | A kind of cloudy data center services quality identification based on block chain |
-
2020
- 2020-02-25 CN CN202010114203.9A patent/CN111367793A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015065398A1 (en) * | 2013-10-30 | 2015-05-07 | Hewlett-Packard Development Company, L.P. | Application programable interface (api) discovery |
US20180352033A1 (en) * | 2017-05-30 | 2018-12-06 | Verizon Patent And Licensing Inc. | Blockchain micro-services framework |
CN109240900A (en) * | 2018-08-16 | 2019-01-18 | 北京京东尚科信息技术有限公司 | Block chain network service platform and its intelligent contract detection method, storage medium |
CN109063169A (en) * | 2018-08-17 | 2018-12-21 | 福建省农村信用社联合社 | A kind of customer data management system based on block chain |
CN110489493A (en) * | 2019-08-27 | 2019-11-22 | 山东浪潮人工智能研究院有限公司 | A kind of cloudy data center services quality identification based on block chain |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112328605A (en) * | 2020-11-26 | 2021-02-05 | 安徽继远软件有限公司 | Block chain-based power field safety data management method and system |
CN112328605B (en) * | 2020-11-26 | 2024-01-12 | 安徽继远软件有限公司 | Block chain-based power field security data management method and system |
US11726773B2 (en) | 2021-05-19 | 2023-08-15 | Micro Focus Llc | Software supply chain quality control evaluation using blockchain |
CN116823026A (en) * | 2023-06-05 | 2023-09-29 | 北京世拓天宇科技有限公司 | Engineering data processing system and method based on block chain |
CN116823026B (en) * | 2023-06-05 | 2024-05-31 | 中建正大科技有限公司 | Engineering data processing system and method based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11521176B2 (en) | Service flow system and service data processing method and apparatus | |
CN110121727B (en) | Method and system for providing authenticated, auditable and immutable input for intelligent contracts | |
JP6899065B2 (en) | Methods, equipment and non-transient computer readable storage media for the automatic generation of analysis results from blockchain data | |
US20200242595A1 (en) | Systems, methods, and apparatuses utilizing a blended blockchain ledger in a cloud service to address local storage | |
US10602202B1 (en) | System and techniques for digital data lineage verification | |
EP3953834A1 (en) | Systems, devices, and methods for dlt-based data management platforms and data products | |
CN109474578A (en) | Message method of calibration, device, computer equipment and storage medium | |
US20210049715A1 (en) | Blockchain-based data procesing method, apparatus, and electronic device | |
CN110266635B (en) | Vehicle information sharing method and device, computer readable medium and electronic equipment | |
CN107832602B (en) | Unified electronic seal system based on identification | |
CN111367793A (en) | API quality detection system and method based on block chain intelligent contract | |
CN112257085A (en) | Bidding processing method, system, equipment and medium based on block chain | |
CN104484620A (en) | Method for avoiding false declaration of sales volume and inventory in fast-selling sales management cloud system | |
CN113037505B (en) | Method and system for realizing trusted Web application | |
US10970741B2 (en) | Method and system for integrating audience data with a social media site | |
CN112507014B (en) | Data storage method, device and system based on credible account book database | |
CN116594989A (en) | Power exchange sharing data quality assessment method, medium and system based on blockchain intelligent contract | |
CN112364382B (en) | Credible time domain determination method of business record based on credible account book database | |
US20060294389A1 (en) | System and method for customer support | |
US10282441B2 (en) | Operation analytic repository central monitoring system | |
CN111144958B (en) | Electronic invoice issuing method, device and system based on block chain | |
US11768819B2 (en) | Data unblocking in application platforms | |
CN112989422B (en) | Block chain system assembling method, device, electronic equipment and storage medium | |
CN110602336B (en) | Call center management method and system based on block chain | |
US11567856B2 (en) | Secured code assignment and review engine |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20200703 |
|
WD01 | Invention patent application deemed withdrawn after publication |