Skip to content

Backend for Sqwid, an NFT marketplace running on the Reef chain that features per-item customizable royalties.

License

Notifications You must be signed in to change notification settings

sqwid-app/sqwid-backend

Repository files navigation

Sqwid backend

Run Locally

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 _

API docs (not up to date)

Nonce

GET /api/nonce

Auth

POST /api/auth

BODY:

{
    address: '',
    signature: ''
}

Create

Collection

POST /api/create/collection

HEADERS

Authorization: Bearer <jwt>

BODY

{
    name: '',
    description: '',
    fileData: [] // the image
}

Collectible

POST /api/create/collectible

HEADERS

Authorization: Bearer <jwt>

BODY

{
    name: '',
    description: '',
    fileData: [] // the media (image / video / audio)
}

Get

Collections

By owner
GET /api/get/collections/owner/:address
By name (returns all collections whose name starts with the given string)
GET /api/get/collections/name/:name
By ID
GET /api/get/collections/id/:id

About

Backend for Sqwid, an NFT marketplace running on the Reef chain that features per-item customizable royalties.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •