A Dockerized interface for the https://github.com/CPES-Power-and-Energy-Systems/data-sharing-barter-incentives-rest-api Datamarket Server API.
The objective of this API software package is to provide an in-between assistance in the communication between the Datamarket client and the Datamarket Server API. Its goal is mainly to abstract the client from the complexity of the underlying Blockchain and IDS Dataspace technologies required to interact with the platform.
The client wallet will still be located in the client's machine, but the client will not need to interact with it directly.
Caution
This package should be used exclusively for testing use cases purposes in testnet environments ONLY.
You need first to get access to the PREDICO (Data Sharing / Barter Incentives) client repository and clone it to your local machine.
git clone https://github.com/CPES-Power-and-Energy-Systems/predico-data-sharing-barter-client.git
Build docker image:
$ docker-compose build
Run docker container image. This will start the python client API simulation tool:
$ docker-compose up
The documentation for the Predico Datamarket API can be found at: http://localhost:8000/docs
The UI for the Predico Datamarket API can be found at: http://localhost:8000 https://github.com/jyotiv2023/admindash?ref=reactjsexample.com
The following steps are required to run the simulation tool and interact with the Predico Datamarket API. It's advised to run the steps in the order they are presented.
You may use POSTMAN in order to interact with the API. The Postman collection can be found at: https://documenter.getpostman.com/view/391645/2s9YJZ5Qc7
- Step 1: [USER] - Register a new user
- Step 2: Validate email address
- Step 3: [USER] - Login
- Step 4: [WALLET] - Fund wallet
- Step 5: [WALLET] - Register Wallet in the market
- Step 6: [RESOURCE] - Create a new resource
- Step 7: [MARKET] - Get list of sessions
- Step 8: [MARKET] - Bid in an open session
- Step 9: [MARKET] - Get market bid