Tutorial by Amigoscode.
From the YouTube description:
"This Spring Boot Tutorial will teach how to get started with Spring Boot and Java."
- Project: Maven
- Java: 16
- Spring Boot: 2.4.4
- Dependencies
- Spring Data JPA
- Spring Web
- PostgreSQL
- Spring Boot Starter Test
- Spring Security
- Bucket4j Spring Boot Starter
- Spring Cache Abstraction
- Ehcache
- Plugins
- Spring Boot Maven Plugin
- Heroku Maven Plugin
Retrieves a list of all students.
GET /api/v1/student
[
{
"id": "uuid1",
"name": "Thiago",
"email": "thiago@example.com",
"dob": "1872-01-01",
"age": 149
},
{
"id": "uuid2",
"name": "Alex",
"email": "alex@example.com",
"dob": "1754-01-01",
"age": 267
}
]
Add a new student to the application.
POST /api/v1/student
{
"name": "new-client",
"email": "newclient@example.com",
"dob": "2021-01-01"
}
Remove student from the application.
DELETE /api/v1/student/:id
Update student information (name and/or email).
PUT /api/v1/student/:id
Param | Description |
---|---|
name |
New name |
email |
New email |
- A student can't be created or updated if the new
email
already exists in the database. - A student can't be removed or updated if the
id
does not exist in the database.
API deployed on Heroku