get() methods converted to post()
This commit is contained in:
parent
b95037f624
commit
2afb37daca
1 changed files with 6 additions and 6 deletions
|
@ -90,7 +90,7 @@ class CreateVM(Resource):
|
|||
|
||||
class VmStatus(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.VMStatusSchema(data)
|
||||
if validator.is_valid():
|
||||
|
@ -244,7 +244,7 @@ class VMMigration(Resource):
|
|||
|
||||
class ListUserVM(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.OTPSchema(data)
|
||||
|
||||
|
@ -277,7 +277,7 @@ class ListUserVM(Resource):
|
|||
|
||||
class ListUserFiles(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.OTPSchema(data)
|
||||
|
||||
|
@ -344,7 +344,7 @@ class ListHost(Resource):
|
|||
|
||||
class GetSSHKeys(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.GetSSHSchema(data)
|
||||
if validator.is_valid():
|
||||
|
@ -430,7 +430,7 @@ class AddSSHKey(Resource):
|
|||
|
||||
class RemoveSSHKey(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.RemoveSSHSchema(data)
|
||||
if validator.is_valid():
|
||||
|
@ -518,7 +518,7 @@ class CreateNetwork(Resource):
|
|||
|
||||
class ListUserNetwork(Resource):
|
||||
@staticmethod
|
||||
def get():
|
||||
def post():
|
||||
data = request.json
|
||||
validator = schemas.OTPSchema(data)
|
||||
|
||||
|
|
Loading…
Reference in a new issue