Demo REST API built with Spring Boot with basic CRUD functionalities using Postgres as the database server.
Base URL: http://localhost:8080/api/v1/students
Creates a student. Email should be unique
request body:
{
"name":"edwin",
"dob":"26-09-1999",
"email":"[email protected]"
}
Retrieves all students
"students": [
{
"id":1,
"name":"edwin",
"dob":"26-09-1999",
"email":"[email protected]"
},
{
"id":2,
"name":"walela",
"dob":"26-09-1999",
"email":"[email protected]"
}
]
Retrieve student based on their id
{
"id":1,
"name":"edwin",
"dob":"26-09-1999",
"email":"[email protected]"
}