library-rest
Getting started
Getting started
The Library Mock API is a demo service that behaves like a small library system: books, authors, loans and users.
Authentication
Every request needs an Authorization: Bearer <token> header. In this demo the token is already set in the Mock environment, so you can try any endpoint right from its page.
First steps
1.Open Books → List books and press Send in the Try-It panel.
2.Look at the
meta.total field of the response.3.Borrow a book with POST /loans and return it with POST /loans/{id}/return.
The data is reset automatically every 30 minutes.