This API was created for my Yatube social network project. It implements a registration system using a token. Only the author or administrator can create and edit posts.
With it you can:
- Create new posts
- Write comments
- Create thematic groups
- Subscribe to authors
- Python 3.7
- Django 2.2.6
- Django REST Framework
- Simple JWT
- ReDoc
- Install and activate the virtual environment
- Install all packages from requirements.txt
pip install -r requirements.txt
- Run in command line:
python manage.py collectstatic
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
- Get your token and start using API:
http://127.0.0.1:8000/api/v1/token/
http://127.0.0.1:8000/api/v1/redoc/
- ReDoc pagehttp://127.0.0.1:8000/api/v1/token/
- Get tokenhttp://127.0.0.1:8000/api/v1/token/refresh/
- Refresh tokenhttp://127.0.0.1:8000/api/v1/posts/<id>/
- Post pagehttp://127.0.0.1:8000/api/v1/posts/<id>/comments
- Leave a comment on the posthttp://127.0.0.1:8000/api/v1/group/
- Create a grouphttp://127.0.0.1:8000/api/v1/follow/
- Subscribe to user