Skip to content

ankitkachru/Django-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API using Django REST

Works on Django 1.9 and Python 2.7 and above.

pip install django pip install djangorestframework django-admin.py startproject restexample .

USE MIGRATE IN Django (1.9) and ./manage.py syncdb for older versions. Use ./migrate.py help for list of commands. ./manage.py migrate ./manage.py createsuperuser

to RUN

./manage.py runserver

FOR WINDOWS, USE curl in Windows PowerShell To view users curl -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/

To create user $ curl -X POST -d username=new -d email=[email protected] -d is_staff=false -H 'Accept: application/json; indent=4' -u admin:password http://127.0.0.1:8000/users/

DJANGO-REST-DOCUMENTATION at http://www.django-rest-framework.org

About

API using Django REST framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages