A Spring Boot–based REST API for managing quiz questions with full CRUD (Create, Read, Update, Delete) operations.
[![Build Status][build-image]][build-url] [![License][license-image]][license-url]
This project provides a simple backend service to create, update, delete, and fetch quiz questions.
Built with Spring Boot, Spring Data JPA, and MySQL/PostgreSQL.
- Java 17+
- Maven 3.6+
- MySQL / PostgreSQL
- Postman (for API testing)
git clone https://github.com/deb2004m/QuizApplication-Spring-Boot.git
###Configure Database Edit src/main/resources/application.properties: spring.datasource.url=jdbc:mysql://localhost:3306/quizdb spring.datasource.username=root spring.datasource.password=yourpassword spring.jpa.hibernate.ddl-auto=update
📌 API Usage Examples ✅ Get all questions GET /questions
✅ Get a question by ID GET /questions/{id}
✅ Add a new question POST /questions
Body (JSON):
{ "question_title": "What is Java?", "option1": "Programming Language", "option2": "Coffee", "option3": "Car", "option4": "Animal", "answer": "Programming Language", "difficultylevel": "Easy" }
✅ Update a question PUT /questions/{id}
✅ Delete a question DELETE /questions/{id}
📜 Meta
Author: Debashis Moharana – LinkedIn – debashis-moharana
GitHub Repository 🤝 Contributing
-Fork it (https://github.com/deb2004m/QuizApplication-Spring-Boot/fork) -Create your feature branch (git checkout -b feature/newFeature) -Commit your changes (git commit -m 'Add some feature') -Push to the branch (git push origin feature/newFeature) -Create a new Pull Request 🚀 cd QuizApplication-Spring-Boot mvn spring-boot:run
