Skip to content

ChaudharyRaman/NFT_Backend

Repository files navigation

NFT_Backend

API Reference

Register User

  POST /nfts/login
Body Type Description
id string Required.
password string Required.
  • For Testing

  • id = abc123

  • password = password

  • All Routes are Protected (Must Provide Bearer Token)

Get AllNfts (Protected)

  GET /nfts/
  • Response - List Of ALL Token IDs

Get NftByID (Protected)

  GET /nfts/:id
  • Response - TokenURI of nft with tokenID [id]

Create NFT (Protected)

  POST /nfts
Body Type Description
tokenURI string Required.

Update NFT (Protected)

  PUT /nfts/:id
Body Type Description
tokenURI string Required.

DELETE NFT (Protected)

  DELETE /nfts/:id

NOTE

  • NFT metadata is stored on cloud platform pinata
  • Update the nft-metadata.json and upload it on pinata Cloud and provide the URI (like in example) for Creating and Updating NFT.

nft-metadata.json

{
  "attributes": [
    {
      "color": "Blue",
      "value": "ABC"
    }
  ],
  "description": "This is a new testing URI.",
  "image": "https://gateway.pinata.cloud/ipfs/QmX73xZm5rDgK7G4ZdnKLhjYL6kxATVAV5fGT2NkyhtMrw",
  "name": "Image"
}

Releases

No releases published

Packages

No packages published