This repository contains a REST API built with Python Django and Django REST Framework. It allows users to create an account, log in, and perform CRUD (Create, Read, Update, Delete) operations on posts and comments.
Clone this repository to your local machine
Navigate to the project directory.
Install the required dependencies.
Run the server.
The server will be running at http://127.0.0.1:8000/.
Authentication
Register a new user account
Obtain a JWT token by passing a valid username and password
List all posts or create a new post (requires authentication)
Retrieve, update or delete a specific post by ID (requires authentication)
Like or unlike a specific post by ID (requires authentication)
List all comments for a specific post or create a new comment (requires authentication)
Retrieve, update or delete a specific comment by ID (requires authentication)