Download OpenAPI specification:Download
Responses and Requests Extension Criteria
Add a new book to the list
title required | string |
numPages required | integer |
author required | string |
genre required | string |
{- "title": "A Game of Thrones",
- "numPages": 780,
- "author": "George R.R. Martin",
- "genre": "Fantasy"
}
{- "id": 1,
- "title": "A Game of Thrones",
- "numPages": 780,
- "author": "George R.R. Martin",
- "genre": "Fantasy"
}
Update a books details by its ID.
id required | integer The ID of the book to update |
title required | string |
numPages required | integer |
author required | string |
genre required | string |
{- "title": "A Game of Thrones",
- "numPages": 780,
- "author": "George R.R. Martin",
- "genre": "Fantasy"
}
{- "id": 1,
- "title": "A Game of Thrones",
- "numPages": 780,
- "author": "George R.R. Martin",
- "genre": "Fantasy"
}
Remove a book from the list and send that book back to the client
id required | integer The ID of the book to update |
{- "id": 1,
- "title": "A Game of Thrones",
- "numPages": 780,
- "author": "George R.R. Martin",
- "genre": "Fantasy"
}