Download OpenAPI specification:Download
REST API for LibroRed - Web Application for Book Lending Between Individuals
Update an existing user
id required | integer <int64> User ID |
id | integer <int64> |
username | string |
string | |
role | string Enum: "ROLE_USER" "ROLE_ADMIN" |
{- "id": 0,
- "username": "string",
- "email": "string",
- "role": "ROLE_USER"
}
Create a new book entry
id | integer <int64> |
title | string |
author | string |
genre | string Enum: "Fiction" "Non_Fiction" "Mystery_Thriller" "SciFi_Fantasy" "Romance" "Historical_Fiction" "Horror" |
description | string |
hasCoverImage | boolean |
object (UserBasicDTO) |
{- "id": 0,
- "title": "string",
- "author": "string",
- "genre": "Fiction",
- "description": "string",
- "hasCoverImage": true,
- "owner": {
- "id": 0,
- "username": "string"
}
}
Create a new book entry (authenticated users only)
title required | string |
author required | string |
genre required | string Enum: "Fiction" "Non_Fiction" "Mystery_Thriller" "SciFi_Fantasy" "Romance" "Historical_Fiction" "Horror" |
description | string |
coverImage | string <binary> |
Create a new loan entry
id | integer <int64> |
object (BookBasicDTO) | |
object (UserBasicDTO) | |
object (UserBasicDTO) | |
startDate | string <date> |
endDate | string <date> |
status | string Enum: "Active" "Completed" |
{- "id": 0,
- "book": {
- "id": 0,
- "title": "string",
- "author": "string"
}, - "lender": {
- "id": 0,
- "username": "string"
}, - "borrower": {
- "id": 0,
- "username": "string"
}, - "startDate": "2019-08-24",
- "endDate": "2019-08-24",
- "status": "Active"
}