No project description provided
Project description
Django Api Tools
A collection of apps that support basic django functionality over api
Caveat enptor, very early days, still being tested in it's first project
Use
pip install ...
- add
'django_accounts_api',
to INSTALLED_APPS - add
path('/accounts_api/', include('django_accounts_api.urls'))
to your urls
Features
API endpoints
Scenario to support is a compiled javascript capable frontend needing to provide authentication features over api Frontend should be able to:
Optionally get api endpoints from api.
Task | How |
---|---|
find api endpoints | GET /manifest |
Detect auth | GET /login-check |
show user name | json parse GET /login-check response |
render a login form | GET /login body returns partial HTML |
submit a login form | wrap partial form above in a form, new FormData(...) it and POST to `/login |
render form errors | render partial HTML returned from POST /login |
login | POST /login returns 201 |
logout | POST /logout |
Development
-
Install Poetry https://python-poetry.org/docs/#installation
-
Use a virtual environment https://python-poetry.org/docs/basic-usage/#using-your-virtual-environment
-
poetry install --with test,dev --no-root
-
pytest
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
Built Distribution
Close
Hashes for django_accounts_api-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46af8a37731166e61ff1a7481ecb6053c33ca007cd2888e72c96ed241a24a250 |
|
MD5 | 87b1f59238b8bc563618e4042dbbf1c2 |
|
BLAKE2b-256 | 2be23326f2fc93b943236849bfc47c0643fb80e1e4f4b9ff6e51eee27d4c57af |
Close
Hashes for django_accounts_api-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a550a4e49d82ab0ff0362a367d880b26cd3e4588121849a0326f187722908fa3 |
|
MD5 | 69d593bf902eddea26d020e8787b9acc |
|
BLAKE2b-256 | e5e10fbdfe288bda8a9c3c4d006eb52bab7ffb02311471aca25bd1cadf872560 |