×

Genuine Coder's video: Build Spring Boot REST API GET and POST Methods Chapter 3

@Build Spring Boot REST API | GET and POST Methods | Chapter #3
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 marking a class as a REST Controller, spring provides an annotation "@RestController". Then we can write functions in the class that creates new Restful API endpoints. 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. You can find this project in GitHub at https://github.com/afsalashyana/Spring-boot-tutorial Genuine Coder Blog: https://www.genuinecoder.com/ Tags: 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)

118

10
Genuine Coder
Subscribers
21.9K
Total Post
194
Total Views
686.4K
Avg. Views
11.8K
View Profile
This video was published on 2022-03-18 08:24:12 GMT by @Genuine-Coder on Youtube. Genuine Coder has total 21.9K subscribers on Youtube and has a total of 194 video.This video has received 118 Likes which are lower than the average likes that Genuine Coder gets . @Genuine-Coder receives an average views of 11.8K per video on Youtube.This video has received 10 comments which are lower than the average comments that Genuine Coder gets . Overall the views for this video was lower than the average for the profile.Genuine Coder #Java #SpringBoot Introduction: has been used frequently in this Post.

Other post by @Genuine Coder