Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-08-24 | http-api: T5006: add explicit async to retrieve operation | John Estabrook | |
2023-04-23 | http-api: T5175: check value of attribute for FastAPI>=0.91.0 | John Estabrook | |
FastAPI v0.92.0 (starlette v0.24.0) sets default attribute Request._form; check for value == None instead of existence when overriding Request class. (cherry picked from commit cac55a066e1f7d7d4c0eec5ada76570a326b5ac9) | |||
2022-05-26 | http-api: T4442: Add action reset | Viacheslav Hletenko | |
Add action 'reset' (op-mode) for HTTP-API http://localhost/reset curl --unix-socket /run/api.sock -X POST -Fkey=mykey \ -Fdata='{"op": "reset", "path": ["ip", "bgp", "192.0.2.14"]}' \ http://localhost/reset | |||
2022-03-27 | graphql: T3993: add unsettable gql option; this is not exposed by CLI | John Estabrook | |
(cherry picked from commit 9d3acc2b55f2d1c563f1941e59c98c159211dc58) | |||
2021-12-16 | http-api: T4076: allow setting CORS option 'Access-Control-Allow-Origin' | John Estabrook | |
(cherry picked from commit 55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa) | |||
2021-12-14 | http-api: T4071: allow API to bind to unix domain socket | John Estabrook | |
(cherry picked from commit 0e3c35e6517f5cfebb4206c735a2ea976a7fd383) | |||
2021-11-15 | graphql: T3993: move schema generation to bindings.py; clean up for linting | John Estabrook | |
(cherry picked from commit 9e2694b24b06d928240522322c9a6d60c7a7d290) | |||
2021-11-07 | http-api: T2768: example using GraphQL for high-level config operations | John Estabrook | |
(cherry picked from commit b168b4cc7da456f14714d917cdc7a1c6b8df9af5) | |||
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 | |