name: 🚀 Feature Request
about: Suggest an idea or a new capability for FireForm.
title: "[FEAT]: Add GET /templates endpoint (list + pagination)"
labels: enhancement
assignees: ''
📝 Description
Add an endpoint to list templates with optional pagination so clients can browse available forms.
💡 Rationale
As template count grows, clients need a simple way to fetch templates in pages instead of hardcoding IDs.
This is necessary for dashboard views and workflow selection screens.
🛠️ Proposed Solution
Add a GET route at /templates supporting:
limit (default 20)
offset (default 0)
Return an array of template objects with existing schema fields.
Logic change in src/
Update to [requirements.txt]
New prompt for Mistral/Ollama
✅ Acceptance Criteria
How will we know this is finished?
Returns an empty list when the DB has no templates.
Returns a list of templates when records exist.
Limit and offset behave correctly.
Endpoint appears in Swagger docs.
Tests added for empty, normal, and paginated cases.
The feature works in a Docker container.
Documentation updated in docs/.
JSON output validates against the schema.
📌 Additional Context
This enables scalable template management and improves API ergonomics for UI integration
name: 🚀 Feature Request
about: Suggest an idea or a new capability for FireForm.
title: "[FEAT]: Add GET /templates endpoint (list + pagination)"
labels: enhancement
assignees: ''
📝 Description
Add an endpoint to list templates with optional pagination so clients can browse available forms.
💡 Rationale
As template count grows, clients need a simple way to fetch templates in pages instead of hardcoding IDs.
This is necessary for dashboard views and workflow selection screens.
🛠️ Proposed Solution
Add a GET route at /templates supporting:
limit (default 20)
offset (default 0)
Return an array of template objects with existing schema fields.
Logic change in src/
Update to [requirements.txt]
New prompt for Mistral/Ollama
✅ Acceptance Criteria
How will we know this is finished?
Returns an empty list when the DB has no templates.
Returns a list of templates when records exist.
Limit and offset behave correctly.
Endpoint appears in Swagger docs.
Tests added for empty, normal, and paginated cases.
The feature works in a Docker container.
Documentation updated in docs/.
JSON output validates against the schema.
📌 Additional Context
This enables scalable template management and improves API ergonomics for UI integration