Skip to content

Node.js code implementing an API that exposes the functionality of the smart contracts

License

Notifications You must be signed in to change notification settings

DataPortsProject/data-governance-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-governance-api

This module serves as the Hyperledger Fabric client for the Data Governance component and provides a REST API for interacting with the Data Governance chaincodes. Additionally, it requires the presence of the Data Governance Hyperledger Fabric network.

Prerequisites

  • Node.js (version>=8)
  • npm (version>=5)

Clone the repository:

git clone https://github.com/DataPortsProject/data-governance-api.git

Navigate to the project directory:

 cd data-governance-api

Install the dependencies:

 npm install

To start the server, use the following command:

 npm start

The server will start listening on port 9999. You can access the API endpoints the following URL:

  http://localhost:9999

To view the Swagger documentation, navigate to:

  http://localhost:9999/api-docs

Integration with other Dataports components:

  cd /app/SemanticInteroperability

Replace the URLs in the files dataSourceIDs.js, entities.js, and subscription.js according to your on-demand-component.

Replace the URL in the file getIMToken.js according to your Dataports Keycloak deployment.

About

Node.js code implementing an API that exposes the functionality of the smart contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published