Query parameters
-
Search parameter to find specific books by name, author, or genre.
-
Filter parameter for the language of the book.
Values are
English
,Finnish
,Bengali
,Spanish
,French
,German
,Russian
,Arabic
,Chinese
, orJapanese
. -
Filter parameter for the condition of the book.
Values are
New
,Like New
,Good
,Fair
, orPoor
. -
Filter parameter for the genre of the book.
Values are
Fantasy
,Science Fiction
,Mystery
,Horror
,Romance
,Thriller
,Historical Fiction
, orNon-Fiction
. -
Filter parameter for owner's book.
-
Filter parameter for books except mine.
GET
/api/v1/users/{id}/books
curl \
--request GET 'http://localhost:8080/api/v1/users/{id}/books?pageable=%7B%7D'
Response examples (401)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (404)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (500)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (400)
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
{
"code": "string",
"message": "string",
"target": "string"
}
]
}
}
Response examples (200)
{
"_embedded": {
"books": [
{
"id": "string",
"title": "string",
"author": "string",
"genres": [
"string"
],
"language": "string",
"description": "string",
"condition": "string",
"coverPhotoUrl": "string",
"bookLocation": "string",
"offeredAgo": "string",
"ownerId": "string",
"offeredBy": "string"
}
]
},
"_links": {
"additionalProperty1": {
"href": "string",
"hreflang": "string",
"title": "string",
"type": "string",
"deprecation": "string",
"profile": "string",
"name": "string",
"templated": true
},
"additionalProperty2": {
"href": "string",
"hreflang": "string",
"title": "string",
"type": "string",
"deprecation": "string",
"profile": "string",
"name": "string",
"templated": true
}
},
"page": {
"size": 42,
"totalElements": 42,
"totalPages": 42,
"number": 42
}
}