marshmallow-code / marshmallow-code/flask-smorest

Query parameter for sorting response

Open
#119 11 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.