Car asset tracking application build using hyperledger fabric
This demo application contains code for smart contract for car tracking application and APIs to invoke or query smart contract based methods.
-
CreateCar - this method is used to create a car asset on Blockchain ledger after with car's manufacturing details
-
DeliverCar - this method is used to perform a delivery transaction on Blockchain after delivering car to the dealer
-
SellCar - this method is used to perform the sell transaction on Blockchain after the car is sold to customer
-
ReadCar - this method is used to fetch car's current world state
There are 6 APIs in this application for car tracking management and user management:
-
/register - to register a new user in the application using Fabric-CA
-
/users/login - for authorising user's credentials and creating a session for the application
-
/createCar - to invoke the CreateCar method from the smart contract
-
/deliverCar - to invoke the DeliverCar method from the smart contract
-
/sellCar - to invoke the SellCar method from the smart contract
-
/getCarDetails - to call the ReadCar query method from the smart contract