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

feat(xxx-api): update pagination configuration #117

Closed
kristjank opened this issue Jul 16, 2020 · 0 comments · Fixed by #118
Closed

feat(xxx-api): update pagination configuration #117

kristjank opened this issue Jul 16, 2020 · 0 comments · Fixed by #118
Assignees
Labels
enhancement New feature or request
Projects

Comments

@kristjank
Copy link
Contributor

kristjank commented Jul 16, 2020

Last PR from seba ArkEcosystem/core#3895 made this configurable on the route definition level.

For this routes:

        { method: "get", path: "/nft/collections/wallets/{id}" },
        { method: "get", path: "/nft/collections/{id}/assets" },
        { method: "post", path: "/nft/collections/search" },
        { method: "get", path: "/nft/assets" },
        { method: "post", path: "/nft/assets/search" },
        { method: "get", path: "/nft/transfers" },
        { method: "get", path: "/nft/burns" },
        { method: "get", path: "/nft/exchange/auctions" },
        { method: "get", path: "/nft/exchange/auctions/canceled" },
        { method: "post", path: "/nft/exchange/auctions/search" },
        { method: "get", path: "/nft/exchange/bids" },
        { method: "get", path: "/nft/exchange/bids/canceled" },
        { method: "post", path: "/nft/exchange/bids/search" },
        { method: "get", path: "/nft/exchange/trades" },
        { method: "post", path: "/nft/exchange/trades/search" },```

set pagination in routes.ts, if pagination is true, you need to enable it like this:

  plugins: {
            pagination: {
                enabled: true,
            },
        },

@kristjank kristjank added the enhancement New feature or request label Jul 16, 2020
@kristjank kristjank added this to To do in NFT via automation Jul 16, 2020
@amacar amacar moved this from To do to In progress in NFT Jul 16, 2020
@amacar amacar moved this from In progress to Review in progress in NFT Jul 16, 2020
NFT automation moved this from Review in progress to Done Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
NFT
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants