{"repo":"OKaluzny/spring-boot-rest-api-mongodb","free":true,"listed":false,"github":"https://github.com/OKaluzny/spring-boot-rest-api-mongodb","clone":"git clone https://github.com/OKaluzny/spring-boot-rest-api-mongodb.git","description":"Simple REST API with Spring Boot and MongoDB.","language":"Java","stars":15,"topics":["mongodb","lombok","rest-api","springboot4"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Spring Boot REST API with MongoDB A modern RESTful API for managing books, built with Spring Boot 4 and MongoDB. Features - RESTful API with CRUD operations - Spring Boot 4.0.2 with Spring Framework 7 - MongoDB with embedded database for development - Spring Security with Basic Authentication - Spring Data REST with HAL support - Bean Validation (Jakarta Validation) - Lombok for boilerplate reduction - JUnit 5 tests with embedded MongoDB Tech Stack Technology Version ------------ --------- Java 21 Spring Boot 4.0.2 Spring Framework 7.0.3 MongoDB Driver 5.6.2 Embedded MongoDB 6.0.9 Apache Tomcat 11.0.15 JUnit 5 Project Structure Getting Started Prerequisites - Java 21 or higher - Maven 3.8+ Run the Application The application will start on http://localhost:8080 Run Tests API Reference Authentication All endpoints require Basic Authentication: - Username: user - Password: user Endpoints Method Endpoint Description -------- ---------- ------------- GET /api/books Get all books GET /api/books/{id} Get book by ID POST /api/books Create a new book DELETE /api/books/{id} Delete book by ID DELETE /api/books Delete all books Examples Get All Books Response: Get Book by ID Response: Create a Book Delete a Book Data Model Book Field Type Constraints ------- ------ ------------- id Integer Primary Key name String Required, min length 1 description String Required, min length 1 Configuration application.yml Environment Variables Variable Description Default ---------- ------------- ------","default_branch":null,"files":null,"tree":[],"storefront":"/r/OKaluzny","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OKaluzny/spring-boot-rest-api-mongodb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}