mlabs-haskell / nft-marketplace

Other
2 stars 0 forks source link

Api integration #193

Closed Firdausi1 closed 2 years ago

Firdausi1 commented 2 years ago

@nrutledge we would need the nft endpoint to get the images showing as we'll need to get image by nft id.

Firdausi1 commented 2 years ago
Screenshot 2022-04-01 at 11 11 28

The header response doesn't return the pagination data

nrutledge commented 2 years ago

@Firdausi1 The headers are there in the response. I just tested both endpoints. I'm not sure why you aren't seeing it in what you are logging, but you can just check the networking tab in dev tools to see all the headers.

That being said, the Total-Count looks to be broken. You might have to just fetch the next page until the results are empty as opposed to relying on that header to determine if the next page needs to be fetched.

image

netlify[bot] commented 2 years ago

Deploy Preview for eloquent-goldwasser-e8351f ready!

Name Link
Latest commit 9cce1057d17f7da15bb57726a5eebc169af800ca
Latest deploy log https://app.netlify.com/sites/eloquent-goldwasser-e8351f/deploys/6256081c572712000a8860d3
Deploy Preview https://deploy-preview-193--eloquent-goldwasser-e8351f.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Firdausi1 commented 2 years ago

@nrutledge the test artist data isn't showing anymore although it returns with some data. Can't seem to figure out the problem