/RESTfulAPI

✍🏼 Poetry RESTful API

Primary LanguageJava

<🌐> Poetry RESTful API

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:

API Project

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 ].

Login example

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:

GET ALL

get all request

GET BY ID

get by id request

POST

post request

PUT

put request

DELETE

delete request

Client Project

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.

LOGIN

login request

GET BY ID

get by id request

POST

post request

PUT

put request

DELETE

delete request

Back to top