From d6fd845df93796331ed6bbfd126bf06c4929039c Mon Sep 17 00:00:00 2001 From: iglocska Date: Wed, 19 Sep 2018 12:21:44 +0200 Subject: [PATCH] new: [API] Added API description for the warninglist toggleEnable API --- app/Controller/Component/RestResponseComponent.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Controller/Component/RestResponseComponent.php b/app/Controller/Component/RestResponseComponent.php index 829a730e8..6a260f769 100644 --- a/app/Controller/Component/RestResponseComponent.php +++ b/app/Controller/Component/RestResponseComponent.php @@ -207,7 +207,14 @@ class RestResponseComponent extends Component 'description' => "POST a body and a subject in a JSON to send an e-mail through MISP to the user ID given in the URL", 'mandatory' => array('subject', 'body') ) - ) + ), + 'Warninglist' => array( + 'toggleEnable' => array( + 'description' => "POST a json object with a single or a list of warninglist IDs to toggle whether they're enabled or disabled. Specify the optional enabled boolean flag if you would like to enforce the outcome state. Not setting this flag will just toggle the current state.", + 'mandatory' => array('id'), + 'optional' => array('enabled') + ) + ) ); public function getAllApis($user, $Server)