- Java: 17
- Spring Boot: 3.3.1
- Maven: 3.9.7
POST /createBook
{
"title" : String, // alphanumeric only
"author" : String, // alphanumeric only
"published" : boolean // boolean value
}
Status Code | Description |
---|---|
201 | CREATED |
400 | BAD REQUEST |
GET /readBook
Parameter | Type | Description |
---|---|---|
author | String | Optional |
published | boolean | Optional |
Status Code | Description |
---|---|
200 | OK |
404 | NOT FOUND |
DELETE /readBook
Parameter | Type | Description |
---|---|---|
id | long | Required |
Status Code | Description |
---|---|
200 | OK |
404 | NOT FOUND |