name: 🚀 Feature Request
about: Suggest an idea or a new capability for FireForm.
title: "[FEAT]: Add GET /templates/{template_id} endpoint"
labels: enhancement
assignees: ''
📝 Description
Add an API endpoint to fetch a single template by its ID.
Right now, templates can be created but cannot be retrieved individually, which limits API usability for frontend or external clients
💡 Rationale
Clients need to load template metadata (name, fields, pdf path) before allowing users to submit or review forms.
Without this endpoint, consumers must rely on direct DB access or hardcoded assumptions.
🛠️ Proposed Solution
Add a GET route at /templates/{template_id} that:
Queries the template by ID
Returns 200 with template payload when found
Returns 404 when not found
Uses existing AppError pattern for consistent error responses
Logic change in src/
Update to [requirements.txt]
New prompt for Mistral/Ollama
✅ Acceptance Criteria
How will we know this is finished?
Endpoint returns template JSON for valid IDs.
Endpoint returns 404 for missing IDs.
Endpoint appears in Swagger docs.
Tests added for success and not-found.
The feature works in a Docker container.
Documentation updated in docs/.
JSON output validates against the schema.
📌 Additional Context
This is a low-risk API completeness feature and a good first backend contribution.
name: 🚀 Feature Request
about: Suggest an idea or a new capability for FireForm.
title: "[FEAT]: Add GET /templates/{template_id} endpoint"
labels: enhancement
assignees: ''
📝 Description
Add an API endpoint to fetch a single template by its ID.
Right now, templates can be created but cannot be retrieved individually, which limits API usability for frontend or external clients
💡 Rationale
Clients need to load template metadata (name, fields, pdf path) before allowing users to submit or review forms.
Without this endpoint, consumers must rely on direct DB access or hardcoded assumptions.
🛠️ Proposed Solution
Add a GET route at /templates/{template_id} that:
Queries the template by ID
Returns 200 with template payload when found
Returns 404 when not found
Uses existing AppError pattern for consistent error responses
Logic change in src/
Update to [requirements.txt]
New prompt for Mistral/Ollama
✅ Acceptance Criteria
How will we know this is finished?
Endpoint returns template JSON for valid IDs.
Endpoint returns 404 for missing IDs.
Endpoint appears in Swagger docs.
Tests added for success and not-found.
The feature works in a Docker container.
Documentation updated in docs/.
JSON output validates against the schema.
📌 Additional Context
This is a low-risk API completeness feature and a good first backend contribution.