Skip to content

Commit

Permalink
#1454 Add initialQuery in describe output
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Mar 4, 2021
1 parent 30bfbeb commit 1d27581
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions thehive/app/org/thp/thehive/controllers/v1/DescribeCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
}

Expand Down

0 comments on commit 1d27581

Please sign in to comment.