If you’re using one of the REST templates, then the `Response` object which generates that pagination struct is located at coldbox/system/web/context/Response.cfc
If you want to change the pagination structure, then you will need to clone that component ( or extend it ) and modify the `setPagination` method to your desired structure.
Then, add a preProcess interception ( which will fire before the aroundHandler method in the base RestHandler.cfc ) which sets prc.response to your new component.
From that point on, it should work exactly as it currently does, with a different pagination structure.
HTH,
Jon
From: <col...@googlegroups.com> on behalf of Roberto Marzialetti <roberto.m...@gmail.com>
Reply-To: "col...@googlegroups.com" <col...@googlegroups.com>
Date: Saturday, December 5, 2020 at 8:23 AM
To: ColdBox Platform <col...@googlegroups.com>
Subject: [coldbox:28024] Rest Pagination
Hi everyone
I started playing with Coldbox to create a Rest application.
In a short time I was able to get it working :-)
I have a problem: I would like to replace the default structure with a custom one. Is possible?
I don't find anything for this in docs or config.
I'm using coldbox 6.
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit
https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
coldbox+u...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/coldbox/79e954f0-8b15-4107-9bda-0c003e0130ben%40googlegroups.com.