Filter and order your endpoints
MIT License
Bot releases are hidden (Show)
Published by arthurio about 2 years ago
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.5...v0.1.6
Published by arthurio about 2 years ago
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.4...v0.1.5
Published by arthurio about 2 years ago
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.3...v0.1.4
Published by arthurio about 2 years ago
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.2...v0.1.3
Published by arthurio about 2 years ago
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.1...v0.1.2
Published by arthurio about 2 years ago
?order_by=
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.1.0...v0.1.1
Published by arthurio about 2 years ago
order_by
is now part of the Filter class so that you don't have to manage them separately.order_by
is now a list[str]
instead of str
that you have to manually parse?order_by=name,-name
or ?order_by=name,age,name
)order_by
section has some stuff noworder_by
) for ordering by overriding Filter.Constants.ordering_field_name
Constants.model
everywhere (instead of model
for SQLAlchemy and collection
for MongoEngine)Constants
class has to inherit from parent or redefine all the fields. (class Constants(Filter.Constants):
).OrderBy
no longer exists, just add order_by: list[str] | None
to your filters if you want to add ordering capabilities.Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.0.4...v0.1.0
Published by arthurio over 2 years ago
FilterDepends(with_prefix("my_prefix", MyFilter), by_alias=True)
to use a filter with a prefix in your routes.
by_alias
parameter was added to FilterDepends
nested_filter
has been renamed to with_prefix
Full Changelog: https://github.com/arthurio/fastapi-filter/compare/v0.0.3...v0.0.4
Published by arthurio over 2 years ago