Add GET templates under v3#2878
Open
jzbahrai wants to merge 5 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new authenticated /v3/template/<template_id> GET endpoint intended to expose template details only to API keys with manage_templates permission.
Changes:
- Registers a new v3 template blueprint and GET template route.
- Adds serialization for template metadata including category, folder, process type, and archived state.
- Adds v3 endpoint tests and API-key fixtures for permission-gated access.
Reviewed changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
app/__init__.py |
Registers the v3 template blueprint. |
app/v3/__init__.py |
Adds v3 package marker. |
app/v3/template/__init__.py |
Defines the v3 template blueprint and error handlers. |
app/v3/template/get_template.py |
Implements the v3 GET template endpoint and response serialization. |
tests/app/conftest.py |
Adds API-key fixtures with and without template management permission. |
tests/app/v3/__init__.py |
Adds v3 test package marker. |
tests/app/v3/template/__init__.py |
Adds v3 template test package marker. |
tests/app/v3/template/test_get_template.py |
Adds endpoint behavior and permission tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jzbahrai
commented
May 28, 2026
| from app.v3.template import ( # noqa | ||
| get_template as v3_get_template, | ||
| ) | ||
| from app.v3.template import ( |
Collaborator
Author
There was a problem hiding this comment.
the formatter make format is forcing this :/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary | Résumé
Added a GET template method. This method currently exists, but we want to gate it behind APIKEYs with manage_template permissions.
Test instructions | Instructions pour tester la modification