Fix the respose name of records
Change-Id: Id5035c9842d55c593989d9b7f04038ca1e43570d
This commit is contained in:
parent
5172929f9d
commit
a9062fd3d6
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"code": 0,
|
"code": 0,
|
||||||
"msg": "OK",
|
"msg": "OK",
|
||||||
"rules": [
|
"records": [
|
||||||
{
|
{
|
||||||
"id": "00b32723a3c240afab037593c8b11692",
|
"id": "00b32723a3c240afab037593c8b11692",
|
||||||
"title": "\u6d4b\u8bd5\u89c4\u5219",
|
"title": "\u6d4b\u8bd5\u89c4\u5219",
|
||||||
|
@ -153,7 +153,7 @@ class AnomalyDetectController(wsgi.Controller):
|
|||||||
record["create_time"] = r.create_time
|
record["create_time"] = r.create_time
|
||||||
records.append(record)
|
records.append(record)
|
||||||
|
|
||||||
return {"code": 0, "msg": "OK", "rules": records}
|
return {"code": 0, "msg": "OK", "records": records}
|
||||||
|
|
||||||
@wsgi.wrap_check_policy
|
@wsgi.wrap_check_policy
|
||||||
def delete_record(self, req, id):
|
def delete_record(self, req, id):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user