Comments (2)
Hello @JorisDeRidder42 ! In order to use pagination you can make use of query parameters like:
So in order to discover if you're in the last page you need to calculate that in your frontend based on the parameter total
present in the API response. So for example if you make the following request: https://eldenring.fanapis.com/api/ammos?limit=10&page=2
You're gonna get the following metadata:
{
"success": true,
"count": 10,
"total": 53,
}
So the formula for calculating the max number of pages is: total / limit
so in this case is 53 / 10 = 5.3
so we should round to 6 pages
from eldenring-api.
Thank you ^^
from eldenring-api.
Related Issues (14)
- return total amount HOT 2
- Eccentric's Manchettes description is incorrect HOT 3
- Issue querying stats on Class HOT 2
- GraphQL CORS HOT 1
- data.requires[{ inconsistent array}] HOT 2
- Inconsistency with Weapon Category HOT 2
- Rounded Values + nulls where 0s should be HOT 1
- Making an iOS app HOT 2
- Upgraded weapon stats
- Api returning null on some values with graphql
- Small error in Boss by ID documentation
- ashesofwar api endpoint could not be found HOT 2
- GQL Search not functioning like REST HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eldenring-api.