DEV Community

Raja B
Raja B

Posted on

API

API

API (Application Programming Interface) and how a React frontend communicates with a Java/Spring Boot backend and a database.

Example: Student Management App

Suppose your React page has a student list

1. GET → Get student data

React displays:

ID   Name    Course
1    Raja    Java
2    Arun    Python
Enter fullscreen mode Exit fullscreen mode

2. POST → Add new student

{
  "name": "Raja",
  "course": "Java"
}
Enter fullscreen mode Exit fullscreen mode

3. PUT → Update student

4. DELETE → Delete student

API is like a bridge between React and Spring Boot

Top comments (1)

Collapse
 
karthick_07 profile image
Karthick (k)

Highly informative