|
pyShelf Open Source Ebook Server 0.8.0
FOSS E-Book Server, https://pyshelf.com
|
Public Member Functions | |
| __init__ (self, config) | |
| compile_static_files (self) | |
| None | use_route_names_as_operation_ids (self, FastAPI app) |
| index (Request request, int skip=0, int limit=30) | |
| books (Request request, int skip=0, int limit=10, collection=None) | |
| book (Request request, int book_id) | |
| book (Request request, int book_id) | |
| collections (Request request) | |
| collection (Request request, str collection, int skip=0, int limit=30) | |
| search_books_api (Request request, str search) | |
| run (self) | |
Public Attributes | |
| config = config | |
| fe_config | |
| fe_server = uvicorn.Server(self.fe_config) | |
| JSInterface | JSInterface = JSInterface(self.config) |
Entry point for FastAPI server.
| FastAPIServer.FastAPIServer.__init__ | ( | self, | |
| config ) |
Initialize FastAPIServer object parameters.
| FastAPIServer.FastAPIServer.book | ( | Request | request, |
| int | book_id ) |
| FastAPIServer.FastAPIServer.book | ( | Request | request, |
| int | book_id ) |
| FastAPIServer.FastAPIServer.books | ( | Request | request, |
| int | skip = 0, | ||
| int | limit = 10, | ||
| collection = None ) |
| FastAPIServer.FastAPIServer.collection | ( | Request | request, |
| str | collection, | ||
| int | skip = 0, | ||
| int | limit = 30 ) |
Collection file responder.
| FastAPIServer.FastAPIServer.collections | ( | Request | request | ) |
| FastAPIServer.FastAPIServer.compile_static_files | ( | self | ) |
Compile static files for web frontend.
| FastAPIServer.FastAPIServer.index | ( | Request | request, |
| int | skip = 0, | ||
| int | limit = 30 ) |
| FastAPIServer.FastAPIServer.run | ( | self | ) |
Front end server entrypoint.
| FastAPIServer.FastAPIServer.search_books_api | ( | Request | request, |
| str | search ) |
Collection file responder.
| None FastAPIServer.FastAPIServer.use_route_names_as_operation_ids | ( | self, | |
| FastAPI | app ) |
Use route name as operation id.
| FastAPIServer.FastAPIServer.config = config |
| FastAPIServer.FastAPIServer.fe_config |
| FastAPIServer.FastAPIServer.fe_server = uvicorn.Server(self.fe_config) |
| JSInterface FastAPIServer.FastAPIServer.JSInterface = JSInterface(self.config) |