Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 604 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 604 Bytes

Iodine Backend

Before start

npm install

Start API server

nodemon ./bin/www

Request Format

Get Info

GET http://localhost:3000/asset/info/<asset-ID>

Update Status

POST http://localhost:3000/asset/update

id: <asset-ID>,
condition: "new condition"

Transfer

  • Note that assets cannot be double transferred POST http://localhost:3000/asset/transfer
id: <asset-ID>
receiver: <receiver-address>,

Publish

POST http://localhost:3000/asset/publish

name: "Apple",
condition: "Fresh and juicy",
avail: 0    // 0: available, 1: unavailable, 2: removed