Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-07 | http-api: T3616: update for strict content-type check in FastAPI 0.65.2 | John Estabrook | |
FastAPI 0.65.2 checks content-type request header before assuming JSON, closing a well-known loophole. This requires a modification of the code providing backwards compatibility of multipart forms. (cherry picked from commit 3a9041e2d4d4a48ba7c01439e69c5f86a4a850c2) | |||
2021-11-07 | http api: T3412: use FastAPI as web framework; support application/json | John Estabrook | |
Replace the Flask micro-framework with FastAPI, in order to support extensions to the API and OpenAPI 3.* generation. This change will remain backwards compatible with previous versions. Notably, the multipart forms version of requests remain supported; in addition application/json requests are now natively supported. (cherry picked from commit 0125fff200efe3259aa25953e7505f69679261f8) | |||
2020-10-21 | http-api: T3007: use ConfigSession config load script, not backend load | John Estabrook | |
2020-07-22 | http-api: remove unneeded check for VyOSError | John Estabrook | |
The only calls to config (return_value, return_values, exists) do not throw VyOSError; remove unneeded except. | |||
2020-05-06 | http api: T2395: add waitress as production WSGI server | John Estabrook | |
2020-05-06 | http api: T2395: replace bottle with flask as microframework | John Estabrook | |
2020-05-06 | http api: use decorator to get command data from request | John Estabrook | |
2020-05-06 | http api: catch appropriate errors | John Estabrook | |
2020-05-06 | http api: function names should be consistent | John Estabrook | |
2020-04-22 | http api: T2096: form of show/generate should be consistent with other cmds | John Estabrook | |
2020-04-20 | http api: T2292: handle SIGTERM from systemd restart; raise SIGINT | John Estabrook | |
2020-03-11 | http api: T2096: Added show and generate | Matthias Fetzer | |
2020-02-14 | http api: T2040: reload Config in route definition | John Estabrook | |
2019-12-03 | T1801: move escaping of backslashes into configtree | John Estabrook | |
2019-11-17 | T1801: escape isolated backslashes before passing to ConfigTree() | John Estabrook | |
2019-11-05 | T1774: fix error output | John Estabrook | |
2019-10-27 | T1773, T1774: add a show config operation with JSON and raw options. | Daniil Baturin | |
2019-10-23 | [HTTP API] Add endpoints for config file and image management. | Daniil Baturin | |
2019-10-23 | [HTTP API] Use a decorator for functions that require authentication. | Daniil Baturin | |
2019-08-05 | T1431: add showConfig operation to the HTTP API. | Daniil Baturin | |
2019-06-17 | [HTTP API] T1431: disallow empty config paths. | Daniil Baturin | |
2019-06-17 | [HTTP API] T1431: make the value field optional. | Daniil Baturin | |
2019-06-17 | [HTTP API] T1431: allow sending a single command, and make sure commands are ↵ | Daniil Baturin | |
dicts. | |||
2019-06-17 | [HTTP API] T1431: make the value field optional and add better validation. | Daniil Baturin | |
2019-06-17 | T1431: release the lock even if discard() caused an exception. | Daniil Baturin | |
It may be better to crash the process in that situation. | |||
2019-06-16 | T1431: initial implementation of the HTTP API. | Daniil Baturin | |