https://github.com/dunnock/simplerest
Python Django simplest server for debugging REST APIs with authentication
https://github.com/dunnock/simplerest
Last synced: over 1 year ago
JSON representation
Python Django simplest server for debugging REST APIs with authentication
- Host: GitHub
- URL: https://github.com/dunnock/simplerest
- Owner: dunnock
- License: mit
- Created: 2016-11-23T16:46:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-23T17:51:05.000Z (over 9 years ago)
- Last Synced: 2025-03-27T08:59:56.421Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#simplerest
Python Django simplest server for debugging REST APIs with authentication
#requires
* python3
* django
#usage
Supports basic user REST, enough to serve as a mock for your client. It will output all the requests to the console. Also provides CORS headers allowing communication with the server from a different url.
After starting server you can see description of the REST API following the link [localhost](http://localhost:8000/), admin interface is avaialble via [localhost admin](http://localhost:8000/admin/)
#setup
1. create virtualenv
virtualenv env
source env/bin/activate
2. install dependencies
pip install django
pip install djangorestframework
3. create database and user
python manage.py migrate
python manage.py createsuperuser
4. start server
python manage.py runserver