TODO: Move most of the readme into here.
The route names used in route defintions should be constants in stapi_fastapi.routers.route_names
. This
makes it easier to populate these links in numerous places, including in apps that use this library.
The general scheme for route names should follow:
create-{x}
- create a resourcex
create-{x}-for-{y}
- create a resourcex
as a sub-resource or associated resource ofy
get-{x}
- retrieve a resourcex
list-{xs}
- retrieve a list of resources of typex
list-{xs}-for-{y}
- retrieve a list of subresources of typex
of a resourcey
set-{x}
- update an existing resourcex
set-{x}-for-{y}
- set a sub-resourcex
of a resourcey
, e.g.,set-status-for-order