Description
Is there a way to modify the order of the endpoints? Currently it seems they are grouped by tags and then sorted alphabetically by their path, which results in non-intuitive ordering (at least in our use case).
Assume we have the endpoints:
- /start
- /finish
Naturally, we'd like to see /start
before /finish
in the documentation, but currently these are reversed.
It would be great if we could provide a custom name used for sorting, e.g. something like:
@bp.post("/start", sorting_name="1_start")
def start():
pass
@bp.post("/finish", sorting_name="2_finish")
def finish():
pass
It would also be possible by using a simple integer for the sort order, but I think having a string and then keep using the alphabetical sorting order allows more customization and is less brittle when adding a new function, since we could also create some kind of subgroups between requests to order some requests relative to each other without impacting global order, e.g.:
@bp.post("/something/start", sorting_name="something_1_start")
def start():
pass
@bp.post("/something/finish", sorting_name="something_2_finish")
def finish():
pass
@bp.post("/other/start", sorting_name="other_1_start")
def start2():
pass
@bp.post("/other/finish", sorting_name="other_2_finish")
def finish2():
pass
Does something like this maybe already exist?