Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite /v1/nfts endpoint #147

Open
meelrossi opened this issue Aug 21, 2024 · 0 comments
Open

Rewrite /v1/nfts endpoint #147

meelrossi opened this issue Aug 21, 2024 · 0 comments

Comments

@meelrossi
Copy link

meelrossi commented Aug 21, 2024

Add new endpoint in the marketplace server to fetch all items

It should accept all same filters as the current endpoint in the nft server

Filters

  • first: Limit the number of results. Type: number.

  • skip: Skip results. Type: number.

  • sortBy: Sort results. Possible values: newestnamerecently_listedrecently_soldcheapest.

  • category: Filter by NFTCategory. Possible values: parcelestatewearableens.

  • owner: Filter by owner. Type: address.

  • isOnSale: Only return results that have an open, non-expired listing. Type: boolean.

  • search: Free text search. Type: string.

  • isLand: Only return results that their category is either parcel or estate.

  • isWearableHead: Only return results that their category is wearable and are part of the avatar's head. Type boolean.

  • isWearableAccessory: Only return results that their category is wearable and accessories (not a part of the body).

  • isWearableSmart: Only return smart wearables. Type boolean.

  • wearableCategory: Filter results by WearableCategory. Possible values: eyebrows,eyes,facial_hair,hair,mouth,upper_body,lower_body,feet,earring,eyewear,hat,helmet,mask,tiara,top_headskinhands_wear.

  • wearableGender: Filter results by GenderFilterOption. It supports multiple values by adding the query param multiple times. Possible values: malefemaleunisex.

  • emoteCategory: Filter results by EmoteCategory. Possible values: dancestuntgreetingsfunposesreactionshorrormiscellaneous.

  • emoteGender: Filter results by GenderFilterOption. It supports multiple values by adding the query param multiple times. Possible values: malefemaleunisex.

  • emotePlayMode: Filter results by EmotePlayMode. It supports multiple values by adding the query param multiple times. Possible values: simpleloop

  • contractAddress: Filter results by contract address. It supports multiple values by adding the query param multiple times. Type: address.

  • creator: Filter results by the creator address. It supports multiple values by adding the query param multiple times. Type: string.

  • tokenId: Filter results by tokenId. Type: string.

  • itemRarity: Filter results by Rarity. It supports multiple values by adding the query param multiple times. Possible values: uniquemythiclegendaryepicrareuncommoncommon.

  • itemId: Filter results by itemId. Type string.

  • network: Filter results by Network. Possible values: ETHEREUMMATIC.

  • isOnRent: Filter results by NFTs that are on rent. Possible values: truefalse

  • rentalStatus: Filter results by Rental status. Can be used only when querying NFTs that are on rent using the isOnRent flag. Possible values: openexecutedclaimedcancelled.

  • minPrice: Filter results by minimun price. Type: number

  • maxPrice: Filter results by max price. Type: number

  • adjacentToRoad: Filter land that is next to a road. Type: boolean

  • minDistanceToPlaza: Filter land that has a distance to a plaza of minimun this value. Type: number

  • maxDistanceToPlaza: Filter land that has a distance to a plaza of maximun this value. Type number

  • minEstateSize: Filter results by minimum amount of parcels in the Estate. Type: number

  • maxEstateSize: Filter results by maximum amount of parcels in the Estate. Type: number

  • rentalDays: Filter lands that have the possibility to be rented at least one of the days listed on rentalDays. Type: number. Repeatable

@meelrossi meelrossi changed the title Add /v1/nfts endpoint in marketplace-server Rewrite /v1/nfts endpoint Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant