RESTful API provides an ability to add and modify events of application logs.
JDK 21
Spring Boot
Maven
MyBatis
H2 in-memory database
Prerequisite: Java JDK 21
./mvnw clean install
./mvnw spring-boot:run
Use the following credentials to access the API:
- Username:
user
- Password:
password
http://localhost:5000/swagger-ui/index.html
See all events:
GET: http://localhost:5000/events
Create new event:
POST: http://localhost:5000/events
Request body:
{ "type": "WARNING",
"message": "obsolete method",
"userId": 10103,
"transactionId": 333555668 }
Response example:
Update event:
PUT: http://localhost:5000/events/{id}
Request body:
{ "type": "INFO",
"message": "event updated",
"userId": 10101,
"transactionId": 333555666 }
Delete event: