#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.
more_events
Javier Sánchez Parra 2020-12-02 09:14:34 +01:00 committed by OpenGnSys Support Team
parent f8e566bf63
commit 900a1c8f08
1 changed files with 2 additions and 2 deletions

View File

@ -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):