22 lines
347 B
Markdown
22 lines
347 B
Markdown
|
# XPUB Library
|
||
|
Library running on Flask and SQLight (maybe to be replaced with a python shelve)
|
||
|
|
||
|
requirements.txt
|
||
|
$ pip3 install -r requirements.txt
|
||
|
|
||
|
initialise database
|
||
|
$ bash init_db.sh
|
||
|
|
||
|
run script
|
||
|
python3 run.py
|
||
|
|
||
|
|
||
|
## API
|
||
|
|
||
|
has currently 2 entrypoints:
|
||
|
|
||
|
/api/books
|
||
|
GETs all the books in the database
|
||
|
|
||
|
/api/book/id
|
||
|
GETs a specific book by its id
|