This is an simple social networking API developed using Django Rest Framework. This api has features such as signup,login,auth,send and receive friend requests etc..
- Docker
- Docker Compose
-
Clone the repository:
git clone https://github.com/Jinxer26/SocialNetworkAPI.git cd socialnetwork_backend
-
Build and run the application:
docker-compose up --build
-
The application will be available at
http://localhost:8000
.
POST /api/users/signup/
- User signupPOST /api/users/login/
- User loginPOST /api/users/auth/
- To get Authentication TokenGET /api/users/search/?keyword=<keyword>
- Search users by emailPOST /api/users/friend-request/
- Send friend requestPATCH /api/users/friend-request/<int:pk>/
- Accept friend requestsGET /api/users/friends/
- Friend list viewGET /api/users/pending-requests/
- See pending friend requests
- This repository cotains the postman_collection files which I used to make Requests.
- The API implements SessionAuthentication as well as Token Authentication.
- When using POSTMAN, make sure to get the token from the API endpoint ('/api/users/auth')
- Set Environment Variables like username, password, socket and token.