DEV Community

Krishna
Krishna

Posted on

🎯 Day 16 – Practiced @GetMapping in Spring Boot

Today I focused on getting comfortable with @GetMapping in Spring Boot! πŸš€

🧠 What I practiced:
βœ… Creating multiple @GetMapping endpoints
βœ… Returning simple strings and objects as JSON responses
βœ… Using @PathVariable and @RequestParam to handle dynamic input
βœ… Tested all routes using Postman for better understanding

πŸ” What is @GetMapping?
@GetMapping is a Spring annotation used to handle HTTP GET requests. It’s typically used to retrieve data from the server, such as lists, single items, or any response based on query/path parameters.

πŸ’‘ Learning how to serve data using GET requests has helped me understand the basics of how APIs work behind the scenes.
This sets the foundation for more complex operations like POST, PUT, and DELETE.

Every small step is taking me closer to building complete REST APIs! πŸ› οΈπŸ’»

JavaFullStack #SpringBootJourney #RESTAPI #GetMapping #BackendLearning #BuildInPublic #LearnSpringBoot #CodeEveryday #ProgrammingJourney #DevLife #JavaBeginners #FrontEnd #Backend #Day16 #Spring #30DaysofCode #Webdev

Top comments (2)

Some comments may only be visible to logged-in visitors. Sign in to view all comments. Some comments have been hidden by the post's author - find out more