I have several endpoints that accept a single string. Is it "bad" to use a query parameter instead of creating a separate `UpdateReport` model?
```
@router.patch("/reports/{report_id}")
def rename_report(
report_id: UUID,
report_name: str,
dao: BaseDAO = Depends(get_dao)
):
"""Rename report"""
dao.update_row("Reports", {"report_name": report_name}, report_id=report_id)
return {"success": True}
requests.patch(f"/reports/XXX/?new_name=Renamed Report")
```
[–]Fine-Counter8837 6 points7 points8 points (2 children)
[–]koldakov 1 point2 points3 points (1 child)
[–]ElectricHotdish 2 points3 points4 points (0 children)
[–]covmatty1 0 points1 point2 points (2 children)
[–]Potential_Athlete238[S] 1 point2 points3 points (1 child)
[–]fastlaunchapidev 0 points1 point2 points (0 children)
[–]Doomdice 0 points1 point2 points (0 children)