A Spring Boot REST API for managing journal entries, allowing users to create, update, delete, and retrieve their thoughts securely.
- 📌 CRUD Operations: Create, Read, Update, and Delete journal entries
- 🔒 Secure database storage
- 🌐 RESTful API with structured JSON responses
- 📅 Entries organized by date
- Backend: Java, Spring Boot
- Database: MySQL / PostgreSQL
- Build Tool: Maven
git clone https://github.com/Aaditya-Makwana/JournalEntryApplication.git
cd JournalEntryApplication- Update
src/main/resources/application.propertieswith your MySQL/PostgreSQL credentials:spring.datasource.url=jdbc:mysql://localhost:3306/journal_db spring.datasource.username=root spring.datasource.password=yourpassword spring.jpa.hibernate.ddl-auto=update
mvn clean install
mvn spring-boot:run| Method | Endpoint | Description |
|---|---|---|
| POST | /api/entries |
Create a new journal entry |
| GET | /api/entries |
Get all journal entries |
| GET | /api/entries/{id} |
Get a specific entry by ID |
| PUT | /api/entries/{id} |
Update an existing journal entry |
| DELETE | /api/entries/{id} |
Delete a journal entry |
Test the endpoints using Postman or cURL.
If Swagger is enabled, access API docs at:
🔗 http://localhost:8080/swagger-ui/
- Fork the repository
- Create a new branch:
git checkout -b feature-branch-name
- Commit and push your changes
- Submit a pull request