Skip to content

abhishekvermaa10/Spring-REST

Repository files navigation

Spring REST with Spring Boot

Welcome to the Spring REST with Spring Boot repository! This repository contains hands-on demos to help you understand and implement RESTful web services using Spring Boot. Whether you're a beginner or an experienced developer, this repository will guide you step by step through essential Spring REST concepts.


📌 Table of Contents

  1. Why REST?
  2. What is REST?
  3. Spring MVC vs Spring REST
  4. First application using Spring REST
  5. Advanced annotations & ResponseEntity
  6. Accept input using @RequestBody
  7. Accept input using @PathVariable
  8. Accept input using @RequestParam
  9. Accept input using @MatrixVariable
  10. Exception Handling
  11. Input validation
  12. Pagination
  13. Replace JSON with XML
  14. Actuators
  15. API Versioning
  16. REST Template
  17. REST Client
  18. CORS
  19. HATEOAS
  20. SpringDoc
  21. Internationalization & Localization
  22. Spring Boot Admin
  23. Unit Testing
  24. Cucumber Testing

⚙️ Prerequisites

These demos have been built using JDK 21, Spring Framework 6, and Spring Boot 3. While it is recommended to have JDK 21 installed, the examples can be adapted to other Java versions with minimal modifications.

The database used in these examples is MySQL, but the code can be adjusted to work with other databases if needed.

Before diving into Spring REST, ensure you're comfortable with the following concepts:

You can learn these topics from my YouTube channel through dedicated playlists.


🚀 How to Run the Demos

Follow these steps to set up and execute the demos:

  1. Clone the repository.
  2. Import the project into your preferred IDE as a Maven Project.
  3. Configure the database connection, if necessary.
  4. Run the application and test the endpoints.

If you're a beginner, it's best to execute the demos in the given order to build your understanding progressively. If you're experienced, feel free to explore specific demos based on your needs.


🎥 YouTube Tutorial

These demos are explained in detail on my YouTube channel Abhishek Verma. Watch the complete playlist here: Spring REST with Spring Boot.

🚀 Stay healthy, keep learning, and keep growing!


🌐 Connect with me


🛠️ Languages & Frameworks


🖥️ Software & Tools


Copyright © Abhishek Verma - All Rights Reserved

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published