This project is a REST API backend for a hypothetical social media app, where we manage our users’ accounts as well as any messages that they submit to the application.
- Java
- Spring Framework
- Spring MVC
- Spring Data JPA
- Process new user registrations -
POST /register - Process user logins -
POST /login - Process the creation of new messages -
POST /messages - Retrieve all messages -
GET /messages - Retrieve a message by its ID -
GET /messages/{message_id} - Delete a message identified by its message ID -
DELETE /messages/{message_id} - Update a message text identified by a message ID -
PATCH /messages/{message_id} - Retrieve all messages written by a particular user -
GET /accounts/{account_id}/messages
# download project
git clone https://github.com/njohnson-oss/Spring-Social-Media-Blog-API
# validate, compile, test, and package the project
cd Spring-Social-Media-Blog-API
mvn package
# start the web API
java -jar ./target/Challenges-1.1.jar