django-ninja-extra
django-ninja-extra copied to clipboard
Django Ninja Extra - Class-Based Utility and more for Django Ninja(Fast Django REST framework)
# New Feature ### ModelController - Create a new ModelControllerBase type to easily manage django models. Something similar to DRF ModelViewSet ```python from ninja_extra import api_controller, ModelControllerBase, http_post from .models...
I have implemented Ninja JWT Authentication with Ninja Extra. ``` @api_controller("post/", tags=["Post"]) class PostController: @route.post("", response=PostOut, auth=JWTAuth()) def create_post(self, payload: PostIn): post = Post.Object.Create(**payload.dict()) resturn post ``` I want to...
Currently, I have an endpoint defined like so: ```python @route.get("/{int:article_id}", response=ArticleDetail) def detail(self, article_id: UUID4): """View an articles details.""" return self.handlers.detail(article_id, self.uow) ``` In this case, the handlers.detail returns an...
Hi, So it seems like request data is validated before permission errors. Not a big deal.. mostly ran into it via automated testing, but I think it makes most sense...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) from 0.20.3 to 0.23.6. Release notes Sourced from pytest-asyncio's releases. pytest-asyncio 0.23.6 0.23.6 (2024-03-19) Fix compatibility with pytest 8.2 #800 Known issues As of v0.23, pytest-asyncio attaches an...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4. Release notes Sourced from codecov/codecov-action's releases. v4.0.0 v4 of the Codecov Action uses the CLI as the underlying upload. The CLI has helped to...
hi i want to add some header to all of my request something like this platform: Annotated[str, Header(alias="PLATFORM")], so i want to add it with decorators to my routs but...
Without django-ninja-extra, using just django-ninja, OpenApiClient generation yields a client with methods such as `api_instance.my_api_create_project` After introducing django-ninja-extra and using it to create a new set of API endpoints via...
Hi there! I used `searching` feature and was pleased to notice that search fields can cross relationships, for example with: ```py @searching(Searching, search_fields=["owner__first_name", "owner__last_name"]) ``` However, I'm wondering how to...
Thanks for this great project! We are using Django Ninja Extra to develop our application. In our application, we are trying to return 400 (Bad Request) on input schema input...