Build Spring Boot REST API | GET and POST Methods | Chapter #3

preview_player
Показать описание
In this tutorial, we will learn how to create REST API using spring boot. We will create two endpoints. One GET endpoint for getting all the employee objects from the server and one POST endpoint for accepting new employees that need to be saved.

For creating a GET endpoint, we will use @GetMapping annotation. Within the annotation, we will give the URL we would like to have for the endpoint. Similarly, for creating a POST endpoint, we will use @PostMapping annotation.

Once the endpoints are created, we will test them using the Postman tool.

Tags: #Java #SpringBoot

Introduction: (0:00)
Create new Rest Controller class: (1:33)
Create GET endpoint: (4:04)
Test GET endpoint with Postman: (8:55)
Create POST endpoint: (11:46)
Test POST endpoint with Postman: (14:00)
Improve POST endpoint by returning Employee object: (17:34)
Рекомендации по теме
Комментарии
Автор

Best way of teaching I have ever seen. Thank You. Perfect job and videos

kim-tech-eu
join shbcf.ru