Method to validate application programming interface (API) leveraging non fungible token (NFT)
An architecture is disclosed for submission and recordation of application programmer interfaces (APIs) using non-fungible tokens (NFTs) inserted into a blockchain. The API-NFT pairings are validated by nodes of the network. The system automatically searches for and generate NFTs for APIs and/or intermediate layers on a computer network based on metadata associated with the API and a hash of the API/intermediate layer. The API-NFT pair binding ensures that developers/consumers are ingesting APIs that are secure and do not include malicious rules. Furthermore, performance monitoring of the API is performed using artificial intelligence (AI) and machine learning (ML), including long short term memory (LSTM) neural networks.
1 . A system including a performance monitoring engine that uses machine learning (ML) to activate or deactivate access by a devOp user computer to an API service, the system comprising:
an API performance analyzer module configured to:
measure, via a processor, a plurality of performance metrics of the API service;
analyze, via the processor, the measured performance metrics using a long short term memory (LSTM) neural network in real-time, wherein the plurality of performance metrics of the API service comprise request per minute (RPM), average and max latency, errors per minute, API uptime, and memory and CPU usage; and
generate, via the processor, one or more commands based on output of the LSTM neural network, wherein the one or more commands comprise an enable command or a disable command;
an API-NFT orchestration module configured to:
receive, via the processor, the one or more commands from the API performance analyzer module; and
based on the one or more commands, enable or disable, via the processor, access by the devOp user computer to the API service associated with a smart contract, generated by a API-NFT smart contract module, regulating access through an API gateway wherein the smart contract comprises a first rule for registering the devOp user computer, a second rule for accessing the API service, wherein the API service includes API interfaces and method calls, a third rule for the devOp user computer's onboarding policy to the API service, and a fourth rule for firewall rules; and
an API-NFT repository configured to:
store the smart contract for the API service based on a NFT associated with the API service, wherein the NFT is an API-NFT; and
bind the API-NFT with the smart contract to authenticate access to the API service wherein the output of the LSTM neural network dynamically interacts with the API-NFT to authenticate and regulate access to the API service.
2 . The system of claim 1 , wherein the API-NFT certifies the API service to be authentic using a cryptographic hash, and wherein the API-NFT is an identifiable data block stored on a blockchain, and wherein the blockchain is a digital distributed ledger.
3 . The system of claim 1 , wherein the API-NFT repository is configured to: certify authenticity of the API service using a cryptographic hash; and enable the devOp user computer to consume the API service through the API gateway.
4 . The system of claim 1 , wherein the one or more commands generated by the API performance analyzer module is the enable command when the LSTM neural network output indicates the API service is performing within a predetermined range, and wherein the enable command causes the API-NFT orchestration module to enable access by the devOp user computer to the API service.
5 . The system of claim 1 , wherein the one or more commands generated by the API performance analyzer module is the disable command when the LSTM neural network output indicates the API service is performing outside of a predetermined range, and wherein the disable command causes the API-NFT orchestration module to disable access by the devOp user computer to the API service.
6 . The system of claim 1 , wherein the smart contract is configured to track monetization based on the plurality of performance metrics measured by the API performance analyzer module.
7 . The system of claim 1 , wherein the smart contract is configured with a first rule that causes the API-NFT orchestration module to enable or disable access by the devOp user computer to the API service based on an authorization level of a devOp user logged into the devOp user computer.
8 . The system of claim 7 , wherein a first devOp user has a different authorization level than a second devOp user, and the devOp user computer is enabled access to API service for the first devOp user but not for the second devOp user.
9 . A method comprising:
measuring, by an API performance analyzer module in a system, a plurality of performance metrics of the API service, wherein the plurality of performance metrics of the API service comprise request per minute (RPM), average and max latency, errors per minute, API uptime, and memory and CPU usage;
generating, by the API performance analyzer module, one or more commands based on analysis of the measured performance metrics, wherein the analysis of the measured performance metrics is performed by the API performance analyzer module using a long short term memory (LSTM) neural network in real-time, wherein the one or more commands comprise an enable command or a disable command, and wherein the one or more commands are generated based on output of the LSTM neural network;
receiving, by an API-NFT orchestration module in the system, the one or more commands from the API performance analyzer module;
based on the one or more commands, enabling or disabling, by the API-NFT orchestration module, access by a devOp user computer to the API service associated with a smart contract, generated by a API-NFT smart contract module, regulating access through an API gateway, wherein the smart contract comprises a first rule for registering the devOp user computer, a second rule for accessing the API service, wherein the API service includes API interfaces and method calls, a third rule for the devOp user computer's onboarding policy to the API service, and a fourth rule for firewall rules;
storing, by an API-NFT repository in the system, the smart contract, wherein the smart contract is for the API service based on a NFT associated with the API service, and wherein the NFT is an API-NFT; and
binding, by the API-NFT repository, the API-NFT with the smart contract to authenticate access to the API service, wherein the output of a long short term memory (LSTM) neural network of the API performance analyzer module interacts with the API-NFT to authenticate and regulate access to the API service.
10 . The method of claim 9 , wherein the API-NFT certifies the API service to be authentic using a cryptographic hash, and wherein the API-NFT is an identifiable data block stored on a blockchain, and wherein the blockchain is a digital distributed ledger.
11 . The method of claim 9 , wherein the one or more commands generated by the API performance analyzer module is the enable command when the LSTM neural network output indicates the API service is performing within a predetermined range, and wherein the enable command causes the API-NFT orchestration module to enable access by the devOp user computer to the API service.
12 . The method of claim 9 , wherein the one or more commands generated by the API performance analyzer module is the disable command when the LSTM neural network output indicates the API service is performing outside of a predetermined range, and wherein the disable command causes the API-NFT orchestration module to disable access by the devOp user computer to the API service.
13 . The method of claim 9 , wherein the plurality of performance metrics measured by the API performance analyzer module further comprises time to first hello world.
14 . A non-transitory, tangible computer medium storing computer-executable instructions that, when executed by one or more processors, cause a system to:
measure, by an API performance analyzer module in the system, a plurality of performance metrics of the API service;
generate, by the API performance analyzer module, one or more commands based on analysis of the measured performance metrics using a long short term memory (LSTM) neural network in real-time, wherein the analyzed performance metrics of the API service comprise request per minute (RPM), average and max latency, errors per minute, API uptime, and memory and CPU usage, wherein the one or more commands comprise an enable command or a disable command, and wherein the one or more commands are generated based on output of the LSTM neural network;
receive, by an API-NFT orchestration module in the system, the one or more commands from the API performance analyzer module;
based on the one or more commands, enable or disable, by the API-NFT orchestration module, access by a devOp user computer to the API service associated with a smart contract, generated by a API-NFT smart contract module, regulating access through an API gateway, wherein the smart contract comprises a first rule for registering the devOp user computer, a second rule for accessing the API service, wherein the API service includes API interfaces and method calls, a third rule for the devOp user computer's onboarding policy to the API service, and a fourth rule for firewall rules;
storing, by an API-NFT repository in the system, the smart contract, wherein the smart contract is for the API service based on a NFT associated with the API service, and wherein the NFT is an API-NFT; and
binding, by the API-NFT repository, the API-NFT with the smart contract to authenticate access to the API service, wherein the analysis output of the LSTM neural network dynamically interacts with the API-NFT in real-time to authenticate and regulate access to the API service.
15 . The non-transitory, tangible computer medium of claim 14 , further storing computer-executable instructions that, when executed by the one or more processors, cause the system to:
certify, by the API-NFT repository, authenticity of the API using a cryptographic hash; and
enable, by the API-NFT repository, the devOp user computer to consume the API service through the API gateway.
16 . The non-transitory, tangible computer medium of claim 14 , wherein the API-NFT certifies the API service to be authentic using a cryptographic hash, and wherein the API-NFT is an identifiable data block stored on a blockchain, and wherein the blockchain is a digital distributed ledger.