Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

gsilvapt/django-restful-admin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Expose Django's admin as a RESTFUL service

  • Support all of restful api
  • Auto generat serializers
  • Use Django Rest Framework
  • Fully customization support

How To Install

pip install django-restful-admin

add to INSTALED_APPS

INSTALLED_APPS = [  
  ...
  'rest_framework',  
  'django_restful_admin',  
  ...
]

How To use

you need only add the bellow code to admin.py in your apps

from django_restful_admin import site
from yourapp.models improt FisrtModel, ScoundModel

site.register(FisrtModel)  
site.register(ScoundModel)  

add url to your project urls.py

from django_restful_admin import site

urlpatterns = [  
	  ... 
	  path('apiadmin/', site.urls),
	  ...  
	]

Run project and open url http://your-ip:port/apiadmin/

enjoy!

Customization

add more documentation about customization very soon ....

Contribute

if you think you can help me please let's start.

About

Django admin restful api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%