I published an article today on the Data API Builder, which is a way of presenting your database tables as a REST or GraphQL API for developers. You can read the article to learn how to get started, but I’m adding a small thing in this post.
This is part of my posts on the Data API Builder.
Setting the Page
The default page for data is 100 elements (and the next URL). That’s a lot for display, and I might not want developers to get that much data by default. Perhaps I only want 5 rows.
In the JSON file, I’ll add an item below the development mode element (but a level above. I’ve shown this below:
The JSON is a bit fiddly, so you need to make sure you know where you’re adding this. The options are below the “runtime” at the same level as “rest” and other items.
Once I do this, if I query from Postman, I see this, only 5 elements (and the next)
A quick add, which will be in the next (or next after that) DAB article.