marshmallow-code / marshmallow-code/flask-smorest
Query parameter for sorting response
Open
Nobody has claimed this yet.
question
- Dominant language
- Python
- Stars
- 717
- Forks
- 77
- Avg merge
- 7h 49m
- Merged PRs (30d)
- 3
Description
Is there a native way to add a "sort" parameter to each QuerySchema to determine the order of the result set? With native I mean: is that part of smorest or webargs etc.
If not: how could it be done in a generic way without modifying all my controllers.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing QuerySchema and the smorest/webargs integration mentioned in the issue to determine whether sorting support already exists. Done means establishing whether a native sort parameter is available and documenting a generic approach that avoids modifying every controller.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, openapi, python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100