Build Image docker build . -t sqwid-server
Run Image docker run -p 8080:8080 sqwid-server
Change Env docker run -p 8080:8080 --env NETWORK=reef_testnet sqwid-server
_ pass env vars on runtime using --env flag _
GET /api/nonce
POST /api/auth
BODY:
{
address: '',
signature: ''
}
POST /api/create/collection
HEADERS
Authorization: Bearer <jwt>
BODY
{
name: '',
description: '',
fileData: [] // the image
}
POST /api/create/collectible
HEADERS
Authorization: Bearer <jwt>
BODY
{
name: '',
description: '',
fileData: [] // the media (image / video / audio)
}
GET /api/get/collections/owner/:address
GET /api/get/collections/name/:name
GET /api/get/collections/id/:id