Skip to content

Releases: eadwinCode/django-ninja-extra

0.18.0

02 Jan 07:26
5cd509d

Choose a tag to compare

What's Changed

Full Changelog: 0.16.0...0.18.0

0.16.0

30 Oct 11:45
951018e

Choose a tag to compare

What's Changed

 # 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

Full Changelog: 0.15.8...0.16.0

0.15.8

22 Sep 04:55
014e110

Choose a tag to compare

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

22 Aug 06:18
6980aeb

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.15.4...0.15.6

0.15.4

18 Jul 09:02
c761a91

Choose a tag to compare

What's Changed

from ninja_extra import throttle
...

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

Read more: Throttling

Sponsors

  • Thanks to @areski for sponsoring the throttling feature

Full Changelog: 0.15.2...0.15.4

0.15.2

18 Jun 05:30
25743ae

Choose a tag to compare

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

Full Changelog: 0.15.0...0.15.2

0.15.0

09 Jun 01:54
5fed333

Choose a tag to compare

What's Changed

0.14.8

31 Mar 05:52

Choose a tag to compare

What's Changed

  • Python3.10 type hinting fix by @eadwinCode in #12
  • Controller MRO fixed

0.14.6

25 Mar 16:34
20a0f67

Choose a tag to compare

Changelog:

  • Changed controller operations keys to function name instead of operations paths. Thanks to @SootyOwl

0.14.4

12 Feb 15:36
803bf9d

Choose a tag to compare

What's Changed

  • Jan 20 django ninja upgrade by @eadwinCode in #6
  • Default App config Fix for Django >= 4.0 by @eadwinCode in #8 thanks to nbhargava for his suggestion
  • Added support for django-ninja 0.17.0