User:Alexander Roidl/flask: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 26: Line 26:


https://git.xpub.nl/xpub-lib/log.html
https://git.xpub.nl/xpub-lib/log.html
== Long To Do List (obviously) ==
* much more properties for books
** multiple authors?
** description
** date uploaded?
** ISBN
** MD5 to link books (more stable than db ID)
** Filetype (PDf, mobi, epub)
** Publisher
** Tags
** Categories? (also important for infrastructure)
* Keep SQLite or python shelve?
* function to make stacks
* delete books from DB?
* do we need users? (→ also conceptional question)
* Interface, Interface, Interface
** search, links, categories, shelfs/stacks
* API
** make all that above accessible via RESTful API
** add POST / PUT / DELETE (not sure how it works yet)

Revision as of 23:22, 19 May 2018

Flask

first version of lib (super super prototype)

http://37.139.6.124:8080/


with first API setup:

http://37.139.6.124:8080/api/books

{
  "books": [
    {
      "author": "Jan Tschichold", 
      "file": "The_Form_of_the_Book___Essays_on_the_Moral_-_Jan_Tschichold.pdf", 
      "id": 1, 
      "title": "The Form of the Book"
    }
  ]
}

Code on the git:

https://git.xpub.nl/xpub-lib/log.html

Long To Do List (obviously)

  • much more properties for books
    • multiple authors?
    • description
    • date uploaded?
    • ISBN
    • MD5 to link books (more stable than db ID)
    • Filetype (PDf, mobi, epub)
    • Publisher
    • Tags
    • Categories? (also important for infrastructure)
  • Keep SQLite or python shelve?
  • function to make stacks
  • delete books from DB?
  • do we need users? (→ also conceptional question)
  • Interface, Interface, Interface
    • search, links, categories, shelfs/stacks
  • API
    • make all that above accessible via RESTful API
    • add POST / PUT / DELETE (not sure how it works yet)