From 1d27581665431a36c65c421e075f6b59e2250450 Mon Sep 17 00:00:00 2001 From: To-om Date: Thu, 4 Mar 2021 11:19:09 +0100 Subject: [PATCH] #1454 Add initialQuery in describe output --- .../app/org/thp/thehive/controllers/v1/DescribeCtrl.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala b/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala index 9f988d865e..337a079f8c 100644 --- a/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala +++ b/thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala @@ -61,8 +61,9 @@ class DescribeCtrl @Inject() ( case class EntityDescription(label: String, initialQuery: String, attributes: Seq[PropertyDescription]) { def toJson: JsObject = Json.obj( - "label" -> label, - "attributes" -> (attributes ++ metadata) + "label" -> label, + "initialQuery" -> initialQuery, + "attributes" -> (attributes ++ metadata) ) }