mihari 5.1.3 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mihari/commands/web.rb +5 -8
- data/lib/mihari/emitters/misp.rb +4 -4
- data/lib/mihari/entities/artifact.rb +3 -2
- data/lib/mihari/mixins/configurable.rb +3 -1
- data/lib/mihari/models/alert.rb +16 -12
- data/lib/mihari/models/rule.rb +1 -2
- data/lib/mihari/schemas/rule.rb +1 -0
- data/lib/mihari/structs/filters.rb +1 -15
- data/lib/mihari/structs/rule.rb +1 -1
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/app.rb +7 -5
- data/lib/mihari/web/endpoints/alerts.rb +7 -20
- data/lib/mihari/web/endpoints/rules.rb +4 -11
- data/lib/mihari/web/public/assets/{fa-brands-400-2ef6fdde.ttf → fa-brands-400-20c4a58b.ttf} +0 -0
- data/lib/mihari/web/public/assets/fa-brands-400-74833209.woff2 +0 -0
- data/lib/mihari/web/public/assets/{fa-regular-400-12dea17b.ttf → fa-regular-400-528d022d.ttf} +0 -0
- data/lib/mihari/web/public/assets/fa-regular-400-8e7e5ea1.woff2 +0 -0
- data/lib/mihari/web/public/assets/{fa-solid-900-67a880b4.ttf → fa-solid-900-67a65763.ttf} +0 -0
- data/lib/mihari/web/public/assets/fa-solid-900-7152a693.woff2 +0 -0
- data/lib/mihari/web/public/assets/{fa-v4compatibility-8d9500e8.ttf → fa-v4compatibility-0515a423.ttf} +0 -0
- data/lib/mihari/web/public/assets/fa-v4compatibility-694a17c3.woff2 +0 -0
- data/lib/mihari/web/public/assets/index-9948ee35.js +50 -0
- data/lib/mihari/web/public/assets/{index-625e95fe.css → index-d88cc3f1.css} +2 -2
- data/lib/mihari/web/public/index.html +2 -2
- data/lib/mihari/web/public/redoc-static.html +7 -4
- data/lib/mihari.rb +2 -0
- data/mihari.gemspec +8 -8
- metadata +30 -30
- data/lib/mihari/web/public/assets/fa-brands-400-f4617423.woff2 +0 -0
- data/lib/mihari/web/public/assets/fa-regular-400-7ba24c41.woff2 +0 -0
- data/lib/mihari/web/public/assets/fa-solid-900-e2c5cf54.woff2 +0 -0
- data/lib/mihari/web/public/assets/fa-v4compatibility-7c377405.woff2 +0 -0
- data/lib/mihari/web/public/assets/index-7d0fb8c4.js +0 -50
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
7
7
|
<link rel="icon" href="/favicon.ico" />
|
8
8
|
<title>Mihari</title>
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
10
|
-
<link rel="stylesheet" href="/assets/index-
|
9
|
+
<script type="module" crossorigin src="/assets/index-9948ee35.js"></script>
|
10
|
+
<link rel="stylesheet" href="/assets/index-d88cc3f1.css">
|
11
11
|
</head>
|
12
12
|
<body>
|
13
13
|
<noscript>
|
@@ -2044,6 +2044,9 @@ data-styled.g61[id="sc-jffHpj"]{content:"cThoNa,"}/*!sc*/
|
|
2044
2044
|
data-styled.g63[id="sc-oeezt"]{content:"dLCGMn,"}/*!sc*/
|
2045
2045
|
.hIkHYw{color:#d41f1c;font-size:0.9em;font-weight:normal;margin-left:20px;line-height:1;}/*!sc*/
|
2046
2046
|
data-styled.g64[id="sc-hhIiOg"]{content:"hIkHYw,"}/*!sc*/
|
2047
|
+
.fElSEN{border-radius:2px;word-break:break-word;background-color:rgba(51,51,51,0.05);color:rgba(51,51,51,0.9);padding:0 5px;border:1px solid rgba(51,51,51,0.1);font-family:Courier,monospace;}/*!sc*/
|
2048
|
+
.sc-ckTSus + .sc-ckTSus{margin-left:0;}/*!sc*/
|
2049
|
+
data-styled.g68[id="sc-ckTSus"]{content:"fElSEN,"}/*!sc*/
|
2047
2050
|
.fdKBSs{margin-top:0;margin-bottom:0.5em;}/*!sc*/
|
2048
2051
|
data-styled.g93[id="sc-dFRpbK"]{content:"fdKBSs,"}/*!sc*/
|
2049
2052
|
.gidAUi{border:1px solid #32329f;color:#32329f;font-weight:normal;margin-left:0.5em;padding:4px 8px 4px;display:inline-block;-webkit-text-decoration:none;text-decoration:none;cursor:pointer;}/*!sc*/
|
@@ -2173,9 +2176,9 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/
|
|
2173
2176
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">id</span><div class="sc-oeezt sc-hhIiOg dLCGMn hIkHYw">required</div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Delete an alert</p>
|
2174
2177
|
</span></button></div><div><button class="sc-htmcrh NAUPn"><svg class="sc-dIsUp dVWHLw" 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-fWWYYk cMoEZ">404<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Not found</p>
|
2175
2178
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="delete" class="sc-fmdNqN bJzUtf http-verb delete">delete</span><span class="sc-jXcxbT fCEUju">/api/alerts/{id}</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/alerts/{id}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="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" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-2" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-3" data-rttab="true">404</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-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"message"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div><div class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-3" aria-labelledby="react-tabs-2"></div></div></div></div></div></div><div id="tag/alerts/paths/~1api~1alerts/get" data-section-id="tag/alerts/paths/~1api~1alerts/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM eftmgB"><a class="sc-crzoAE iUxAWq" href="#tag/alerts/paths/~1api~1alerts/get" aria-label="tag/alerts/paths/~1api~1alerts/get"></a>Search alerts<!-- --> </h2><div class="sc-iGkqmO hCTIhr"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"><p>Search alerts</p>
|
2176
|
-
</div></div><div><h5 class="sc-iqAclL eONCmm">query<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="page"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">page</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div
|
2179
|
+
</div></div><div><h5 class="sc-iqAclL eONCmm">query<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="page"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">page</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-laZMeE jWaWWE"> <!-- -->Default:<!-- --> </span> <span class="sc-laZMeE sc-ckTSus jWaWWE fElSEN">1</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="limit"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">limit</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-laZMeE jWaWWE"> <!-- -->Default:<!-- --> </span> <span class="sc-laZMeE sc-ckTSus jWaWWE fElSEN">10</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="artifact"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">artifact</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="rule_id"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">rule_id</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="tag"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">tag</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="fromAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">fromAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="toAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">toAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Search alerts</p>
|
2177
2180
|
</span></button></div><div><button class="sc-htmcrh NAUPn"><svg class="sc-dIsUp dVWHLw" 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-fWWYYk cMoEZ">404<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Not found</p>
|
2178
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="get" class="sc-fmdNqN ihNycv http-verb get">get</span><span class="sc-jXcxbT fCEUju">/api/alerts</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="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" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-6" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-7" data-rttab="true">404</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-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"alerts"</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 string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"ruleId"</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">"2019-08-24T14:15:22Z"</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 string">"string"</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><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"><span class="token string">"string"</span></div></li></ul><span class="token punctuation">]</span
|
2181
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="get" class="sc-fmdNqN ihNycv http-verb get">get</span><span class="sc-jXcxbT fCEUju">/api/alerts</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/alerts</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="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" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-6" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-7" data-rttab="true">404</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-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"alerts"</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 string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"ruleId"</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">"2019-08-24T14:15:22Z"</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 string">"string"</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><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"><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 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">"name"</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 collapsed"><span class="property token string">"total"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"pageSize"</span>: <span class="token number">0</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 class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-7" aria-labelledby="react-tabs-6"></div></div></div></div></div></div><div id="tag/artifacts" data-section-id="tag/artifacts" class="sc-eCApnc jlMQbh"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h1 class="sc-fujyAs bpZWeL"><a class="sc-crzoAE iUxAWq" href="#tag/artifacts" aria-label="tag/artifacts"></a>artifacts</h1></div></div><div class="sc-hKFxyN bJcDWV"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV redoc-markdown "><p>Operations about artifacts</p>
|
2179
2182
|
</div></div></div><div id="tag/artifacts/paths/~1api~1artifacts~1{id}/delete" data-section-id="tag/artifacts/paths/~1api~1artifacts~1{id}/delete" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM eftmgB"><a class="sc-crzoAE iUxAWq" href="#tag/artifacts/paths/~1api~1artifacts~1{id}/delete" aria-label="tag/artifacts/paths/~1api~1artifacts~1{id}/delete"></a>Delete an artifact<!-- --> </h2><div class="sc-iGkqmO hCTIhr"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"><p>Delete an artifact</p>
|
2180
2183
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">id</span><div class="sc-oeezt sc-hhIiOg dLCGMn hIkHYw">required</div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Delete an artifact</p>
|
2181
2184
|
</span></button></div><div><button class="sc-htmcrh NAUPn"><svg class="sc-dIsUp dVWHLw" 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-fWWYYk cMoEZ">404<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Not found</p>
|
@@ -2204,7 +2207,7 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/
|
|
2204
2207
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="put" class="sc-fmdNqN blNLGm http-verb put">put</span><span class="sc-jXcxbT fCEUju">/api/rules</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Request samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-34" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-35" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-35" aria-labelledby="react-tabs-34"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"yaml"</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-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-36" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-37" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-37" aria-labelledby="react-tabs-36"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"title"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"description"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"yaml"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"updatedAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</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">"name"</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></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/rules/paths/~1api~1rules/post" data-section-id="tag/rules/paths/~1api~1rules/post" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM eftmgB"><a class="sc-crzoAE iUxAWq" href="#tag/rules/paths/~1api~1rules/post" aria-label="tag/rules/paths/~1api~1rules/post"></a>Create a rule<!-- --> </h2><div class="sc-iGkqmO hCTIhr"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"><p>Create a rule</p>
|
2205
2208
|
</div></div><h5 class="sc-iqAclL eONCmm">Request Body schema: <span class="sc-cBoqAE eKyrDP">application/json</span></h5><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"></div><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="yaml"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">yaml</span><div class="sc-oeezt sc-hhIiOg dLCGMn hIkHYw">required</div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">201<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Create a rule</p>
|
2206
2209
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="post" class="sc-fmdNqN ldMUmp http-verb post">post</span><span class="sc-jXcxbT fCEUju">/api/rules</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Request samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="react-tabs__tab react-tabs__tab--selected" role="tab" id="react-tabs-38" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-39" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-39" aria-labelledby="react-tabs-38"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"yaml"</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-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-40" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-41" tabindex="0" data-rttab="true">201</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-41" aria-labelledby="react-tabs-40"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"id"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"title"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"description"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"yaml"</span>: <span class="token string">"string"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"createdAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"updatedAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"tags"</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">"name"</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></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/rules/paths/~1api~1rules/get" data-section-id="tag/rules/paths/~1api~1rules/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM eftmgB"><a class="sc-crzoAE iUxAWq" href="#tag/rules/paths/~1api~1rules/get" aria-label="tag/rules/paths/~1api~1rules/get"></a>Search rules<!-- --> </h2><div class="sc-iGkqmO hCTIhr"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"><p>Search rules</p>
|
2207
|
-
</div></div><div><h5 class="sc-iqAclL eONCmm">query<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="page"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">page</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="title"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">title</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="description"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">description</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="tag"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">tag</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="fromAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">fromAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="toAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">toAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Search rules</p>
|
2210
|
+
</div></div><div><h5 class="sc-iqAclL eONCmm">query<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="page"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">page</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-laZMeE jWaWWE"> <!-- -->Default:<!-- --> </span> <span class="sc-laZMeE sc-ckTSus jWaWWE fElSEN">1</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="limit"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">limit</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">integer</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div><div><span class="sc-laZMeE jWaWWE"> <!-- -->Default:<!-- --> </span> <span class="sc-laZMeE sc-ckTSus jWaWWE fElSEN">10</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="title"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">title</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="description"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">description</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="tag"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">tag</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class=""><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="fromAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">fromAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="toAt"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">toAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Search rules</p>
|
2208
2211
|
</span></button></div><div><button class="sc-htmcrh NAUPn"><svg class="sc-dIsUp dVWHLw" 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-fWWYYk cMoEZ">404<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Not found</p>
|
2209
2212
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="get" class="sc-fmdNqN ihNycv http-verb get">get</span><span class="sc-jXcxbT fCEUju">/api/rules</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-42" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-43" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-44" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-45" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-43" aria-labelledby="react-tabs-42"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"rules"</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 string">"string"</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">"yaml"</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">"2019-08-24T14:15:22Z"</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"updatedAt"</span>: <span class="token string">"2019-08-24T14:15:22Z"</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">"name"</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 collapsed"><span class="property token string">"total"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"currentPage"</span>: <span class="token number">0</span><span class="token punctuation">,</span></div></li><li><div class="hoverable collapsed"><span class="property token string">"pageSize"</span>: <span class="token number">0</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 class="react-tabs__tab-panel" role="tabpanel" id="react-tabs-45" aria-labelledby="react-tabs-44"></div></div></div></div></div></div><div id="tag/rules/paths/~1api~1rules~1{id}~1run/get" data-section-id="tag/rules/paths/~1api~1rules~1{id}~1run/get" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM eftmgB"><a class="sc-crzoAE iUxAWq" href="#tag/rules/paths/~1api~1rules~1{id}~1run/get" aria-label="tag/rules/paths/~1api~1rules~1{id}~1run/get"></a>Run a rule<!-- --> </h2><div class="sc-iGkqmO hCTIhr"><div class="sc-iJCRrE sc-ciSkZP jCdxGr QGruV"><p>Run a rule</p>
|
2210
2213
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last "><td class="sc-hBMUJo sc-fFSPTT iwcKgn cAqMTE" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span class="property-name">id</span><div class="sc-oeezt sc-hhIiOg dLCGMn hIkHYw">required</div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-laZMeE sc-iNiQyp jWaWWE jrLlAa"></span><span class="sc-laZMeE sc-jffHpj jWaWWE cThoNa">string</span></div> <div><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Run a rule</p>
|
@@ -2218,7 +2221,7 @@ data-styled.g138[id="sc-iIgjPs"]{content:"jIUTls,"}/*!sc*/
|
|
2218
2221
|
</div></div><div><h3 class="sc-fIxmyt DvFer">Responses</h3><div><button class="sc-htmcrh lbYftx"><svg class="sc-dIsUp dqYXmg" 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-fWWYYk cMoEZ">200<!-- --> </strong><span class="sc-jcwpoC eDjFAZ"><p>Get tags</p>
|
2219
2222
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-EZqKI fWsqvQ"><button class="sc-eEVmNe ilvUMs"><span type="get" class="sc-fmdNqN ihNycv http-verb get">get</span><span class="sc-jXcxbT fCEUju">/api/tags</span><svg class="sc-dIsUp bRmrKA" 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-ljsmAU flIrdF"><div class="sc-jlZJtj fQkroN"><div class="sc-iJCRrE sc-ciSkZP jCdxGr lhENGb"></div><div tabindex="0" role="button"><div class="sc-dTSzeu dfUAUz"><span></span>/api/tags</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-cxNHIi gxohHo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-54" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-55" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-55" aria-labelledby="react-tabs-54"><div><div class="sc-Arkif jojbRz"><span class="sc-cOifOu hlhNtL">Content type</span><div class="sc-bBjRSN kQSIAz">application/json</div></div><div class="sc-jgPyTC dSaTNC"><div class="sc-jNnpgg esZIbL"><div class="sc-giAqHp hMPeqJ"><button><div class="sc-carFqZ UksDl">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iJCRrE jCdxGr sc-dPaNzc gyljjx"><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">"tags"</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><div class="sc-ellfGf bgakXB"></div></div></div>
|
2220
2223
|
<script>
|
2221
|
-
const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"openapi":"3.0.0","info":{"title":"Mihari API","version":"0.0.1"},"tags":[{"name":"alerts","description":"Operations about alerts"},{"name":"artifacts","description":"Operations about artifacts"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"tags","description":"Operations about tags"}],"paths":{"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","description":"Delete an alert","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Delete an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/alerts":{"get":{"summary":"Search alerts","description":"Search alerts","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"artifact","required":false,"schema":{"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"type":"string"}},{"in":"query","name":"rule_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"title","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"asn","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"dnsRecord","required":false,"schema":{"type":"string"}},{"in":"query","name":"reverseDnsName","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Search alerts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_AlertsWithPagination"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","description":"Delete an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Delete an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]},"get":{"summary":"Get an artifact","description":"Get an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Get an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/artifacts/{id}/enrich":{"get":{"summary":"Enrich an artifact","description":"Enrich an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Enrich an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/configs":{"get":{"summary":"Get configs","description":"Get configs","responses":{"200":{"description":"Get configs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Config"}}}}}},"tags":["configs"]}},"/api/ip_addresses/{ip}":{"get":{"summary":"Get an IP address","description":"Get an IP address","parameters":[{"in":"path","name":"ip","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get an IP address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_IPAddress"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["ip_addresses"]}},"/api/rules/{id}":{"delete":{"summary":"Delete a rule","description":"Delete a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Get a rule","description":"Get a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules":{"put":{"summary":"Update a rule","description":"Update a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/putApiRules"}}},"required":true},"responses":{"200":{"description":"Update a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"]},"post":{"summary":"Create a rule","description":"Create a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiRules"}}},"required":true},"responses":{"201":{"description":"Create a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"]},"get":{"summary":"Search rules","description":"Search rules","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32"}},{"in":"query","name":"title","required":false,"schema":{"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search rules","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RulesWithPagination"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/{id}/run":{"get":{"summary":"Run a rule","description":"Run a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Run a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/ids":{"get":{"summary":"Get rule IDs","description":"Get Rule IDs","responses":{"200":{"description":"Get Rule IDs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RuleIDs"}}}}}},"tags":["rules"]}},"/api/tags/{name}":{"delete":{"summary":"Delete a tag","description":"Delete a tag","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a tag","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["tags"]}},"/api/tags":{"get":{"summary":"Get tags","description":"Get tags","responses":{"200":{"description":"Get tags","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tags"}}}}}},"tags":["tags"]}}},"components":{"schemas":{"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_AlertsWithPagination":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["alerts","total","currentPage","pageSize"],"description":"Mihari_Entities_AlertsWithPagination model"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"ruleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_BaseArtifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","ruleId","createdAt","tags"]},"Mihari_Entities_BaseArtifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object"}},"required":["id","data","dataType","source"]},"Mihari_Entities_Tag":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object"},"autonomousSystem":{"$ref":"#/components/schemas/Mihari_Entities_AutonomousSystem"},"geolocation":{"$ref":"#/components/schemas/Mihari_Entities_Geolocation"},"whoisRecord":{"$ref":"#/components/schemas/Mihari_Entities_WhoisRecord"},"reverseDnsNames":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_ReverseDnsName"}},"dnsRecords":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_DnsRecord"}},"cpes":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_CPE"}},"ports":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Port"}}},"required":["id","data","dataType","source"],"description":"Mihari_Entities_Artifact model"},"Mihari_Entities_AutonomousSystem":{"type":"object","properties":{"asn":{"type":"integer","format":"int32"}},"required":["asn"]},"Mihari_Entities_Geolocation":{"type":"object","properties":{"country":{"type":"string"},"countryCode":{"type":"string"}},"required":["country","countryCode"]},"Mihari_Entities_WhoisRecord":{"type":"object","properties":{"domain":{"type":"string"},"createdOn":{"type":"string","format":"date"},"updatedOn":{"type":"string","format":"date"},"expiresOn":{"type":"string","format":"date"},"registrar":{"type":"object"},"contacts":{"type":"array","items":{"type":"object"}}},"required":["domain","contacts"]},"Mihari_Entities_ReverseDnsName":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_DnsRecord":{"type":"object","properties":{"resource":{"type":"string"},"value":{"type":"string"}},"required":["resource","value"]},"Mihari_Entities_CPE":{"type":"object","properties":{"cpe":{"type":"string"}},"required":["cpe"]},"Mihari_Entities_Port":{"type":"object","properties":{"port":{"type":"integer","format":"int32"}},"required":["port"]},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["name","type","values","isConfigured"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_IPAddress":{"type":"object","properties":{"ip":{"type":"string"},"countryCode":{"type":"string"},"hostname":{"type":"string"},"loc":{"type":"string"},"asn":{"type":"integer","format":"int32"}},"required":["ip","countryCode","loc"],"description":"Mihari_Entities_IPAddress model"},"putApiRules":{"type":"object","properties":{"id":{"type":"string"},"yaml":{"type":"string"}},"required":["id","yaml"],"description":"Update a rule"},"Mihari_Entities_Rule":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"yaml":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","yaml","createdAt","updatedAt","tags"],"description":"Mihari_Entities_Rule model"},"postApiRules":{"type":"object","properties":{"yaml":{"type":"string"}},"required":["yaml"],"description":"Create a rule"},"Mihari_Entities_RulesWithPagination":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["rules","total","currentPage","pageSize"],"description":"Mihari_Entities_RulesWithPagination model"},"Mihari_Entities_RuleIDs":{"type":"object","properties":{"ruleIds":{"type":"string"}},"required":["ruleIds"],"description":"Mihari_Entities_RuleIDs model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","tag/alerts/paths/~1api~1alerts~1{id}/delete","tag/alerts/paths/~1api~1alerts/get","tag/artifacts","tag/artifacts/paths/~1api~1artifacts~1{id}/delete","tag/artifacts/paths/~1api~1artifacts~1{id}/get","tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get","tag/configs","tag/configs/paths/~1api~1configs/get","tag/ip_addresses","tag/ip_addresses/paths/~1api~1ip_addresses~1{ip}/get","tag/rules","tag/rules/paths/~1api~1rules~1{id}/delete","tag/rules/paths/~1api~1rules~1{id}/get","tag/rules/paths/~1api~1rules/put","tag/rules/paths/~1api~1rules/post","tag/rules/paths/~1api~1rules/get","tag/rules/paths/~1api~1rules~1{id}~1run/get","tag/rules/paths/~1api~1rules~1ids/get","tag/tags","tag/tags/paths/~1api~1tags~1{name}/delete","tag/tags/paths/~1api~1tags/get"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.477]],["description/0",[0,1.385,1,1.385]],["title/1",[0,1.128,2,0.889]],["description/1",[0,1.178,2,0.928,3,2.544]],["title/2",[0,1.128,4,1.456]],["description/2",[0,1.178,4,1.52,5,2.544]],["title/3",[6,1.163]],["description/3",[1,1.385,6,1.091]],["title/4",[2,0.889,6,0.889]],["description/4",[2,0.928,6,0.928,7,2.068]],["title/5",[6,1.163]],["description/5",[6,1.091,7,2.432]],["title/6",[6,0.889,8,1.981]],["description/6",[6,0.928,8,2.068,9,2.544]],["title/7",[10,1.907]],["description/7",[1,1.385,10,1.788]],["title/8",[10,1.907]],["description/8",[10,1.788,11,2.992]],["title/9",[12,2.594]],["description/9",[1,1.385,12,2.432]],["title/10",[13,1.981,14,1.981]],["description/10",[13,2.068,14,2.068,15,2.544]],["title/11",[16,0.388]],["description/11",[1,1.385,16,0.364]],["title/12",[2,0.889,16,0.296]],["description/12",[2,0.928,16,0.31,17,2.068]],["title/13",[16,0.388]],["description/13",[16,0.364,17,2.432]],["title/14",[16,0.296,18,1.981]],["description/14",[16,0.31,18,2.068,19,1.755]],["title/15",[16,0.296,20,1.981]],["description/15",[16,0.31,19,1.755,20,2.068]],["title/16",[4,1.456,16,0.296]],["description/16",[4,1.52,16,0.31,19,1.755]],["title/17",[16,0.296,21,1.981]],["description/17",[16,0.31,21,2.068,22,2.544]],["title/18",[16,0.296,23,1.981]],["description/18",[16,0.31,23,2.068,24,2.544]],["title/19",[25,1.477]],["description/19",[1,1.385,25,1.385]],["title/20",[2,0.889,25,1.128]],["description/20",[2,0.928,25,1.178,26,2.544]],["title/21",[25,1.477]],["description/21",[25,1.385,27,2.992]]],"invertedIndex":[["address",{"_index":14,"title":{"10":{}},"description":{"10":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{}},"description":{"0":{},"1":{},"2":{}}}],["api/alert",{"_index":5,"title":{},"description":{"2":{}}}],["api/alerts/{id",{"_index":3,"title":{},"description":{"1":{}}}],["api/artifacts/{id",{"_index":7,"title":{},"description":{"4":{},"5":{}}}],["api/artifacts/{id}/enrich",{"_index":9,"title":{},"description":{"6":{}}}],["api/config",{"_index":11,"title":{},"description":{"8":{}}}],["api/ip_addresses/{ip",{"_index":15,"title":{},"description":{"10":{}}}],["api/rul",{"_index":19,"title":{},"description":{"14":{},"15":{},"16":{}}}],["api/rules/id",{"_index":24,"title":{},"description":{"18":{}}}],["api/rules/{id",{"_index":17,"title":{},"description":{"12":{},"13":{}}}],["api/rules/{id}/run",{"_index":22,"title":{},"description":{"17":{}}}],["api/tag",{"_index":27,"title":{},"description":{"21":{}}}],["api/tags/{nam",{"_index":26,"title":{},"description":{"20":{}}}],["artifact",{"_index":6,"title":{"3":{},"4":{},"5":{},"6":{}},"description":{"3":{},"4":{},"5":{},"6":{}}}],["config",{"_index":10,"title":{"7":{},"8":{}},"description":{"7":{},"8":{}}}],["creat",{"_index":20,"title":{"15":{}},"description":{"15":{}}}],["delet",{"_index":2,"title":{"1":{},"4":{},"12":{},"20":{}},"description":{"1":{},"4":{},"12":{},"20":{}}}],["enrich",{"_index":8,"title":{"6":{}},"description":{"6":{}}}],["id",{"_index":23,"title":{"18":{}},"description":{"18":{}}}],["ip",{"_index":13,"title":{"10":{}},"description":{"10":{}}}],["ip_address",{"_index":12,"title":{"9":{}},"description":{"9":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"3":{},"7":{},"9":{},"11":{},"19":{}}}],["rule",{"_index":16,"title":{"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{}},"description":{"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{}}}],["run",{"_index":21,"title":{"17":{}},"description":{"17":{}}}],["search",{"_index":4,"title":{"2":{},"16":{}},"description":{"2":{},"16":{}}}],["tag",{"_index":25,"title":{"19":{},"20":{},"21":{}},"description":{"19":{},"20":{},"21":{}}}],["updat",{"_index":18,"title":{"14":{}},"description":{"14":{}}}]],"pipeline":[]}},"options":{}};
|
2224
|
+
const __redoc_state = {"menu":{"activeItemIdx":-1},"spec":{"data":{"openapi":"3.0.0","info":{"title":"Mihari API","version":"0.0.1"},"tags":[{"name":"alerts","description":"Operations about alerts"},{"name":"artifacts","description":"Operations about artifacts"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"tags","description":"Operations about tags"}],"paths":{"/api/alerts/{id}":{"delete":{"summary":"Delete an alert","description":"Delete an alert","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Delete an alert","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/alerts":{"get":{"summary":"Search alerts","description":"Search alerts","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"artifact","required":false,"schema":{"type":"string"}},{"in":"query","name":"rule_id","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search alerts","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_AlertsWithPagination"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"]}},"/api/artifacts/{id}":{"delete":{"summary":"Delete an artifact","description":"Delete an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Delete an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]},"get":{"summary":"Get an artifact","description":"Get an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Get an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/artifacts/{id}/enrich":{"get":{"summary":"Enrich an artifact","description":"Enrich an artifact","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"Enrich an artifact","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["artifacts"]}},"/api/configs":{"get":{"summary":"Get configs","description":"Get configs","responses":{"200":{"description":"Get configs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Config"}}}}}},"tags":["configs"]}},"/api/ip_addresses/{ip}":{"get":{"summary":"Get an IP address","description":"Get an IP address","parameters":[{"in":"path","name":"ip","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get an IP address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_IPAddress"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["ip_addresses"]}},"/api/rules/{id}":{"delete":{"summary":"Delete a rule","description":"Delete a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]},"get":{"summary":"Get a rule","description":"Get a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Get a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules":{"put":{"summary":"Update a rule","description":"Update a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/putApiRules"}}},"required":true},"responses":{"200":{"description":"Update a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"]},"post":{"summary":"Create a rule","description":"Create a rule","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiRules"}}},"required":true},"responses":{"201":{"description":"Create a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"]},"get":{"summary":"Search rules","description":"Search rules","parameters":[{"in":"query","name":"page","required":false,"schema":{"type":"integer","format":"int32","default":1}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"in":"query","name":"title","required":false,"schema":{"type":"string"}},{"in":"query","name":"description","required":false,"schema":{"type":"string"}},{"in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"in":"query","name":"fromAt","required":false,"schema":{"type":"string","format":"date-time"}},{"in":"query","name":"toAt","required":false,"schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Search rules","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RulesWithPagination"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/{id}/run":{"get":{"summary":"Run a rule","description":"Run a rule","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Run a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"]}},"/api/rules/ids":{"get":{"summary":"Get rule IDs","description":"Get Rule IDs","responses":{"200":{"description":"Get Rule IDs","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_RuleIDs"}}}}}},"tags":["rules"]}},"/api/tags/{name}":{"delete":{"summary":"Delete a tag","description":"Delete a tag","parameters":[{"in":"path","name":"name","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Delete a tag","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["tags"]}},"/api/tags":{"get":{"summary":"Get tags","description":"Get tags","responses":{"200":{"description":"Get tags","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tags"}}}}}},"tags":["tags"]}}},"components":{"schemas":{"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_AlertsWithPagination":{"type":"object","properties":{"alerts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Alert"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["alerts","total","currentPage","pageSize"],"description":"Mihari_Entities_AlertsWithPagination model"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"ruleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_BaseArtifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","ruleId","createdAt","tags"]},"Mihari_Entities_BaseArtifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}}},"required":["id","data","dataType","source"]},"Mihari_Entities_Tag":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"string","description":"String representation of the ID"},"data":{"type":"string"},"dataType":{"type":"string"},"source":{"type":"string"},"tags":{"type":"array","items":{"type":"string"}},"metadata":{"type":"object"},"autonomousSystem":{"$ref":"#/components/schemas/Mihari_Entities_AutonomousSystem"},"geolocation":{"$ref":"#/components/schemas/Mihari_Entities_Geolocation"},"whoisRecord":{"$ref":"#/components/schemas/Mihari_Entities_WhoisRecord"},"reverseDnsNames":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_ReverseDnsName"}},"dnsRecords":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_DnsRecord"}},"cpes":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_CPE"}},"ports":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Port"}}},"required":["id","data","dataType","source"],"description":"Mihari_Entities_Artifact model"},"Mihari_Entities_AutonomousSystem":{"type":"object","properties":{"asn":{"type":"integer","format":"int32"}},"required":["asn"]},"Mihari_Entities_Geolocation":{"type":"object","properties":{"country":{"type":"string"},"countryCode":{"type":"string"}},"required":["country","countryCode"]},"Mihari_Entities_WhoisRecord":{"type":"object","properties":{"domain":{"type":"string"},"createdOn":{"type":"string","format":"date"},"updatedOn":{"type":"string","format":"date"},"expiresOn":{"type":"string","format":"date"},"registrar":{"type":"object"},"contacts":{"type":"array","items":{"type":"object"}}},"required":["domain","contacts"]},"Mihari_Entities_ReverseDnsName":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"Mihari_Entities_DnsRecord":{"type":"object","properties":{"resource":{"type":"string"},"value":{"type":"string"}},"required":["resource","value"]},"Mihari_Entities_CPE":{"type":"object","properties":{"cpe":{"type":"string"}},"required":["cpe"]},"Mihari_Entities_Port":{"type":"object","properties":{"port":{"type":"integer","format":"int32"}},"required":["port"]},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["name","type","values","isConfigured"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_IPAddress":{"type":"object","properties":{"ip":{"type":"string"},"countryCode":{"type":"string"},"hostname":{"type":"string"},"loc":{"type":"string"},"asn":{"type":"integer","format":"int32"}},"required":["ip","countryCode","loc"],"description":"Mihari_Entities_IPAddress model"},"putApiRules":{"type":"object","properties":{"id":{"type":"string"},"yaml":{"type":"string"}},"required":["id","yaml"],"description":"Update a rule"},"Mihari_Entities_Rule":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"yaml":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","yaml","createdAt","updatedAt","tags"],"description":"Mihari_Entities_Rule model"},"postApiRules":{"type":"object","properties":{"yaml":{"type":"string"}},"required":["yaml"],"description":"Create a rule"},"Mihari_Entities_RulesWithPagination":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}},"total":{"type":"integer","format":"int32"},"currentPage":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"}},"required":["rules","total","currentPage","pageSize"],"description":"Mihari_Entities_RulesWithPagination model"},"Mihari_Entities_RuleIDs":{"type":"object","properties":{"ruleIds":{"type":"string"}},"required":["ruleIds"],"description":"Mihari_Entities_RuleIDs model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","tag/alerts/paths/~1api~1alerts~1{id}/delete","tag/alerts/paths/~1api~1alerts/get","tag/artifacts","tag/artifacts/paths/~1api~1artifacts~1{id}/delete","tag/artifacts/paths/~1api~1artifacts~1{id}/get","tag/artifacts/paths/~1api~1artifacts~1{id}~1enrich/get","tag/configs","tag/configs/paths/~1api~1configs/get","tag/ip_addresses","tag/ip_addresses/paths/~1api~1ip_addresses~1{ip}/get","tag/rules","tag/rules/paths/~1api~1rules~1{id}/delete","tag/rules/paths/~1api~1rules~1{id}/get","tag/rules/paths/~1api~1rules/put","tag/rules/paths/~1api~1rules/post","tag/rules/paths/~1api~1rules/get","tag/rules/paths/~1api~1rules~1{id}~1run/get","tag/rules/paths/~1api~1rules~1ids/get","tag/tags","tag/tags/paths/~1api~1tags~1{name}/delete","tag/tags/paths/~1api~1tags/get"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.477]],["description/0",[0,1.385,1,1.385]],["title/1",[0,1.128,2,0.889]],["description/1",[0,1.178,2,0.928,3,2.544]],["title/2",[0,1.128,4,1.456]],["description/2",[0,1.178,4,1.52,5,2.544]],["title/3",[6,1.163]],["description/3",[1,1.385,6,1.091]],["title/4",[2,0.889,6,0.889]],["description/4",[2,0.928,6,0.928,7,2.068]],["title/5",[6,1.163]],["description/5",[6,1.091,7,2.432]],["title/6",[6,0.889,8,1.981]],["description/6",[6,0.928,8,2.068,9,2.544]],["title/7",[10,1.907]],["description/7",[1,1.385,10,1.788]],["title/8",[10,1.907]],["description/8",[10,1.788,11,2.992]],["title/9",[12,2.594]],["description/9",[1,1.385,12,2.432]],["title/10",[13,1.981,14,1.981]],["description/10",[13,2.068,14,2.068,15,2.544]],["title/11",[16,0.388]],["description/11",[1,1.385,16,0.364]],["title/12",[2,0.889,16,0.296]],["description/12",[2,0.928,16,0.31,17,2.068]],["title/13",[16,0.388]],["description/13",[16,0.364,17,2.432]],["title/14",[16,0.296,18,1.981]],["description/14",[16,0.31,18,2.068,19,1.755]],["title/15",[16,0.296,20,1.981]],["description/15",[16,0.31,19,1.755,20,2.068]],["title/16",[4,1.456,16,0.296]],["description/16",[4,1.52,16,0.31,19,1.755]],["title/17",[16,0.296,21,1.981]],["description/17",[16,0.31,21,2.068,22,2.544]],["title/18",[16,0.296,23,1.981]],["description/18",[16,0.31,23,2.068,24,2.544]],["title/19",[25,1.477]],["description/19",[1,1.385,25,1.385]],["title/20",[2,0.889,25,1.128]],["description/20",[2,0.928,25,1.178,26,2.544]],["title/21",[25,1.477]],["description/21",[25,1.385,27,2.992]]],"invertedIndex":[["address",{"_index":14,"title":{"10":{}},"description":{"10":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{}},"description":{"0":{},"1":{},"2":{}}}],["api/alert",{"_index":5,"title":{},"description":{"2":{}}}],["api/alerts/{id",{"_index":3,"title":{},"description":{"1":{}}}],["api/artifacts/{id",{"_index":7,"title":{},"description":{"4":{},"5":{}}}],["api/artifacts/{id}/enrich",{"_index":9,"title":{},"description":{"6":{}}}],["api/config",{"_index":11,"title":{},"description":{"8":{}}}],["api/ip_addresses/{ip",{"_index":15,"title":{},"description":{"10":{}}}],["api/rul",{"_index":19,"title":{},"description":{"14":{},"15":{},"16":{}}}],["api/rules/id",{"_index":24,"title":{},"description":{"18":{}}}],["api/rules/{id",{"_index":17,"title":{},"description":{"12":{},"13":{}}}],["api/rules/{id}/run",{"_index":22,"title":{},"description":{"17":{}}}],["api/tag",{"_index":27,"title":{},"description":{"21":{}}}],["api/tags/{nam",{"_index":26,"title":{},"description":{"20":{}}}],["artifact",{"_index":6,"title":{"3":{},"4":{},"5":{},"6":{}},"description":{"3":{},"4":{},"5":{},"6":{}}}],["config",{"_index":10,"title":{"7":{},"8":{}},"description":{"7":{},"8":{}}}],["creat",{"_index":20,"title":{"15":{}},"description":{"15":{}}}],["delet",{"_index":2,"title":{"1":{},"4":{},"12":{},"20":{}},"description":{"1":{},"4":{},"12":{},"20":{}}}],["enrich",{"_index":8,"title":{"6":{}},"description":{"6":{}}}],["id",{"_index":23,"title":{"18":{}},"description":{"18":{}}}],["ip",{"_index":13,"title":{"10":{}},"description":{"10":{}}}],["ip_address",{"_index":12,"title":{"9":{}},"description":{"9":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"3":{},"7":{},"9":{},"11":{},"19":{}}}],["rule",{"_index":16,"title":{"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{}},"description":{"11":{},"12":{},"13":{},"14":{},"15":{},"16":{},"17":{},"18":{}}}],["run",{"_index":21,"title":{"17":{}},"description":{"17":{}}}],["search",{"_index":4,"title":{"2":{},"16":{}},"description":{"2":{},"16":{}}}],["tag",{"_index":25,"title":{"19":{},"20":{},"21":{}},"description":{"19":{},"20":{},"21":{}}}],["updat",{"_index":18,"title":{"14":{}},"description":{"14":{}}}]],"pipeline":[]}},"options":{}};
|
2222
2225
|
|
2223
2226
|
var container = document.getElementById('redoc');
|
2224
2227
|
Redoc.hydrate(__redoc_state, container);
|
data/lib/mihari.rb
CHANGED
data/mihari.gemspec
CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
|
|
38
38
|
spec.add_development_dependency "fuubar", "~> 2.5"
|
39
39
|
spec.add_development_dependency "mysql2", "~> 0.5"
|
40
40
|
spec.add_development_dependency "pg", "~> 1.4"
|
41
|
-
spec.add_development_dependency "rack-test", "~> 2.
|
41
|
+
spec.add_development_dependency "rack-test", "~> 2.1"
|
42
42
|
spec.add_development_dependency "rake", "~> 13.0"
|
43
43
|
spec.add_development_dependency "rb-fsevent", "~> 0.11"
|
44
44
|
spec.add_development_dependency "rerun", "~> 0.14"
|
@@ -56,7 +56,7 @@ Gem::Specification.new do |spec|
|
|
56
56
|
end
|
57
57
|
|
58
58
|
spec.add_dependency "activerecord", "7.0.4.3"
|
59
|
-
spec.add_dependency "addressable", "2.8.
|
59
|
+
spec.add_dependency "addressable", "2.8.2"
|
60
60
|
spec.add_dependency "awrence", "2.0.1"
|
61
61
|
spec.add_dependency "dotenv", "2.8.1"
|
62
62
|
spec.add_dependency "dry-configurable", "1.0.1"
|
@@ -69,7 +69,7 @@ Gem::Specification.new do |spec|
|
|
69
69
|
spec.add_dependency "email_address", "0.2.4"
|
70
70
|
spec.add_dependency "grape", "1.7.0"
|
71
71
|
spec.add_dependency "grape-entity", "1.0.0"
|
72
|
-
spec.add_dependency "grape-swagger", "1.
|
72
|
+
spec.add_dependency "grape-swagger", "1.6.0"
|
73
73
|
spec.add_dependency "grape-swagger-entity", "0.5.1"
|
74
74
|
spec.add_dependency "insensitive_hash", "0.3.3"
|
75
75
|
spec.add_dependency "jr-cli", "0.6.0"
|
@@ -81,13 +81,13 @@ Gem::Specification.new do |spec|
|
|
81
81
|
spec.add_dependency "plissken", "2.0.1"
|
82
82
|
spec.add_dependency "public_suffix", "5.0.1"
|
83
83
|
spec.add_dependency "puma", "6.0.2"
|
84
|
-
spec.add_dependency "rack", "
|
85
|
-
spec.add_dependency "rack-
|
86
|
-
spec.add_dependency "
|
87
|
-
spec.add_dependency "semantic_logger", "4.
|
84
|
+
spec.add_dependency "rack", "3.0.7"
|
85
|
+
spec.add_dependency "rack-cors", "2.0.1"
|
86
|
+
spec.add_dependency "rackup", "2.1.0"
|
87
|
+
spec.add_dependency "semantic_logger", "4.13.0"
|
88
88
|
spec.add_dependency "sentry-ruby", "5.8.0"
|
89
89
|
spec.add_dependency "slack-notifier", "2.4.0"
|
90
|
-
spec.add_dependency "sqlite3", "1.6.
|
90
|
+
spec.add_dependency "sqlite3", "1.6.2"
|
91
91
|
spec.add_dependency "thor", "1.2.1"
|
92
92
|
spec.add_dependency "uuidtools", "2.2.0"
|
93
93
|
spec.add_dependency "whois", "5.1.0"
|