This repo include API creation for the blog DjangoBlog using Django Rest Framework
In addition to features of DjangoBlog, this API consists of features:
- Generic Views
- Permissions
- Serializers
- Filtering
- Pagination
To access API, head to : http://127.0.0.1:8000/api/posts/
Similarly after registering, if you want Edit/Update
, head to http://127.0.0.1:8000/api/posts/
< post-id >/edit
For Creating
head to http://127.0.0.1:8000/api/posts/create
For Deleting
head to http://127.0.0.1:8000/api/posts/
< post-id >/delete
For registration head to http://127.0.0.1:8000/register/
For login head to http://127.0.0.1:8000/login/
For Homepage head to http://127.0.0.1:8000/
- Python 3
- django 1.10
- django-markdown-deux
Installing the latest
django-markdown-deux
release from PyPI:pip install django-markdown-deux
- Add
markdown_deux
toINSTALLED_APPS
in your project's "settings.py".
For further help on django-markdown-deux
visit https://github.com/trentm/django-markdown-deux
- django-pagedown
Installing:
pip install django-pagedown
- Add
django-pagedown
to yourINSTALLED_APPS
For further help on django-pagedown
visit https://github.com/timmyomahony/django-pagedown
- Django REST Framework
Installing
pip install djangorestframework
pip install markdown # Markdown support for the browsable API.
pip install django-filter # Filtering support
- Add
rest_framework
to yourINSTALLED_APPS
For further help on DjangoRESTFramework
visit http://www.django-rest-framework.org/