summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2021-03-26 11:25:44 -0500
committerJohn Estabrook <jestabro@vyos.io>2021-03-26 14:29:13 -0500
commit0125fff200efe3259aa25953e7505f69679261f8 (patch)
tree4dbd0282bbf0073e4eb35a184dd92897ff4842ca /src/systemd
parent137f50a1f00073842364ee373f98e1e215671c6b (diff)
downloadvyos-1x-0125fff200efe3259aa25953e7505f69679261f8.tar.gz
vyos-1x-0125fff200efe3259aa25953e7505f69679261f8.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.
Diffstat (limited to 'src/systemd')
-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