forked from uncloud/uncloud
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):
|
class VmStatus(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.VMStatusSchema(data)
|
validator = schemas.VMStatusSchema(data)
|
||||||
if validator.is_valid():
|
if validator.is_valid():
|
||||||
|
@ -244,7 +244,7 @@ class VMMigration(Resource):
|
||||||
|
|
||||||
class ListUserVM(Resource):
|
class ListUserVM(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.OTPSchema(data)
|
validator = schemas.OTPSchema(data)
|
||||||
|
|
||||||
|
@ -277,7 +277,7 @@ class ListUserVM(Resource):
|
||||||
|
|
||||||
class ListUserFiles(Resource):
|
class ListUserFiles(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.OTPSchema(data)
|
validator = schemas.OTPSchema(data)
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ class ListHost(Resource):
|
||||||
|
|
||||||
class GetSSHKeys(Resource):
|
class GetSSHKeys(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.GetSSHSchema(data)
|
validator = schemas.GetSSHSchema(data)
|
||||||
if validator.is_valid():
|
if validator.is_valid():
|
||||||
|
@ -430,7 +430,7 @@ class AddSSHKey(Resource):
|
||||||
|
|
||||||
class RemoveSSHKey(Resource):
|
class RemoveSSHKey(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.RemoveSSHSchema(data)
|
validator = schemas.RemoveSSHSchema(data)
|
||||||
if validator.is_valid():
|
if validator.is_valid():
|
||||||
|
@ -518,7 +518,7 @@ class CreateNetwork(Resource):
|
||||||
|
|
||||||
class ListUserNetwork(Resource):
|
class ListUserNetwork(Resource):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get():
|
def post():
|
||||||
data = request.json
|
data = request.json
|
||||||
validator = schemas.OTPSchema(data)
|
validator = schemas.OTPSchema(data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue