diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-12-02 09:14:34 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-12-02 14:12:40 +0100 |
commit | 900a1c8f08340be47939294621b40cec82efc944 (patch) | |
tree | df25424845cb06833430ea9c6cab1787d103703e /src | |
parent | f8e566bf63fbc24466e153a713f6474b326a2f1b (diff) |
#1010 Change POST /software to GET
ogClient /software gets a representation of the target resource’s state.
GET method is more appropriate than POST.
Change /software method from POST to GET.
Diffstat (limited to 'src')
-rw-r--r-- | src/ogRest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ogRest.py b/src/ogRest.py index d9d6f4a..86ff68f 100644 --- a/src/ogRest.py +++ b/src/ogRest.py @@ -290,6 +290,8 @@ class ogRest(): if ("GET" in method): if "hardware" in URI: self.process_hardware(client) + elif ("software" in URI): + self.process_software(client, request) elif ("run/schedule" in URI): self.process_schedule(client) elif "refresh" in URI: @@ -312,8 +314,6 @@ class ogRest(): self.process_shellrun(client, request) elif ("session" in URI): self.process_session(client, request) - elif ("software" in URI): - self.process_software(client, request) elif ("setup" in URI): self.process_setup(client, request) elif ("image/restore" in URI): |