Open yangwao opened 1 year ago
@yangwao @vikiival May I take on this task? My brief design is:
tech stack cf-workers + cf-d1
request body
{"uid": "0x*******"}
APIs
GET /watchlist/:chain/:type
- user's NFT/collection list in the watchlist, includes pagination.GET /watchlist/:chain/:type/:id
- has the current user added this entity to the watchlist.POST /watchlist/:chain/:type/:id
- add to user's watchlist.DELETE /watchlist/:chain/:type/:id
- remove from user's watchlist.Sure, give it shot!
On Sun, Dec 3, 2023, 08:04 newraina @.***> wrote:
@yangwao https://github.com/yangwao @vikiival https://github.com/vikiival May I take on this task? My brief design is:
tech stack cf-workers + cf-d1
request body
{"uid": "0x***"}
APIs
- GET /watchlist/:chain/:type - user's NFT/collection list in the watchlist, includes pagination.
- GET /watchlist/:chain/:type/:id - has the current user added this entity to the watchlist.
- POST /watchlist/:chain/:type/:id - add to user's watchlist.
- DELETE /watchlist/:chain/:type/:id - remove from user's watchlist.
— Reply to this email directly, view it on GitHub https://github.com/kodadot/workers/issues/64#issuecomment-1837390835, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABM5POMGJNNGAB4RSO2YYHTYHQP7BAVCNFSM6AAAAAAW2XCRMWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZXGM4TAOBTGU . You are receiving this because you were mentioned.Message ID: @.***>
I recall we had designed packs/lists back then using Textile but then we pulled out (don't even recall why) and now it's probably time to recycle ♻️ implementation (if we can) so people can create lists?
This could be used of course in a multidimensional way. I.e. ppl sorting stuff like on GoodReads, i.e. Twitter lists are working, i.e. 📂 folders
Basically every folder/list something needs to have two entities.
MainEntity - packs / lists / folders ItemEntity - pack_items ...
Where MainEntity
needs to have fields like who, name, other meta (created, updated, amount of items, etc, chain)
ItemEntity
has foreign key to the MainEntity
and other fields (type) meta (created, updated)
At current state #227 is implemented incorrectly .)