https://github.com/shearichard/django-rest-knox-sandbox
A Django Rest Framework project to allow experimentation with django-rest-knox
https://github.com/shearichard/django-rest-knox-sandbox
authentication django django-rest-framework django-rest-knox
Last synced: 3 months ago
JSON representation
A Django Rest Framework project to allow experimentation with django-rest-knox
- Host: GitHub
- URL: https://github.com/shearichard/django-rest-knox-sandbox
- Owner: shearichard
- License: mit
- Created: 2024-01-10T01:27:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-10T03:15:51.000Z (over 1 year ago)
- Last Synced: 2025-03-02T10:09:17.205Z (3 months ago)
- Topics: authentication, django, django-rest-framework, django-rest-knox
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django-Rest-Knox Sandbox
This project is used to trial the use of [django-rest-knox](https://pypi.org/project/django-rest-knox/). It's starting point is a cutdown version of [drf-tut-baseline](https://github.com/shearichard/drf-tut-baseline).## Installation
Take note of the comments in the django-rest-knox documentation regarding [operating system prerequisites](https://jazzband.github.io/django-rest-knox/installation/).## Example Transactions
### Before any authorisation applied
Add a snippet.
```
$ echo -n '{"id": 1,"title": "","code": "foo = \"bar\"\n","linenos": false,"language": "python","style": "friendly"}' | http POST localhost:8000/snippets/
```
View all snippets.
```
$ http http://localhost:8000/snippets/
```