Django API router
Project description
Django APIRouter (in progress)
Django API router component.
Inspired by FastAPI and Django Rest Framework.
Documentation: https://django-apirouter.readthedocs.io/
Installing
Install using pip
:
pip install django-apirouter
Quick Example
project/urls.py
from apirouter import APIRouter, Response, Request
router = APIRouter()
@router.route("/")
def index(request: Request):
return Response("Hello, Django APIRouter!")
urlpatterns = router.urls
TODO:
- Documentation
- OpenAPI support (Swagger, ReDoc)
- Pydantic support
- Async views support (with Django 3.1)
- etc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-apirouter-0.2.1.tar.gz
(8.0 kB
view hashes)
Built Distribution
Close
Hashes for django_apirouter-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81b40bbb1c036756e87581b8d1d09b6aa98088b48e808d189e9410dd78ee58b3 |
|
MD5 | 021240ed2803752a5951d72ec0d0b393 |
|
BLAKE2b-256 | 6278cca5ac008dd384b6be71fbf553e3c68c4ecd8cdc3ce1b7107dad01893c4e |