Skip to content

puffer-git/icon_dapp_backend

Repository files navigation

icon_dapp_backend

ICON DAPP Backend

Install

bundle install

REST API

Get a specific Thing

Request

GET /apis/license/:licenseId

curl -i -H 'Accept: application/json' http://localhost:4000/apis/license/0

Response

HTTP/1.1 200 OK
Status: 200 OK
Connection: close
Content-Type: application/json

{
    "0": "0",
    "1": "Exclusive",
    "2": "0xcD889634eb2495CAB8816eA853b6838f3921165d",
    "3": "1737331200",
    "4": "1738281600",
    "5": "Test License for the first IP Token",
    "6": true,
    "**length**": 7,
    "iconTokenId": "0",
    "licenseType": "Exclusive",
    "owner": "0xcD889634eb2495CAB8816eA853b6838f3921165d",
    "startDate": "1737331200",
    "endDate": "1738281600",
    "usageRight": "Test License for the first IP Token",
    "enabled": true
}

GET /apis/license/indices/:iconId

curl -i -H 'Accept: application/json' http://localhost:4000/apis/license/indices/0

Response

HTTP/1.1 200 OK
Status: 200 OK
Connection: close
Content-Type: application/json

[
    "0"
]

GET /apis/ip-token/ownerOf/:iconId

curl -i -H 'Accept: application/json' http://localhost:4000/apis/ip-token/ownerOf/0

Response

HTTP/1.1 200 OK
Status: 200 OK
Connection: close
Content-Type: application/json

{
    "owner": "0xcD889634eb2495CAB8816eA853b6838f3921165d"
}

GET /apis/ip-token/tokenURI/:iconId

curl -i -H 'Accept: application/json' http://localhost:4000/apis/ip-token/tokenURI/0

Response

HTTP/1.1 200 OK
Status: 200 OK
Connection: close
Content-Type: application/json

{
    "uri": "QmPvLqACBkJuPn4mZv4LLjELkd8seNzWNbTDyxSMLWyC6n"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published