1.Activate virtual environment
.\venv\Scripts\activate
2.Install the required libs for the project
pip install -r requirements.txt
3.Create super user
python manage.py createsuperuser
and try to run it :D
python manage.py runserver
POST request to /api/users/ or /auth/users/ with data in body [username, password]
POST request to /api/token/ with data in body [username, password] and you get a refresh and access tokens
POST request to /api/posts/ with data
[
text -> text field 5000 max char
published -> boolean
is_reply -> boolean
author -> id of user
parent_post -> id of post or u can don't write this parameter if new post is not part of brench
]
POST request to /api/likes/ with data
[
user -> id of user
post -> id of post
]
DELETE method to /api/likes/<like_id>
GET request to /api/analytics/?date_from=<date_from>&date_to=<date_to>
mades a last request to the service.
GET request to /api/users/<user_id>/activity/
GET request to /api/posts/<post_id>/likes/ gives u all likes to current post with post_id
Authorization: JWT eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjU1OTEyOTkzLCJqdGkiOiJiZGQ5ZWQ4ZTE0ZTE0YTllYmExMTAzMTMwYjljNjFkZiIsInVzZXJfaWQiOjF9.ChuD-xKTrE8mahv7HrpFxVahWVwZWIFnA0phekISuug
/swagger/