Milan Toman 828e7daeb7 Merge branch 'ventil'
FF ventil development
2021-01-21 12:41:41 +01:00
2021-01-20 14:40:22 +01:00
2019-06-24 08:47:03 +02:00
2019-06-24 08:47:03 +02:00
2019-06-24 09:14:40 +02:00
2021-01-20 14:40:22 +01:00
2019-06-24 08:47:03 +02:00
2019-07-09 13:54:51 +02:00
2021-01-20 14:40:22 +01:00
2019-06-24 08:47:03 +02:00

cherrypy_sqlite_restapi

Simple, lightweight, universal SQLite API, based on cherrypy.

Requirements:

1. universal
2. ssl / non-ssl versions
3. secure / cleanup of querries
4. DB/table specification
5. row inserts
6. row deletes
7. row modifies

REST API

https://www.restapitutorial.com/

Cherrypy http microframework / server

https://cherrypy.org/

Progress

  1. set up Cherrypy server as base for RESTAPI (matoumi)

    • cherrypy base, config, root, ssl (later)?
    • responses for /insert /select /delete /modify
  2. classes and functions for DB operations and mapping

    • Conditions operators and values can obviously be merged to one statement and sent to the API as is - then need to be validated.
    • INSERT
    • SELECT
      • STRUCTURE: http://server/{operation}/{db}/{table}/?json=true
        • operation, db, table, json are optional
      • SELECT {fields} FROM {table} WHERE {condition} {operator} {value}
        • TODO: conditions and filters
        • the whole where cluase is optional, but needs to be implemented
    • DELETE
      • DELETE FROM {table} WHERE {condition} {operator} {value}
    • MODIFY / ALTER
  3. aggregate functions and complex queries mapping

Description
No description provided
Readme 218 KiB
Languages
Python 94.6%
HTML 5.4%