Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-26-2017, 11:10 AM   #1
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Calibre server REST API (ajax)

Hi, I know the latest server has "some" support for web-based interaction.

I can get a json list of authors by GET "https://serverip:8080/ajax/category/617574686f7273"

I have been unable to get a (reasonably) complete list of possible commands.
Is such a beast available somewhere?

TiA
ZioNemo is offline   Reply With Quote
Old 10-26-2017, 02:49 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Grep the srv directory for @endpoint

And just FYI the server has a complete ajax API, for evey possible operation
kovidgoyal is offline   Reply With Quote
Advert
Old 10-27-2017, 04:25 AM   #3
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Thanks Kovid,
I already found that.

Problem is I am (still) unable to find out what I should use.

Problem at hand is I want to programmatically control a Calibre lib which reside on my NAS (I'm using https://hub.docker.com/r/aptalca/docker-rdp-calibre/, if that matters) accessible only through web.

What I need is essentially to be able to insert an empty book to the lib and, later, to modify metadata and/or content.

The srv/ajax.py module has means to query but apparently not to POST a new book.

srv/cdb.py may be what I need, but it's usage isn't obvious.

Can You provide a bit more insight?
TiA
ZioNemo is offline   Reply With Quote
Old 10-27-2017, 07:11 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the calibredb command line tool which can connect to a remote server. https://manual.calibre-ebook.com/gen...calibredb.html
kovidgoyal is offline   Reply With Quote
Reply

Tags
calibre rest api


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get author list from AJAX API isaacdl Development 1 02-19-2014 09:27 PM
is there a REST style API? joelbrave Development 2 09-16-2013 05:35 PM
Calibre update breaks Calibre API TechnoCat Recipes 5 01-28-2013 11:25 PM
calibre Content Server Interfacing API alexyeo Development 2 10-31-2011 11:18 PM
calibre's new plugin API kovidgoyal Plugins 26 05-07-2011 02:43 PM


All times are GMT -4. The time now is 07:02 PM.


MobileRead.com is a privately owned, operated and funded community.