Arksine / moonraker

Web API Server for Klipper
https://moonraker.readthedocs.io
GNU General Public License v3.0
1.05k stars 406 forks source link

Spoolman Proxy: Include total count header in response #841

Closed Clon1998 closed 5 months ago

Clon1998 commented 5 months ago

Is your feature request related to a problem? Please describe

Through the Spoolman proxy, I am able to interact with any of the API endpoints of Spoolman. However, the find endpoints take up a special role. They not only return data via the body but also contain the total entity count by including a X-Total-Count field within the response header.

Currently, this information is unavailable via the proxy but is required for UI implementations and pagination.

Describe the solution you'd like

Can we adjust the response of the proxy method to also include the value of the header, if available?

Describe alternatives you've considered

Implementing spoolman pagination without counts... It can work but is not as good...

Additional information

No response