summaryrefslogtreecommitdiff
path: root/src/systemd/vyos-http-api.service
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-03-26 11:25:44 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-11-07 15:21:50 -0600
commit37c3ebc8aba14ba7605fbbb9c4013cbd2513400d (patch)
tree448d71a5acf2e108519cc2ca48cd1cdc3e5070e8 /src/systemd/vyos-http-api.service
parente2bab09cc31ed41149409bafe0a19568f244a963 (diff)
downloadvyos-1x-37c3ebc8aba14ba7605fbbb9c4013cbd2513400d.tar.gz
vyos-1x-37c3ebc8aba14ba7605fbbb9c4013cbd2513400d.zip
http api: T3412: use FastAPI as web framework; support application/json
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)
Diffstat (limited to 'src/systemd/vyos-http-api.service')
-rw-r--r--src/systemd/vyos-http-api.service3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemd/vyos-http-api.service b/src/systemd/vyos-http-api.service
index 4fa68b4ff..ba5df5984 100644
--- a/src/systemd/vyos-http-api.service
+++ b/src/systemd/vyos-http-api.service
@@ -5,9 +5,8 @@ Requires=vyos-router.service
[Service]
ExecStartPre=/usr/libexec/vyos/init/vyos-config
-ExecStart=/usr/bin/python3 -u /usr/libexec/vyos/services/vyos-http-api-server
+ExecStart=/usr/libexec/vyos/services/vyos-http-api-server
Type=idle
-KillMode=process
SyslogIdentifier=vyos-http-api
SyslogFacility=daemon