Skip to content

Releases: eadwinCode/django-ninja-extra

0.18.4

07 Feb 15:08
036dea6
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.18.2...0.18.4

0.18.2

21 Jan 06:31
c86b927
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.18.0...0.18.2

0.18.0

02 Jan 07:26
5cd509d
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.16.0...0.18.0

0.16.0

30 Oct 11:45
951018e
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare

What's Changed

0.14.8

31 Mar 05:52
Compare
Choose a tag to compare

What's Changed

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