Django-ninja-extra

Latest version: v0.21.8

Safety actively analyzes 688178 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 8

0.16.0

What's Changed
* fix: controller_instance.check_permissions can not use django-orm by freemindcore in https://github.com/eadwinCode/django-ninja-extra/pull/38
* 100% Test Coverage by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/34
* Bump actions/setup-python from 1 to 4 by dependabot in https://github.com/eadwinCode/django-ninja-extra/pull/37
* Bump actions/checkout from 2 to 3 by dependabot in https://github.com/eadwinCode/django-ninja-extra/pull/36
* Bump codecov/codecov-action from 1 to 3 by dependabot in https://github.com/eadwinCode/django-ninja-extra/pull/35
* API Route Definition Refactor by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/40
* Added option to use endpoint return type as response schema by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/41
python
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 https://github.com/eadwinCode/django-ninja-extra/pull/38
* dependabot made their first contribution in https://github.com/eadwinCode/django-ninja-extra/pull/37

**Full Changelog**: https://github.com/eadwinCode/django-ninja-extra/compare/0.15.8...0.16.0

0.15.8

What's Changed
* Updated pagination part in the Quick Example doc by marcjermainepontiveros-sun in https://github.com/eadwinCode/django-ninja-extra/pull/29
* Doc code clean up by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/31
* Throttled Controller by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/32
* Throttled Controller Doc update by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/33

New Feature
python
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 https://github.com/eadwinCode/django-ninja-extra/pull/29

**Full Changelog**: https://github.com/eadwinCode/django-ninja-extra/compare/0.15.6...0.15.8

0.15.6

What's Changed
* Request Logger Fix by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/25
* Add 'docs_decorator' parameter from NinjaAPI to NinjaExtraAPI by lesser-panda in https://github.com/eadwinCode/django-ninja-extra/pull/26
* Pagination Doc update by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/28

New Contributors
* lesser-panda made their first contribution in https://github.com/eadwinCode/django-ninja-extra/pull/26

**Full Changelog**: https://github.com/eadwinCode/django-ninja-extra/compare/0.15.4...0.15.6

0.15.4

What's Changed
* ControllerOperation And Operation Merge by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/18
* Throttling by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/20
python
from ninja_extra import throttle
...

api.get('throttle_api')
throttle
def throttle_endpoint(request):
return 'foo'


Read more: [Throttling](https://eadwincode.github.io/django-ninja-extra/tutorial/throttling/)

* Doc deploy automation by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/23

Sponsors
- Thanks to areski for sponsoring the `throttling` feature

**Full Changelog**: https://github.com/eadwinCode/django-ninja-extra/compare/0.15.2...0.15.4

0.15.2

What's Changed
* Typo in menu by areski in https://github.com/eadwinCode/django-ninja-extra/pull/16
* Don't overwrite `operation_id` if explicitly set in controller routes by eliassjogreen in https://github.com/eadwinCode/django-ninja-extra/pull/17
* Fixed injector version to version that supports py3.6

New Contributors
* areski made their first contribution in https://github.com/eadwinCode/django-ninja-extra/pull/16
* eliassjogreen made their first contribution in https://github.com/eadwinCode/django-ninja-extra/pull/17

**Full Changelog**: https://github.com/eadwinCode/django-ninja-extra/compare/0.15.0...0.15.2

0.15.0

What's Changed
* asynccontextmanager for async controller operations by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/13
* Ninja18.0 support by eadwinCode in https://github.com/eadwinCode/django-ninja-extra/pull/15 :star_struck:

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.