-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The GET /templates
endpoint supports pagination and partial fetching, but lacks a way to search templates by their keywords
field. Adding a keywords
query param (e.g., ?keywords=contract,legal
) would enable efficient server-side filtering.
Proposed Solution
- Update
GET /templates
inopenapi.json
with an optionalkeywords
param. - Param:
?keywords=tag1,tag2
(comma-separated, matches any keyword inTemplate.keywords
). - Response: Paginated array of matching
Template
objects.. - Example:
GET /templates?keywords=contract,legal&limit=10
returns templates tagged with "contract" or "legal". - Document in
specification.md
with examples.
Benefits
- Reduces client-side filtering overhead for large template sets.
- Leverages existing
keywords
field inTemplate
schema.
Metadata
Metadata
Assignees
Labels
No labels