This is a web application developed with Spring Boot.
In this application you can perform the CRUD operations:
- Create
- Read
- Update
- Delete
The database used is H2 Database.
This project contains 2 subprojects:
Application programming interface.
The database used is H2 Database (in memory) in conjunction with Spring JPA.
In this API we store poems and authors.
Basic operations that can be performed (CRUD):
This API is protected with Spring Security so before performing any action we need to log in to the endpoint [ /auth/login ].
Then in all the request we want to make, we need to add the 'Authorization' header with the given JSON web token (JWT) with the structure 'Bearer [ jwt ]'
Requests examples:
The purpose of this project is to test the API project, here we can connect to the API interactively (via console) and perform all available operations for the poem entity.