Spring Boot Tutorials 13: Creating Rest Controller for GetAll and GetById (Rest Endpoint)

Published: 23 April 2021
on channel: PithorAcademy
219
1

Hi Everyone,
Rest API plays an important role while developing any application. If you are a developer then it is a must-have skill nowadays. When we are working on any project the rest API is the one that is used to communicate between backend and frontend.

While developing rest APIs, get is one of the most frequently used HttpMethod. It is used to fetch the data based on the path or URL.

In this video, we’ll create endpoints for getAll (fetching all the data for Category table) and getById ( for fetching the record based on some unique id).

Points Covered: 1. Creating Rest API Endpoint
2. Passing Status code in the response with ResponseEntity
3. Communicating with a Service layer
4. Performing GetAll for an Entity using @GetMapping
5. Performing GetById for an Entity using @GetMapping
6. Passing Data to API using @PathVariable


Topics Covered:#getall #getbyid #controller #restcontroller #responseentity #rest #api #endpoint #pithoracademy #springboot #tutorials #java #pathvariable #getmapping

Source Code (Github): https://github.com/Pithoracademy/Utube

For Spring boot concepts visit:

What & Why Spring boot:    • What is Spring Boot and Why we use it?  
Dependency Injection & IOC Container:    • The Power of Dependency Injection and...  
Aspect-Oriented Programming (AOP):    • Aspect-Oriented Programming (AOP): Si...  
Generate Spring Project:    • Spring Boot Made Simple: Generating P...  
Project Architecture:    • Understanding What We're Developing a...  
Auto generated Code & pom.xml:    • Unpacking the Magic: Understanding Pr...  
RestController & Endpoint:    • Exploring @RestController: Creating R...  
Ways to send data to API:    • Sending Data to Your API: Understandi...  
Autowired and Dependency Injection:    • The Complete Guide to @Autowired: Dem...  
Adding Mysql To Application:    • Spring Boot Tutorial 10: Adding Mysql...  
Creating JPA Entity or Model:    • Spring Boot Tutorial 11: Creating JPA...  
Creating Service Layer for CRUD Operation:    • Spring Boot Tutorial 12: CRUD Operati...  

Complete Courses:

Spring Boot Tutorials:    • Course Intro: Rest API with Spring bo...  

Rest API Concepts:    • Course Intro: What is Rest API or Res...