Cloud.Management.Desktop.webm
Cloud.Management.Mobile.webm
This project demonstrates CRUD (Create, Read, Update, Delete) operations using Spring Boot and a RESTful API.
SpringBoot-RestAPI/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/example/springbootrestapi/ # Base package
│ │ │ ├── controller/ # REST API endpoints (e.g., UserController.java)
│ │ │ ├── service/ # Business logic (e.g., UserService.java)
│ │ │ ├── repository/ # Database layer (e.g., UserRepository.java)
│ │ │ ├── model/ # Entities (e.g., User.java)
│ │ │ ├── config/ # Configuration classes (e.g., SwaggerConfig.java)
│ │ │ ├── exception/ # Custom exceptions (e.g., ResourceNotFoundException.java)
│ │ │ └── SpringBootRestApiApplication.java # Main class
│ │ └── resources/
│ │ ├── static/ # Static assets (CSS, JS, images)
│ │ ├── templates/ # HTML templates (if using Thymeleaf)
│ │ ├── application.properties # Configuration (DB, server port, etc.)
│ │ └── data.sql # Initial data (optional)
│ └── test/ # Unit/integration tests
├── .gitignore
├── pom.xml # Maven dependencies
├── README.md # Project documentation
└── target/ # Compiled code (generated after build)
- Clone the repository:
git clone https://github.com/Manu-Tyagi90/SpringBoot-RestAPI.git
- Navigate to the project directory:
cd SpringBoot-RestAPI
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- Access the API at
http://localhost:8080/api
.
GET /api/items
- Retrieve all itemsGET /api/items/{id}
- Retrieve an item by IDPOST /api/items
- Create a new itemPUT /api/items/{id}
- Update an item by IDDELETE /api/items/{id}
- Delete an item by ID
- Real-time statistics overview
- Total vendor count display
- Last updated timestamp
- Dynamic stats visualization
- System status indicators
- CRUD operations for vendors
- Real-time search functionality
- Paginated vendor list
- Add/Edit vendor form
- Delete confirmation
- Responsive grid layout
- Infinite scroll loading
- Theme switching (Light/Dark)
- Items per page configuration
- UI preferences management
- System configurations
-
RestApiCrudOperations1ApplicationTests.java
- Integration tests for application context
- Test environment configuration
-
CloudVendor.java
- Entity model for vendor data
- JPA entity mappings
- Basic vendor attributes
-
Exception Handling
- CloudVendorNotFoundException.java: Custom exception for missing vendors
- CloudVendorExceptionHandler.java: Global exception handling
- CloudVendorException.java: Base exception class
-
API Layer
- CloudAPIVendor.java: REST endpoints controller
- CRUD operations implementation
- Request/Response handling
-
Service Layer
- ServiceImplement.java: Business logic implementation
- CloudService.java: Service interface
- Data processing and validation
-
Repository Layer
- CloudRepo.java: JPA repository interface
- Database operations
- Custom queries
-
index.html
- Responsive SPA layout
- Component templates
- Navigation structure
-
script.js
- AJAX calls to backend
- DOM manipulation
- Event handlers
- Dynamic content loading
-
style.css
- Responsive design styles
- Theme management
- Component animations
- Layout configurations
- GET /cloudvendor - List all vendors
- GET /cloudvendor/{id} - Get vendor by ID
- POST /cloudvendor - Create new vendor
- PUT /cloudvendor - Update vendor
- DELETE /cloudvendor/{id} - Delete vendor
Contributions are welcome! Please fork the repository and submit a pull request.
This project is licensed under the MIT License.