ebook rest api