This project is a Spring Boot-based social media platform that allows users to sign up, log in, create and manage posts and comments, and view user profiles and feeds. Testing was conducted using Postman to verify API endpoints and response accuracy.
- User Authentication: Users can sign up and log in using email and password.
- User Profile: Retrieve user details, including name, userID, and email.
- Posts: Create, edit, delete, and retrieve posts. Posts can be viewed in reverse chronological order.
- Comments: Create, edit, delete, and retrieve comments on posts.
- User Feed: View all posts by all users in reverse chronological order.
- All Users: Retrieve details of all existing users.
-
Login
- URL:
/login
- Method:
POST
- Request Body:
email
,password
- Response:
Login Successful
,Username/Password Incorrect
,User does not exist
- URL:
-
Signup
- URL:
/signup
- Method:
POST
- Request Body:
email
,name
,password
- Response:
Account Creation Successful
,Forbidden, Account already exists
- URL:
- Get User Details
- URL:
/user
- Method:
GET
- Query Parameter:
userID
- Response Body:
name
,userID
,email
,User does not exist
- URL:
-
Create Post
- URL:
/post
- Method:
POST
- Request Body:
postBody
,userID
- Response:
Post created successfully
,User does not exist
- URL:
-
Retrieve Post
- URL:
/post
- Method:
GET
- Query Parameter:
postID
- Response Body:
postID
,postBody
,date
,comments
,Post does not exist
- URL:
-
Edit Post
- URL:
/post
- Method:
PUT
- Request Body:
postBody
,postID
- Response:
Post edited successfully
,Post does not exist
- URL:
-
Delete Post
- URL:
/post
- Method:
DELETE
- Query Parameter:
postID
- Response:
Post deleted
,Post does not exist
- URL:
-
Create Comment
- URL:
/comment
- Method:
POST
- Request Body:
commentBody
,postID
,userID
- Response:
Comment created successfully
,User does not exist
,Post does not exist
- URL:
-
Retrieve Comment
- URL:
/comment
- Method:
GET
- Request Param:
commentID
- Response Body:
commentID
,commentBody
,commentCreator
,Comment does not exist
- URL:
-
Edit Comment
- URL:
/comment
- Method:
PUT
- Request Body:
commentBody
,commentID
- Response:
Comment edited successfully
,Comment does not exist
- URL:
-
Delete Comment
- URL:
/comment
- Method:
DELETE
- Query Parameter:
commentID
- Response:
Comment deleted
,Comment does not exist
- URL:
- Get User Feed
- URL:
/
- Method:
GET
- Response Body:
posts
(sorted in reverse chronological order)
- URL:
- Get All Users
- URL:
/users
- Method:
GET
- Response Body:
name
,userID
,email
,posts
- URL:
- Spring Boot
- Java
- Postman