Download OpenAPI specification:Download
The Library API is intended to illustrate typical requirements of RESTful web services. It can be used to manage various books.
The data necessary to create a book.
isbn required | string^(978-?|979-?)?\d{1,5}-?\d{1,7}-?\d{1,6}-?\d{... |
title required | string [ 1 .. 300 ] characters |
author required | string [ 1 .. 100 ] characters |
{- "isbn": "string",
- "title": "string",
- "author": "string"
}
{- "id": 0
}
query | string [ 1 .. 30 ] characters Term to look for in all attributes. |
page required | integer >= 1 Number of page to retrieve. |
per_page required | integer [ 1 .. 50 ] Number of records per page. |
{- "maximumPage": 1,
- "items": [
- {
- "id": 0,
- "isbn": "string",
- "title": "string",
- "author": "string"
}
]
}
id required | integer >= 0 The id of the book to update. |
The data necessary to update a book.
isbn | string^(978-?|979-?)?\d{1,5}-?\d{1,7}-?\d{1,6}-?\d{... |
title | string [ 1 .. 300 ] characters |
author | string [ 1 .. 100 ] characters |
{- "isbn": "string",
- "title": "string",
- "author": "string"
}
{- "messages": [
- "string"
]
}