lib/mihari/web/public/redoc-static.html in mihari-2.4.0 vs lib/mihari/web/public/redoc-static.html in mihari-3.0.0
- old
+ new
@@ -497,19 +497,19 @@
-174.68583 0.6895,0 26.281,25.03215 56.8701,
55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864
-231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,
-104.0616 -231.873,-231.248 z
" fill="currentColor"></path></g></svg></div></div><div class="sc-pjHjD gaNVPp api-content"><div class="sc-AxhUy kNmpyA"><div class="sc-Axmtr bnFFEW"><div class="sc-AxhCb kwETCN api-info"><h1 class="sc-AxmLO sc-fzooss CvVzT">Mihari API<!-- --> <span>(<!-- -->1.0<!-- -->)</span></h1><p>Download OpenAPI specification:<a download="swagger.json" target="_blank" class="sc-fzqyvX hTmvgG">Download</a></p><div class="sc-fzoant sc-fzoYHE cDQnzz"></div><div class="sc-fzoant sc-fzoYHE cDQnzz" data-role="redoc-description"></div></div></div></div><div id="/paths/~1api~1alerts/get" data-section-id="/paths/~1api~1alerts/get" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1alerts/get" aria-label="/paths/~1api~1alerts/get"></a>Get alerts<!-- --> </h2><div><h5 class="sc-fzplWN kzCYbv">query<!-- --> Parameters</h5><table class="sc-fznxsB jlDjZa"><tbody><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="page"><span class="sc-fzoXzr Lihot"></span><span>page</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">integer</span></div><div><span class="sc-fzqzlV PRWqF"> <!-- -->Default:<!-- --> </span> <span class="sc-fzqzlV sc-fzonjX hbCucb">0</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="artifact"><span class="sc-fzoXzr Lihot"></span><span>artifact</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="description"><span class="sc-fzoXzr Lihot"></span><span>description</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="source"><span class="sc-fzoXzr Lihot"></span><span>source</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="tag"><span class="sc-fzoXzr Lihot"></span><span>tag</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="title"><span class="sc-fzoXzr Lihot"></span><span>title</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="toAt"><span class="sc-fzoXzr Lihot"></span><span>toAt</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="fromAt"><span class="sc-fzoXzr Lihot"></span><span>fromAt</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw kluWNM"><svg class="sc-fznKkj fscamO" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-psCJM kuedQF">200<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>A list of matched alerts</p>
-</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="get" class="sc-qYiqT fjEWKb http-verb get">get</span><span class="sc-prOVx eZNvzE">/api/alerts</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-0" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-1" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-1" aria-labelledby="react-tabs-0"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"alerts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"title"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"description"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdAt"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"pageSize"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"total"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1alerts~1{id}/delete" data-section-id="/paths/~1api~1alerts~1{id}/delete" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1alerts~1{id}/delete" aria-label="/paths/~1api~1alerts~1{id}/delete"></a>Delete an alert<!-- --> </h2><div><h5 class="sc-fzplWN kzCYbv">path<!-- --> Parameters</h5><table class="sc-fznxsB jlDjZa"><tbody><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="id"><span class="sc-fzoXzr Lihot"></span><span>id</span><div class="sc-fzoWqW sc-fzplgP chnCRo"> required </div></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">integer</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw fAPeri" disabled=""><strong class="sc-psCJM kuedQF">204<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>Delete an alert</p>
+</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="get" class="sc-qYiqT fjEWKb http-verb get">get</span><span class="sc-prOVx eZNvzE">/api/alerts</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-0" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-1" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-1" aria-labelledby="react-tabs-0"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"alerts"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"title"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"description"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"createdAt"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"tags"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"artifacts"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"data"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"dataType"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"source"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"pageSize"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"total"</span>: <span class="token number">0</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1alerts~1{id}/delete" data-section-id="/paths/~1api~1alerts~1{id}/delete" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1alerts~1{id}/delete" aria-label="/paths/~1api~1alerts~1{id}/delete"></a>Delete an alert<!-- --> </h2><div><h5 class="sc-fzplWN kzCYbv">path<!-- --> Parameters</h5><table class="sc-fznxsB jlDjZa"><tbody><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="id"><span class="sc-fzoXzr Lihot"></span><span>id</span><div class="sc-fzoWqW sc-fzplgP chnCRo"> required </div></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">integer</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw fAPeri" disabled=""><strong class="sc-psCJM kuedQF">204<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>Delete an alert</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="delete" class="sc-qYiqT knTven http-verb delete">delete</span><span class="sc-prOVx eZNvzE">/api/alerts/{id}</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/alerts/{id}</div></div></div></div></div></div></div></div><div id="/paths/~1api~1tags~1/get" data-section-id="/paths/~1api~1tags~1/get" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1tags~1/get" aria-label="/paths/~1api~1tags~1/get"></a>Get tags<!-- --> </h2><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw kluWNM"><svg class="sc-fznKkj fscamO" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-psCJM kuedQF">200<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>A list of tags</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="get" class="sc-qYiqT fjEWKb http-verb get">get</span><span class="sc-prOVx eZNvzE">/api/tags/</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/tags/</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-2" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-3" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-3" aria-labelledby="react-tabs-2"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"name"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1tags~1{name}/delete" data-section-id="/paths/~1api~1tags~1{name}/delete" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1tags~1{name}/delete" aria-label="/paths/~1api~1tags~1{name}/delete"></a>Delete a tag<!-- --> </h2><div><h5 class="sc-fzplWN kzCYbv">path<!-- --> Parameters</h5><table class="sc-fznxsB jlDjZa"><tbody><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="name"><span class="sc-fzoXzr Lihot"></span><span>name</span><div class="sc-fzoWqW sc-fzplgP chnCRo"> required </div></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw fAPeri" disabled=""><strong class="sc-psCJM kuedQF">204<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>Delete a tag</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="delete" class="sc-qYiqT knTven http-verb delete">delete</span><span class="sc-prOVx eZNvzE">/api/tags/{name}</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/tags/{name}</div></div></div></div></div></div></div></div><div id="/paths/~1api~1sources/get" data-section-id="/paths/~1api~1sources/get" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1sources/get" aria-label="/paths/~1api~1sources/get"></a>Get sources<!-- --> </h2><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw kluWNM"><svg class="sc-fznKkj fscamO" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-psCJM kuedQF">200<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>A list of sources</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="get" class="sc-qYiqT fjEWKb http-verb get">get</span><span class="sc-prOVx eZNvzE">/api/sources</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/sources</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-4" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-5" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-5" aria-labelledby="react-tabs-4"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1artifacts~1{id}/delete" data-section-id="/paths/~1api~1artifacts~1{id}/delete" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1artifacts~1{id}/delete" aria-label="/paths/~1api~1artifacts~1{id}/delete"></a>Delete an artifact<!-- --> </h2><div><h5 class="sc-fzplWN kzCYbv">path<!-- --> Parameters</h5><table class="sc-fznxsB jlDjZa"><tbody><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="id"><span class="sc-fzoXzr Lihot"></span><span>id</span><div class="sc-fzoWqW sc-fzplgP chnCRo"> required </div></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">integer</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw fAPeri" disabled=""><strong class="sc-psCJM kuedQF">204<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>Delete an artifact</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="delete" class="sc-qYiqT knTven http-verb delete">delete</span><span class="sc-prOVx eZNvzE">/api/artifacts/{id}</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/artifacts/{id}</div></div></div></div></div></div></div></div><div id="/paths/~1api~1config/get" data-section-id="/paths/~1api~1config/get" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1config/get" aria-label="/paths/~1api~1config/get"></a>Get a config<!-- --> </h2><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw kluWNM"><svg class="sc-fznKkj fscamO" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-psCJM kuedQF">200<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>A dictionary of configuration items</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="get" class="sc-qYiqT fjEWKb http-verb get">get</span><span class="sc-prOVx eZNvzE">/api/config</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/config</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-6" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-7" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-7" aria-labelledby="react-tabs-6"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"property1"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"isConfigured"</span>: <span class="token boolean">true</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"type"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"values"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"key"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"value"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"property2"</span>: <button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"isConfigured"</span>: <span class="token boolean">true</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"type"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"values"</span>: <button class="collapser" aria-label="expand"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable collapsed"><button class="collapser" aria-label="expand"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"key"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"value"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="/paths/~1api~1command/post" data-section-id="/paths/~1api~1command/post" class="sc-AxhUy emOdQX"><div class="sc-Axmtr sc-pBzUF doDHgT"><div class="sc-AxhCb kwETCN"><h2 class="sc-fzozJi iieAzF"><a class="sc-fznyAO itFEXV" href="#/paths/~1api~1command/post" aria-label="/paths/~1api~1command/post"></a>Run a command<!-- --> </h2><h5 class="sc-fzplWN kzCYbv">Request Body schema: <span class="sc-fzpkJw ezqAQI">application/json</span></h5><div class="sc-fzoant sc-fzoYHE cDQnzz"></div><table class="sc-fznxsB jlDjZa"><tbody><tr class="last undefined"><td class="sc-fzqBZW sc-fzoyAV daSLCE" kind="field" title="command"><span class="sc-fzoXzr Lihot"></span><span>command</span></td><td class="sc-fzoLag cdMYwp"><div><div><span class="sc-fzqzlV sc-fzqLLg jbhQmP"></span><span class="sc-fzqzlV sc-fzoxnE dUEjwH">string</span></div> <div><div class="sc-fzoant sc-fzoYHE kTjICZ"></div></div></div></td></tr></tbody></table><div><h3 class="sc-qQxXP cgMNyW">Responses</h3><div><button class="sc-qapaw kluWNM"><svg class="sc-fznKkj fscamO" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg><strong class="sc-psCJM kuedQF">200<!-- --> </strong><span class="sc-fzpkqZ ebKPJY"><p>A result of a command</p>
</span></button></div></div></div><div class="sc-AxgMl sc-AxheI iyqNNA"><div class="sc-pjSSY laiyxR"><button class="sc-qQmou cLaWfy"><span type="post" class="sc-qYiqT fOPsDV http-verb post">post</span><span class="sc-prOVx eZNvzE">/api/command</span><svg class="sc-fznKkj ejwrda" style="margin-right:-25px" version="1.1" viewBox="0 0 24 24" x="0" xmlns="http://www.w3.org/2000/svg" y="0" aria-hidden="true"><polygon points="17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "></polygon></svg></button><div aria-hidden="true" class="sc-pAZqv ekzMPL"><div class="sc-pJurq dfduhr"><div class="sc-fzoant sc-fzoYHE kTjICZ"></div><div tabindex="0" role="button"><div class="sc-pRTZB kYZNvV"><span></span>/api/command</div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Request samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-8" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-9" tabindex="0">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-9" aria-labelledby="react-tabs-8"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"command"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div><div><h3 class="sc-fzpans lerNRm"> Response samples </h3><div class="sc-fznzOf kuWevu" data-tabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-10" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-11" tabindex="0">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-11" aria-labelledby="react-tabs-10"><div><div class="sc-fzpisO dBHtDj"><span class="sc-fzoVTD hYwnSl">Content type</span><div class="sc-fzoJus ixzWHz">application/json</div></div><div class="sc-fznXWL iZtsQe"><div class="sc-fzqMdD cDvkPr"><div class="sc-fzomME nAZSf"><button><div class="sc-fznAgC jKdGWZ">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-fzoant dwarDg sc-fzowVh blNKQn"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable "><span class="property token string">"output"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"success"</span>: <span class="token boolean">true</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div></div><div class="sc-pscky iTeWTL"></div></div></div>
<script>
- const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"info":{"title":"Mihari API","version":"1.0"},"openapi":"3.0.0","paths":{"/api/alerts":{"get":{"summary":"Get alerts","parameters":[{"in":"query","name":"page","schema":{"type":"integer","default":0},"required":false},{"in":"query","name":"artifact","schema":{"type":"string"},"required":false},{"in":"query","name":"description","schema":{"type":"string"},"required":false},{"in":"query","name":"source","schema":{"type":"string"},"required":false},{"in":"query","name":"tag","schema":{"type":"string"},"required":false},{"in":"query","name":"title","schema":{"type":"string"},"required":false},{"in":"query","name":"toAt","schema":{"type":"string"},"required":false},{"in":"query","name":"fromAt","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"A list of matched alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSearchResults"}}}}}}},"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"responses":{"204":{"description":"Delete an alert"}}}},"/api/tags/":{"get":{"summary":"Get tags","responses":{"200":{"description":"A list of tags","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tags"}}}}}}},"/api/tags/{name}":{"delete":{"summary":"Delete a tag","parameters":[{"in":"path","name":"name","schema":{"type":"string"},"required":true}],"responses":{"204":{"description":"Delete a tag"}}}},"/api/sources":{"get":{"summary":"Get sources","responses":{"200":{"description":"A list of sources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}}}}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"responses":{"204":{"description":"Delete an artifact"}}}},"/api/config":{"get":{"summary":"Get a config","responses":{"200":{"description":"A dictionary of configuration items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Config"}}}}}}},"/api/command":{"post":{"summary":"Run a command","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandRequest"}}}},"responses":{"200":{"description":"A result of a command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResult"}}}}}}}},"components":{"schemas":{"Tag":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"Tags":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Tag"}]}},"Sources":{"type":"array","items":{"allOf":[{"type":"string"}]}},"Artifact":{"type":"object","properties":{"id":{"type":"integer"},"data":{"type":"string"},"dataType":{"type":"string"}}},"Alert":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"},"source":{"type":"string"},"createdAt":{"type":"string"},"tags":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Tag"}]}},"artifacts":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Artifact"}]}}}},"AlertSearchResults":{"type":"object","properties":{"alerts":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Alert"}]}},"currentPage":{"type":"integer"},"pageSize":{"type":"integer"},"total":{"type":"integer"}}},"ConfigItemValue":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ConfigItem":{"type":"object","properties":{"isConfigured":{"type":"boolean"},"type":{"type":"string"},"values":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ConfigItemValue"}]}}}},"Config":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConfigItem"}},"CommandRequest":{"type":"object","properties":{"command":{"type":"string"}}},"CommandResult":{"type":"object","properties":{"output":{"type":"string"},"success":{"type":"boolean"}}}}}}},"searchIndex":{"store":["/paths/~1api~1alerts/get","/paths/~1api~1alerts~1{id}/delete","/paths/~1api~1tags~1/get","/paths/~1api~1tags~1{name}/delete","/paths/~1api~1sources/get","/paths/~1api~1artifacts~1{id}/delete","/paths/~1api~1config/get","/paths/~1api~1command/post"],"index":{"version":"2.3.8","fields":["title","description"],"fieldVectors":[["title/0",[0,1.483]],["description/0",[]],["title/1",[0,1.127,1,0.831]],["description/1",[]],["title/2",[2,1.483]],["description/2",[]],["title/3",[1,0.831,2,1.127]],["description/3",[]],["title/4",[3,2.075]],["description/4",[]],["title/5",[1,0.831,4,1.577]],["description/5",[]],["title/6",[5,2.075]],["description/6",[]],["title/7",[6,1.577,7,1.577]],["description/7",[]]],"invertedIndex":[["alert",{"_index":0,"title":{"0":{},"1":{}},"description":{}}],["artifact",{"_index":4,"title":{"5":{}},"description":{}}],["command",{"_index":7,"title":{"7":{}},"description":{}}],["config",{"_index":5,"title":{"6":{}},"description":{}}],["delet",{"_index":1,"title":{"1":{},"3":{},"5":{}},"description":{}}],["run",{"_index":6,"title":{"7":{}},"description":{}}],["sourc",{"_index":3,"title":{"4":{}},"description":{}}],["tag",{"_index":2,"title":{"2":{},"3":{}},"description":{}}]],"pipeline":[]}},"options":{}};
+ const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"info":{"title":"Mihari API","version":"1.0"},"openapi":"3.0.0","paths":{"/api/alerts":{"get":{"summary":"Get alerts","parameters":[{"in":"query","name":"page","schema":{"type":"integer","default":0},"required":false},{"in":"query","name":"artifact","schema":{"type":"string"},"required":false},{"in":"query","name":"description","schema":{"type":"string"},"required":false},{"in":"query","name":"source","schema":{"type":"string"},"required":false},{"in":"query","name":"tag","schema":{"type":"string"},"required":false},{"in":"query","name":"title","schema":{"type":"string"},"required":false},{"in":"query","name":"toAt","schema":{"type":"string"},"required":false},{"in":"query","name":"fromAt","schema":{"type":"string"},"required":false}],"responses":{"200":{"description":"A list of matched alerts","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertSearchResults"}}}}}}},"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"responses":{"204":{"description":"Delete an alert"}}}},"/api/tags/":{"get":{"summary":"Get tags","responses":{"200":{"description":"A list of tags","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Tags"}}}}}}},"/api/tags/{name}":{"delete":{"summary":"Delete a tag","parameters":[{"in":"path","name":"name","schema":{"type":"string"},"required":true}],"responses":{"204":{"description":"Delete a tag"}}}},"/api/sources":{"get":{"summary":"Get sources","responses":{"200":{"description":"A list of sources","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sources"}}}}}}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"responses":{"204":{"description":"Delete an artifact"}}}},"/api/config":{"get":{"summary":"Get a config","responses":{"200":{"description":"A dictionary of configuration items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Config"}}}}}}},"/api/command":{"post":{"summary":"Run a command","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandRequest"}}}},"responses":{"200":{"description":"A result of a command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommandResult"}}}}}}}},"components":{"schemas":{"Tag":{"type":"object","properties":{"id":{"type":"integer"},"name":{"type":"string"}}},"Tags":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Tag"}]}},"Sources":{"type":"array","items":{"allOf":[{"type":"string"}]}},"Artifact":{"type":"object","properties":{"id":{"type":"integer"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string","nullable":true}}},"Alert":{"type":"object","properties":{"id":{"type":"integer"},"title":{"type":"string"},"description":{"type":"string"},"source":{"type":"string"},"createdAt":{"type":"string"},"tags":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Tag"}]}},"artifacts":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Artifact"}]}}}},"AlertSearchResults":{"type":"object","properties":{"alerts":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Alert"}]}},"currentPage":{"type":"integer"},"pageSize":{"type":"integer"},"total":{"type":"integer"}}},"ConfigItemValue":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ConfigItem":{"type":"object","properties":{"isConfigured":{"type":"boolean"},"type":{"type":"string"},"values":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/ConfigItemValue"}]}}}},"Config":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ConfigItem"}},"CommandRequest":{"type":"object","properties":{"command":{"type":"string"}}},"CommandResult":{"type":"object","properties":{"output":{"type":"string"},"success":{"type":"boolean"}}}}}}},"searchIndex":{"store":["/paths/~1api~1alerts/get","/paths/~1api~1alerts~1{id}/delete","/paths/~1api~1tags~1/get","/paths/~1api~1tags~1{name}/delete","/paths/~1api~1sources/get","/paths/~1api~1artifacts~1{id}/delete","/paths/~1api~1config/get","/paths/~1api~1command/post"],"index":{"version":"2.3.8","fields":["title","description"],"fieldVectors":[["title/0",[0,1.483]],["description/0",[]],["title/1",[0,1.127,1,0.831]],["description/1",[]],["title/2",[2,1.483]],["description/2",[]],["title/3",[1,0.831,2,1.127]],["description/3",[]],["title/4",[3,2.075]],["description/4",[]],["title/5",[1,0.831,4,1.577]],["description/5",[]],["title/6",[5,2.075]],["description/6",[]],["title/7",[6,1.577,7,1.577]],["description/7",[]]],"invertedIndex":[["alert",{"_index":0,"title":{"0":{},"1":{}},"description":{}}],["artifact",{"_index":4,"title":{"5":{}},"description":{}}],["command",{"_index":7,"title":{"7":{}},"description":{}}],["config",{"_index":5,"title":{"6":{}},"description":{}}],["delet",{"_index":1,"title":{"1":{},"3":{},"5":{}},"description":{}}],["run",{"_index":6,"title":{"7":{}},"description":{}}],["sourc",{"_index":3,"title":{"4":{}},"description":{}}],["tag",{"_index":2,"title":{"2":{},"3":{}},"description":{}}]],"pipeline":[]}},"options":{}};
var container = document.getElementById('redoc');
Redoc.hydrate(__redoc_state, container);
</script>
\ No newline at end of file