![]() Reduces damage over time inflicted by Poison and fire by 6%. When used, these scrolls increases your top running and dash speeds. Amount Preparable 1-2 Jutsu Cost 3.0Īllows you to ready Caltrops. Scatter these caltrop spikes on the ground to inflict damage and reduce the movement speed of those who step on them. Amount Preparable 1-6 Jutsu Cost 0.8 Ninjas are sneaky.Allows you to ready Tiger-running Scrolls. Check it out, if nothing else just to see the differences in how they were created.Ġ2:56 For more courses and tutorials in this space, you could check out Building HTTP APIs with Django REST Framework, Python and REST APIs: Interacting With Web Services, a tutorial, and Test-Driven Development of a RESTful API to do a little bit of testing and a little bit of REST API mixed in.Ġ3:19 I hope you had fun with Django Ninja. Personally, I find Ninja far easier to use, but the DRF is definitely deeper. Or if you’d like to learn more about REST, the Wikipedia page is a good place to start.Ġ2:40 Ninja’s grandpa is the Django REST Framework. Go digging around in there if you want some more info. This is similar to how the Django REST Framework does things.Ġ2:29 The Ninja docs are actually pretty well written. The documentation includes an Enhancement Proposals section if you’d like to see what they’re thinking about or propose something yourself.Ġ2:17 One of the ideas being kicked around at the moment is a class that implements most of the operations in a single place. Ninja also has a Form class, which you can combine with Schema to handle form-style submissions in your API.Ġ1:56 And if forms aren’t enough, there are features for dealing with file uploads and things like pagination.Ġ2:05 Ninja’s actively being developed, and features are being added frequently. It fully supports async calls, so if you’re using Uvicorn or Daphne to do ASGI, Ninja’s got your back.Ġ1:40 And as the last couple of Django releases have added more async support, soon enough you’ll be able to do all this with just the Django dev server. And in the previous lesson, I showed you how Ninja catches exceptions and how you can register your own handlers if you want to customize how the errors are processed.Ġ1:29 In addition to everything in this course, Ninja still has more. In this course, you saw two different authentication mechanisms, and Ninja supports many more.Ġ1:12 You can also write your own truthy functions, allowing or denying as you see fit. ModelSchema is particularly handy, as it means very little coding if all you’re trying to do is serialize a Django ORM model.Ġ0:58 Ninja supports several ways of specifying arguments to your endpoints, including Django-esque path arguments and query strings. ![]() ![]() The decorators correspond to the HTTP operations you wish to use in your API endpoints.Ġ0:28 Ninja uses Pydantic and type annotations to support quick conversions from HTTP land, where everything is a string, to Python land, where you need more data types.Ġ0:39 The Schema and ModelSchema classes provide serialization support and help you define the response payloads as well as the request bodies in PUTs, PATCHes, and POSTs. It is heavily inspired by FastAPI and uses decorators in a similar fashion. This lesson is the course summary, and I’ll also point you at some other features of Ninja you might be interested in digging into.Ġ0:13 The Django Ninja package helps you build REST APIs. 00:00 In the previous lesson, I showed you how to write your own custom error handling for Ninja.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |