Releases: eadwinCode/django-ninja-extra
Releases · eadwinCode/django-ninja-extra
0.18.4
0.18.2
What's Changed
- Clear Written Documentation by @eadwinCode in #46
- TestClient JSON dump Encoder Fix by @eadwinCode in #45
Full Changelog: 0.18.0...0.18.2
0.18.0
0.16.0
What's Changed
- fix: controller_instance.check_permissions can not use django-orm by @freemindcore in #38
- 100% Test Coverage by @eadwinCode in #34
- Bump actions/setup-python from 1 to 4 by @dependabot in #37
- Bump actions/checkout from 2 to 3 by @dependabot in #36
- Bump codecov/codecov-action from 1 to 3 by @dependabot in #35
- API Route Definition Refactor by @eadwinCode in #40
- Added option to use endpoint return type as response schema by @eadwinCode in #41
# EventSchema becomes the response schema
@http_get("/{int:id}")
def get_event(self, id: int) -> EventSchema:
event = get_object_or_404(Event, id=id)
return event
New Contributors
- @freemindcore made their first contribution in #38
- @dependabot made their first contribution in #37
Full Changelog: 0.15.8...0.16.0
0.15.8
What's Changed
- Updated pagination part in the Quick Example doc by @marcjermainepontiveros-sun in #29
- Doc code clean up by @eadwinCode in #31
- Throttled Controller by @eadwinCode in #32
- Throttled Controller Doc update by @eadwinCode in #33
New Feature
@api_controller("/throttled-controller")
class ThrottlingControllerSample(ControllerBase):
throttling_classes = [
DynamicRateThrottle,
]
throttling_init_kwargs = dict(scope="dynamic_scope")
@http_get("/endpoint_1")
@throttle
def endpoint_1(self, request):
# this will override the generally throttling applied at the controller
return "foo"
@http_get("/endpoint_2")
def endpoint_2(self, request):
return "foo"
New Contributors
- @marcjermainepontiveros-sun made their first contribution in #29
Full Changelog: 0.15.6...0.15.8
0.15.6
What's Changed
- Request Logger Fix by @eadwinCode in #25
- Add 'docs_decorator' parameter from NinjaAPI to NinjaExtraAPI by @lesser-panda in #26
- Pagination Doc update by @eadwinCode in #28
New Contributors
- @lesser-panda made their first contribution in #26
Full Changelog: 0.15.4...0.15.6
0.15.4
What's Changed
- ControllerOperation And Operation Merge by @eadwinCode in #18
- Throttling by @eadwinCode in #20
from ninja_extra import throttle
...
@api.get('throttle_api')
@throttle
def throttle_endpoint(request):
return 'foo'
Read more: Throttling
- Doc deploy automation by @eadwinCode in #23
Sponsors
- Thanks to @areski for sponsoring the
throttling
feature
Full Changelog: 0.15.2...0.15.4
0.15.2
What's Changed
- Typo in menu by @areski in #16
- Don't overwrite
operation_id
if explicitly set in controller routes by @eliassjogreen in #17 - Fixed injector version to version that supports py3.6
New Contributors
- @areski made their first contribution in #16
- @eliassjogreen made their first contribution in #17
Full Changelog: 0.15.0...0.15.2
0.15.0
What's Changed
- asynccontextmanager for async controller operations by @eadwinCode in #13
- Ninja18.0 support by @eadwinCode in #15 🤩
0.14.8
What's Changed
- Python3.10 type hinting fix by @eadwinCode in #12
- Controller MRO fixed