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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f2aa3599545c0ffb57f805692d22ced44306255a4d1fa47eaa2747fa8425d55 |
|
MD5 | dbcdd78146843214300ae36684962970 |
|
BLAKE2b-256 | e13a2a7b1cbd74f922e785fa0c7b620613712ea82be407a973460a7f7a2450fb |
Close
Hashes for django_accounts_api-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a78d994e1a5654eea0e55d643afe77955feee688e77c55d791efe9d1bba056c |
|
MD5 | d8ab9e453c31226ed5aa59bdaaea7ce0 |
|
BLAKE2b-256 | 0eb59d4d2cf0574a61a1adda2797291e67f3a29f64a3444fb1791ad9aa243b66 |