mihari 4.3.0 → 4.4.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/analyzers/binaryedge.rb +10 -1
- data/lib/mihari/analyzers/censys.rb +26 -1
- data/lib/mihari/analyzers/circl.rb +23 -1
- data/lib/mihari/analyzers/greynoise.rb +10 -1
- data/lib/mihari/analyzers/onyphe.rb +10 -1
- data/lib/mihari/analyzers/otx.rb +8 -2
- data/lib/mihari/analyzers/passivetotal.rb +25 -3
- data/lib/mihari/analyzers/pulsedive.rb +7 -1
- data/lib/mihari/analyzers/securitytrails.rb +7 -1
- data/lib/mihari/analyzers/shodan.rb +10 -1
- data/lib/mihari/analyzers/spyse.rb +10 -1
- data/lib/mihari/analyzers/urlscan.rb +6 -1
- data/lib/mihari/analyzers/virustotal.rb +7 -2
- data/lib/mihari/analyzers/virustotal_intelligence.rb +6 -1
- data/lib/mihari/analyzers/zoomeye.rb +16 -2
- data/lib/mihari/cli/main.rb +2 -0
- data/lib/mihari/commands/search.rb +14 -0
- data/lib/mihari/commands/version.rb +18 -0
- data/lib/mihari/database.rb +10 -2
- data/lib/mihari/emitters/misp.rb +14 -8
- data/lib/mihari/emitters/slack.rb +20 -28
- data/lib/mihari/emitters/the_hive.rb +18 -6
- data/lib/mihari/entities/rule.rb +1 -12
- data/lib/mihari/errors.rb +2 -0
- data/lib/mihari/mixins/configurable.rb +12 -1
- data/lib/mihari/mixins/rule.rb +16 -19
- data/lib/mihari/models/artifact.rb +7 -2
- data/lib/mihari/models/rule.rb +12 -3
- data/lib/mihari/schemas/analyzer.rb +89 -10
- data/lib/mihari/schemas/emitter.rb +35 -0
- data/lib/mihari/schemas/rule.rb +5 -62
- data/lib/mihari/structs/rule.rb +33 -5
- data/lib/mihari/types.rb +0 -25
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/endpoints/rules.rb +20 -3
- data/lib/mihari/web/public/index.html +1 -1
- data/lib/mihari/web/public/redoc-static.html +11 -11
- data/lib/mihari/web/public/static/css/app.de5845d8.css +1 -0
- data/lib/mihari/web/public/static/css/chunk-vendors.da2a7bfc.css +7 -0
- data/lib/mihari/web/public/static/js/app-legacy.f550d6ae.js +2 -0
- data/lib/mihari/web/public/static/js/app-legacy.f550d6ae.js.map +1 -0
- data/lib/mihari/web/public/static/js/app.40749592.js +2 -0
- data/lib/mihari/web/public/static/js/app.40749592.js.map +1 -0
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js +25 -0
- data/lib/mihari/web/public/static/js/chunk-vendors-legacy.d6b76c57.js.map +1 -0
- data/lib/mihari/web/public/static/js/chunk-vendors.3bdbaffb.js +31 -0
- data/lib/mihari/web/public/static/js/chunk-vendors.3bdbaffb.js.map +1 -0
- data/mihari.gemspec +2 -2
- data/sig/lib/mihari/analyzers/binaryedge.rbs +2 -0
- data/sig/lib/mihari/analyzers/censys.rbs +4 -0
- data/sig/lib/mihari/analyzers/circl.rbs +5 -1
- data/sig/lib/mihari/analyzers/onyphe.rbs +2 -0
- data/sig/lib/mihari/analyzers/otx.rbs +3 -1
- data/sig/lib/mihari/analyzers/passivetotal.rbs +5 -1
- data/sig/lib/mihari/analyzers/pulsedive.rbs +3 -1
- data/sig/lib/mihari/analyzers/securitytrails.rbs +3 -1
- data/sig/lib/mihari/analyzers/shodan.rbs +2 -0
- data/sig/lib/mihari/analyzers/spyse.rbs +3 -1
- data/sig/lib/mihari/analyzers/urlscan.rbs +2 -0
- data/sig/lib/mihari/analyzers/virustotal.rbs +3 -1
- data/sig/lib/mihari/analyzers/virustotal_intelligence.rbs +2 -0
- data/sig/lib/mihari/analyzers/zoomeye.rbs +3 -1
- data/sig/lib/mihari/emitters/misp.rbs +6 -0
- data/sig/lib/mihari/emitters/slack.rbs +8 -20
- data/sig/lib/mihari/emitters/the_hive.rbs +4 -0
- data/sig/lib/mihari/mixins/configurable.rbs +4 -0
- data/sig/lib/mihari/mixins/rule.rbs +2 -0
- data/sig/lib/mihari/models/rule.rbs +3 -0
- data/sig/lib/mihari/structs/rule.rbs +5 -1
- metadata +18 -6
@@ -91,8 +91,20 @@ module Mihari
|
|
91
91
|
success: Entities::Rule,
|
92
92
|
summary: "Create a rule"
|
93
93
|
}
|
94
|
+
params do
|
95
|
+
requires :yaml, type: String, documentation: { param_type: "body" }
|
96
|
+
end
|
94
97
|
post "/" do
|
95
|
-
|
98
|
+
yaml = params[:yaml]
|
99
|
+
rule = Structs::Rule::Rule.from_yaml(yaml)
|
100
|
+
|
101
|
+
# check ID duplication
|
102
|
+
begin
|
103
|
+
Mihari::Rule.find(rule.id)
|
104
|
+
error!({ message: "ID:#{rule.id} is already registered" }, 400)
|
105
|
+
rescue ActiveRecord::RecordNotFound
|
106
|
+
# do nothing
|
107
|
+
end
|
96
108
|
|
97
109
|
begin
|
98
110
|
rule.validate!
|
@@ -118,8 +130,13 @@ module Mihari
|
|
118
130
|
success: Entities::Rule,
|
119
131
|
summary: "Update a rule"
|
120
132
|
}
|
133
|
+
params do
|
134
|
+
requires :id, type: String, documentation: { param_type: "body" }
|
135
|
+
requires :yaml, type: String, documentation: { param_type: "body" }
|
136
|
+
end
|
121
137
|
put "/" do
|
122
|
-
id = params[
|
138
|
+
id = params[:id]
|
139
|
+
yaml = params[:yaml]
|
123
140
|
|
124
141
|
begin
|
125
142
|
Mihari::Rule.find(id)
|
@@ -127,7 +144,7 @@ module Mihari
|
|
127
144
|
error!({ message: "ID:#{id} is not found" }, 404)
|
128
145
|
end
|
129
146
|
|
130
|
-
rule = Structs::Rule::Rule.
|
147
|
+
rule = Structs::Rule::Rule.from_yaml(yaml)
|
131
148
|
|
132
149
|
begin
|
133
150
|
rule.validate!
|
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/static/favicon.ico"/><title>Mihari</title><script defer="defer" type="module" src="/static/js/chunk-vendors.
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="/static/favicon.ico"/><title>Mihari</title><script defer="defer" type="module" src="/static/js/chunk-vendors.3bdbaffb.js"></script><script defer="defer" type="module" src="/static/js/app.40749592.js"></script><link href="/static/css/chunk-vendors.da2a7bfc.css" rel="stylesheet"><link href="/static/css/app.de5845d8.css" rel="stylesheet"><script defer="defer" src="/static/js/chunk-vendors-legacy.d6b76c57.js" nomodule></script><script defer="defer" src="/static/js/app-legacy.f550d6ae.js" nomodule></script></head><body><noscript><strong>We're sorry but Mihari doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
@@ -2131,27 +2131,27 @@ data-styled.g140[id="sc-amkrK"]{content:"icZuVc,"}/*!sc*/
|
|
2131
2131
|
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="delete" class="sc-bQCEYZ bfqOiP http-verb delete">delete</span><span class="sc-dWBRfb deJybC">/api/rules/{id}</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules/{id}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-32" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-33" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-34" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-35" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-33" aria-labelledby="react-tabs-32"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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-35" aria-labelledby="react-tabs-34"></div></div></div></div></div></div><div id="operation/getApiRulesId" data-section-id="operation/getApiRulesId" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/getApiRulesId" aria-label="operation/getApiRulesId"></a>Get a rule<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Get a rule</p>
|
2132
2132
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span>id</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Get a rule</p>
|
2133
2133
|
</span></button></div><div><button class="sc-eEVmNe dGDNXv"><svg class="sc-dIsUp hikpbD" 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-dTSzeu iMOuqV">404<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Not found</p>
|
2134
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules/{id}</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules/{id}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" 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><li class="tab-error" role="tab" id="react-tabs-38" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-39" data-rttab="true">404</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-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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><span class="token punctuation">,</span></div></li><li><div class="hoverable "><span class="property token string">"
|
2135
|
-
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Update a rule</p>
|
2136
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="put" class="sc-bQCEYZ jgrpEm http-verb put">put</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->
|
2137
|
-
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">201<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Create a rule</p>
|
2138
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="post" class="sc-bQCEYZ dknlJl http-verb post">post</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->
|
2134
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules/{id}</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules/{id}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" 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><li class="tab-error" role="tab" id="react-tabs-38" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-39" data-rttab="true">404</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-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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><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></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-39" aria-labelledby="react-tabs-38"></div></div></div></div></div></div><div id="operation/putApiRules" data-section-id="operation/putApiRules" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/putApiRules" aria-label="operation/putApiRules"></a>Update a rule<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Update a rule</p>
|
2135
|
+
</div></div><h5 class="sc-iqAclL eONCmm">Request Body schema: <span class="sc-jcwpoC joKODG">application/json</span></h5><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"></div><table class="sc-hHEiqL VCQHZ"><tbody><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span>id</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="yaml"><span class="sc-iemWCZ bcnRwz"></span><span>yaml</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Update a rule</p>
|
2136
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="put" class="sc-bQCEYZ jgrpEm http-verb put">put</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Request samples<!-- --> </h3><div class="sc-carFqZ evYMTo" 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-40" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-41" tabindex="0" data-rttab="true">Payload</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-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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-carFqZ evYMTo" 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></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-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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><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></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="operation/postApiRules" data-section-id="operation/postApiRules" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/postApiRules" aria-label="operation/postApiRules"></a>Create a rule<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Create a rule</p>
|
2137
|
+
</div></div><h5 class="sc-iqAclL eONCmm">Request Body schema: <span class="sc-jcwpoC joKODG">application/json</span></h5><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"></div><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="yaml"><span class="sc-iemWCZ bcnRwz"></span><span>yaml</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">201<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Create a rule</p>
|
2138
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="post" class="sc-bQCEYZ dknlJl http-verb post">post</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Request samples<!-- --> </h3><div class="sc-carFqZ evYMTo" 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-44" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-45" tabindex="0" data-rttab="true">Payload</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-45" aria-labelledby="react-tabs-44"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-46" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-47" tabindex="0" data-rttab="true">201</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-47" aria-labelledby="react-tabs-46"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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><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></div></li></ul><span class="token punctuation">}</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="operation/getApiRules" data-section-id="operation/getApiRules" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/getApiRules" aria-label="operation/getApiRules"></a>Search rules<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Search rules</p>
|
2139
2139
|
</div></div><div><h5 class="sc-iqAclL eONCmm">query<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="page"><span class="sc-iemWCZ bcnRwz"></span><span>page</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">integer</span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC"> <!-- --><<!-- -->int32<!-- -->><!-- --> </span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="title"><span class="sc-iemWCZ bcnRwz"></span><span>title</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="description"><span class="sc-iemWCZ bcnRwz"></span><span>description</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="tag"><span class="sc-iemWCZ bcnRwz"></span><span>tag</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="fromAt"><span class="sc-iemWCZ bcnRwz"></span><span>fromAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="toAt"><span class="sc-iemWCZ bcnRwz"></span><span>toAt</span></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC"> <!-- --><<!-- -->date-time<!-- -->><!-- --> </span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Search rules</p>
|
2140
2140
|
</span></button></div><div><button class="sc-eEVmNe dGDNXv"><svg class="sc-dIsUp hikpbD" 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-dTSzeu iMOuqV">404<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Not found</p>
|
2141
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-
|
2141
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-48" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-49" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-50" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-51" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-49" aria-labelledby="react-tabs-48"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><div class="redoc-json"><code><button class="collapser" aria-label="collapse"></button><span class="token punctuation">[</span><span class="ellipsis"></span><ul class="array collapsible"><li><div class="hoverable "><button class="collapser" aria-label="collapse"></button><span class="token punctuation">{</span><span class="ellipsis"></span><ul class="obj collapsible"><li><div class="hoverable collapsed"><span class="property token string">"id"</span>: <span class="token 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></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-51" aria-labelledby="react-tabs-50"></div></div></div></div></div></div><div id="operation/getApiRulesIdRun" data-section-id="operation/getApiRulesIdRun" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/getApiRulesIdRun" aria-label="operation/getApiRulesIdRun"></a>Run a rule<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Run a rule</p>
|
2142
2142
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="id"><span class="sc-iemWCZ bcnRwz"></span><span>id</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Run a rule</p>
|
2143
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules/{id}/run</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules/{id}/run</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-
|
2143
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/rules/{id}/run</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/rules/{id}/run</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-52" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-53" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-53" aria-labelledby="react-tabs-52"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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></div></div></div></div><div id="tag/sources" data-section-id="tag/sources" class="sc-eCApnc jlMQbh"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h1 class="sc-fujyAs cTueGk"><a class="sc-crzoAE iUxAWq" href="#tag/sources" aria-label="tag/sources"></a>sources</h1></div></div><div class="sc-hKFxyN bJcDWV"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW redoc-markdown "><p>Operations about sources</p>
|
2144
2144
|
</div></div></div><div id="operation/getApiSources" data-section-id="operation/getApiSources" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/getApiSources" aria-label="operation/getApiSources"></a>Get sources<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Get sources</p>
|
2145
2145
|
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Get sources</p>
|
2146
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/sources</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/sources</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-
|
2146
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/sources</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/sources</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" 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-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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">"sources"</span>: <span class="token string">"string"</span></div></li></ul><span class="token punctuation">}</span></div></li></ul><span class="token punctuation">]</span></code></div></div></div></div></div></div></div></div></div></div></div><div id="tag/tags" data-section-id="tag/tags" class="sc-eCApnc jlMQbh"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h1 class="sc-fujyAs cTueGk"><a class="sc-crzoAE iUxAWq" href="#tag/tags" aria-label="tag/tags"></a>tags</h1></div></div><div class="sc-hKFxyN bJcDWV"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW redoc-markdown "><p>Operations about tags</p>
|
2147
2147
|
</div></div></div><div id="operation/deleteApiTagsName" data-section-id="operation/deleteApiTagsName" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/deleteApiTagsName" aria-label="operation/deleteApiTagsName"></a>Delete a tag<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Delete a tag</p>
|
2148
2148
|
</div></div><div><h5 class="sc-iqAclL eONCmm">path<!-- --> Parameters</h5><table class="sc-hHEiqL VCQHZ"><tbody><tr class="last undefined"><td class="sc-hBMUJo sc-fFSPTT iwcKgn eQzShU" kind="field" title="name"><span class="sc-iemWCZ bcnRwz"></span><span>name</span><div class="sc-TtZnY sc-jHNicF hUSnpT bsGeIE"> required </div></td><td class="sc-bkbkJK ctPuOP"><div><div><span class="sc-fbIWvP sc-FRrlG CMpTe bBFKjV"></span><span class="sc-fbIWvP sc-fXazdy CMpTe gJKPGC">string</span></div> <div><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div></div></div></td></tr></tbody></table></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Delete a tag</p>
|
2149
2149
|
</span></button></div><div><button class="sc-eEVmNe dGDNXv"><svg class="sc-dIsUp hikpbD" 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-dTSzeu iMOuqV">404<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Not found</p>
|
2150
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="delete" class="sc-bQCEYZ bfqOiP http-verb delete">delete</span><span class="sc-dWBRfb deJybC">/api/tags/{name}</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/tags/{name}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-
|
2150
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="delete" class="sc-bQCEYZ bfqOiP http-verb delete">delete</span><span class="sc-dWBRfb deJybC">/api/tags/{name}</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/tags/{name}</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-56" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-57" tabindex="0" data-rttab="true">200</li><li class="tab-error" role="tab" id="react-tabs-58" aria-selected="false" aria-disabled="false" aria-controls="react-tabs-59" data-rttab="true">404</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-57" aria-labelledby="react-tabs-56"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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-59" aria-labelledby="react-tabs-58"></div></div></div></div></div></div><div id="operation/getApiTags" data-section-id="operation/getApiTags" class="sc-eCApnc liLqNm"><div class="sc-iCoGMd gLxhOh"><div class="sc-hKFxyN juinod"><h2 class="sc-pNWdM euRMgx"><a class="sc-crzoAE iUxAWq" href="#operation/getApiTags" aria-label="operation/getApiTags"></a>Get tags<!-- --> </h2><div class="sc-eWnToP eUdCtG"><div class="sc-iBzEeX sc-cOifOu dFWqin OsmAW"><p>Get tags</p>
|
2151
2151
|
</div></div><div><h3 class="sc-htmcrh dJbQcM">Responses</h3><div><button class="sc-eEVmNe kaKoRF"><svg class="sc-dIsUp jLtOTj" 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-dTSzeu iMOuqV">200<!-- --> </strong><span class="sc-Arkif cEnqBm"><p>Get tags</p>
|
2152
|
-
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/tags</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/tags</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-
|
2152
|
+
</span></button></div></div></div><div class="sc-jSFjdj sc-gKAaRy gBjRyf gcushC"><div class="sc-xGAEC jvPKBE"><button class="sc-jHcXXw kBxBva"><span type="get" class="sc-bQCEYZ jbDDHX http-verb get">get</span><span class="sc-dWBRfb deJybC">/api/tags</span><svg class="sc-dIsUp gGvkZD" 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-fXgAZx cRflIb"><div class="sc-EZqKI bQzlnx"><div class="sc-iBzEeX sc-cOifOu dFWqin hjSJYo"></div><div tabindex="0" role="button"><div class="sc-jXcxbT yIAna"><span>https://localhost:9292</span>/api/tags</div></div></div></div></div><div><h3 class="sc-kEqXSa iXmHCl"> <!-- -->Response samples<!-- --> </h3><div class="sc-carFqZ evYMTo" data-rttabs="true"><ul class="react-tabs__tab-list" role="tablist"><li class="tab-success react-tabs__tab--selected" role="tab" id="react-tabs-60" aria-selected="true" aria-disabled="false" aria-controls="react-tabs-61" tabindex="0" data-rttab="true">200</li></ul><div class="react-tabs__tab-panel react-tabs__tab-panel--selected" role="tabpanel" id="react-tabs-61" aria-labelledby="react-tabs-60"><div><div class="sc-hhIiOg lhdonw"><span class="sc-oeezt bmwRob">Content type</span><div class="sc-eJocfa jzRrfm">application/json</div></div><div class="sc-gGLxEB hINeXe"><div class="sc-iNiQyp cVHUjN"><div class="sc-efHYUO eQQUSD"><button><div class="sc-khIgEk llGFDD">Copy</div></button><button> Expand all </button><button> Collapse all </button></div><div class="sc-iBzEeX dFWqin sc-jffHpj fqzhkP"><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-cKRKFl bnHjoU"></div></div></div>
|
2153
2153
|
<script>
|
2154
|
-
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":"command","description":"Operations about commands"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"sources","description":"Operations about sources"},{"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"],"operationId":"deleteApiAlertsId"}},"/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":"source","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_Alert"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"],"operationId":"getApiAlerts"}},"/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"],"operationId":"deleteApiArtifactsId"},"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"],"operationId":"getApiArtifactsId"}},"/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"],"operationId":"getApiArtifactsIdEnrich"}},"/api/command":{"post":{"summary":"Run a command","description":"Run a command","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiCommand"}}},"required":true},"responses":{"201":{"description":"Run a command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_CommandResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["command"],"operationId":"postApiCommand"}},"/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"],"operationId":"getApiConfigs"}},"/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"],"operationId":"getApiIpAddressesIp"}},"/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"],"operationId":"deleteApiRulesId"},"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"],"operationId":"getApiRulesId"}},"/api/rules":{"put":{"summary":"Update a rule","description":"Update a rule","responses":{"200":{"description":"Update a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"],"operationId":"putApiRules"},"post":{"summary":"Create a rule","description":"Create a rule","responses":{"201":{"description":"Create a rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Rule"}}}}},"tags":["rules"],"operationId":"postApiRules"},"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_Rule"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"],"operationId":"getApiRules"}},"/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"],"operationId":"getApiRulesIdRun"}},"/api/sources":{"get":{"summary":"Get sources","description":"Get sources","responses":{"200":{"description":"Get sources","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Sources"}}}}}},"tags":["sources"],"operationId":"getApiSources"}},"/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"],"operationId":"deleteApiTagsName"}},"/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"],"operationId":"getApiTags"}}},"servers":[{"url":"//localhost:9292"}],"components":{"schemas":{"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"title":{"type":"string"},"description":{"type":"string"},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","source","createdAt","tags"],"description":"Mihari_Entities_Alert model"},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"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"}}},"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_Tag":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"postApiCommand":{"type":"object","properties":{"command":{"type":"string"}},"required":["command"],"description":"Run a command"},"Mihari_Entities_CommandResult":{"type":"object","properties":{"output":{"type":"string"},"success":{"type":"boolean"}},"required":["output","success"],"description":"Mihari_Entities_CommandResult model"},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"status":{"$ref":"#/components/schemas/Mihari_Entities_ConfigStatus"}},"required":["name","status"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_ConfigStatus":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["type","values","isConfigured"]},"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"},"Mihari_Entities_Rule":{"type":"object","properties":{"id":{"type":"string"},"yaml":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"queries":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Query"}},"emitters":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Emitter"}},"tags":{"type":"array","items":{"type":"string"}},"allowedDtaTypes":{"type":"array","items":{"type":"string"}},"disallowedDataValues":{"type":"array","items":{"type":"string"}},"ignoreOldArtifacts":{"type":"boolean"},"ignoreThreshold":{"type":"integer","format":"int32"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","yaml","title","description","queries","ignoreOldArtifacts","ignoreThreshold","createdAt"],"description":"Mihari_Entities_Rule model"},"Mihari_Entities_Query":{"type":"object","properties":{"analyzer":{"type":"string"},"query":{"type":"string"},"interval":{"type":"integer","format":"int32"}},"required":["analyzer","query"]},"Mihari_Entities_Emitter":{"type":"object","properties":{"emitter":{"type":"string"}},"required":["emitter"]},"Mihari_Entities_Sources":{"type":"object","properties":{"sources":{"type":"string"}},"required":["sources"],"description":"Mihari_Entities_Sources model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","operation/deleteApiAlertsId","operation/getApiAlerts","tag/artifacts","operation/deleteApiArtifactsId","operation/getApiArtifactsId","operation/getApiArtifactsIdEnrich","tag/command","operation/postApiCommand","tag/configs","operation/getApiConfigs","tag/ip_addresses","operation/getApiIpAddressesIp","tag/rules","operation/deleteApiRulesId","operation/getApiRulesId","operation/putApiRules","operation/postApiRules","operation/getApiRules","operation/getApiRulesIdRun","tag/sources","operation/getApiSources","tag/tags","operation/deleteApiTagsName","operation/getApiTags"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.598]],["description/0",[0,1.326,1,1.069]],["title/1",[0,1.212,2,0.978]],["description/1",[0,1.326,2,1.069]],["title/2",[0,1.212,3,1.534]],["description/2",[0,1.326,3,1.678]],["title/3",[4,1.289]],["description/3",[1,1.069,4,1.069]],["title/4",[2,0.978,4,0.978]],["description/4",[2,1.069,4,1.069]],["title/5",[4,1.289]],["description/5",[4,1.366]],["title/6",[4,0.978,5,2.048]],["description/6",[4,1.069,5,2.24]],["title/7",[6,2.022]],["description/7",[1,1.069,6,1.678]],["title/8",[6,1.534,7,1.534]],["description/8",[6,1.678,7,1.678]],["title/9",[8,2.022]],["description/9",[1,1.069,8,1.678]],["title/10",[8,2.022]],["description/10",[8,2.144]],["title/11",[9,2.7]],["description/11",[1,1.069,9,2.24]],["title/12",[10,2.048,11,2.048]],["description/12",[10,2.24,11,2.24]],["title/13",[12,0.673]],["description/13",[1,1.069,12,0.559]],["title/14",[2,0.978,12,0.511]],["description/14",[2,1.069,12,0.559]],["title/15",[12,0.673]],["description/15",[12,0.714]],["title/16",[12,0.511,13,2.048]],["description/16",[12,0.559,13,2.24]],["title/17",[12,0.511,14,2.048]],["description/17",[12,0.559,14,2.24]],["title/18",[3,1.534,12,0.511]],["description/18",[3,1.678,12,0.559]],["title/19",[7,1.534,12,0.511]],["description/19",[7,1.678,12,0.559]],["title/20",[15,2.022]],["description/20",[1,1.069,15,1.678]],["title/21",[15,2.022]],["description/21",[15,2.144]],["title/22",[16,1.598]],["description/22",[1,1.069,16,1.326]],["title/23",[2,0.978,16,1.212]],["description/23",[2,1.069,16,1.326]],["title/24",[16,1.598]],["description/24",[16,1.694]]],"invertedIndex":[["address",{"_index":11,"title":{"12":{}},"description":{"12":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{}},"description":{"0":{},"1":{},"2":{}}}],["artifact",{"_index":4,"title":{"3":{},"4":{},"5":{},"6":{}},"description":{"3":{},"4":{},"5":{},"6":{}}}],["command",{"_index":6,"title":{"7":{},"8":{}},"description":{"7":{},"8":{}}}],["config",{"_index":8,"title":{"9":{},"10":{}},"description":{"9":{},"10":{}}}],["creat",{"_index":14,"title":{"17":{}},"description":{"17":{}}}],["delet",{"_index":2,"title":{"1":{},"4":{},"14":{},"23":{}},"description":{"1":{},"4":{},"14":{},"23":{}}}],["enrich",{"_index":5,"title":{"6":{}},"description":{"6":{}}}],["ip",{"_index":10,"title":{"12":{}},"description":{"12":{}}}],["ip_address",{"_index":9,"title":{"11":{}},"description":{"11":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"3":{},"7":{},"9":{},"11":{},"13":{},"20":{},"22":{}}}],["rule",{"_index":12,"title":{"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}},"description":{"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}}}],["run",{"_index":7,"title":{"8":{},"19":{}},"description":{"8":{},"19":{}}}],["search",{"_index":3,"title":{"2":{},"18":{}},"description":{"2":{},"18":{}}}],["sourc",{"_index":15,"title":{"20":{},"21":{}},"description":{"20":{},"21":{}}}],["tag",{"_index":16,"title":{"22":{},"23":{},"24":{}},"description":{"22":{},"23":{},"24":{}}}],["updat",{"_index":13,"title":{"16":{}},"description":{"16":{}}}]],"pipeline":[]}},"options":{}};
|
2154
|
+
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":"command","description":"Operations about commands"},{"name":"configs","description":"Operations about configs"},{"name":"ip_addresses","description":"Operations about ip_addresses"},{"name":"rules","description":"Operations about rules"},{"name":"sources","description":"Operations about sources"},{"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"],"operationId":"deleteApiAlertsId"}},"/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":"source","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_Alert"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["alerts"],"operationId":"getApiAlerts"}},"/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"],"operationId":"deleteApiArtifactsId"},"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"],"operationId":"getApiArtifactsId"}},"/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"],"operationId":"getApiArtifactsIdEnrich"}},"/api/command":{"post":{"summary":"Run a command","description":"Run a command","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/postApiCommand"}}},"required":true},"responses":{"201":{"description":"Run a command","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_CommandResult"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["command"],"operationId":"postApiCommand"}},"/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"],"operationId":"getApiConfigs"}},"/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"],"operationId":"getApiIpAddressesIp"}},"/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"],"operationId":"deleteApiRulesId"},"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"],"operationId":"getApiRulesId"}},"/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"],"operationId":"putApiRules"},"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"],"operationId":"postApiRules"},"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_Rule"}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mihari_Entities_Message"}}}}},"tags":["rules"],"operationId":"getApiRules"}},"/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"],"operationId":"getApiRulesIdRun"}},"/api/sources":{"get":{"summary":"Get sources","description":"Get sources","responses":{"200":{"description":"Get sources","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Sources"}}}}}},"tags":["sources"],"operationId":"getApiSources"}},"/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"],"operationId":"deleteApiTagsName"}},"/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"],"operationId":"getApiTags"}}},"servers":[{"url":"//localhost:9292"}],"components":{"schemas":{"Mihari_Entities_Message":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"description":"Mihari_Entities_Message model"},"Mihari_Entities_Alert":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"title":{"type":"string"},"description":{"type":"string"},"source":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"artifacts":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Artifact"}},"tags":{"type":"array","items":{"$ref":"#/components/schemas/Mihari_Entities_Tag"}}},"required":["id","title","description","source","createdAt","tags"],"description":"Mihari_Entities_Alert model"},"Mihari_Entities_Artifact":{"type":"object","properties":{"id":{"type":"integer","format":"int32"},"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"}}},"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_Tag":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]},"postApiCommand":{"type":"object","properties":{"command":{"type":"string"}},"required":["command"],"description":"Run a command"},"Mihari_Entities_CommandResult":{"type":"object","properties":{"output":{"type":"string"},"success":{"type":"boolean"}},"required":["output","success"],"description":"Mihari_Entities_CommandResult model"},"Mihari_Entities_Config":{"type":"object","properties":{"name":{"type":"string"},"status":{"$ref":"#/components/schemas/Mihari_Entities_ConfigStatus"}},"required":["name","status"],"description":"Mihari_Entities_Config model"},"Mihari_Entities_ConfigStatus":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}},"isConfigured":{"type":"boolean"}},"required":["type","values","isConfigured"]},"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"},"yaml":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","yaml","createdAt","updatedAt"],"description":"Mihari_Entities_Rule model"},"postApiRules":{"type":"object","properties":{"yaml":{"type":"string"}},"required":["yaml"],"description":"Create a rule"},"Mihari_Entities_Sources":{"type":"object","properties":{"sources":{"type":"string"}},"required":["sources"],"description":"Mihari_Entities_Sources model"},"Mihari_Entities_Tags":{"type":"object","properties":{"tags":{"type":"string"}},"required":["tags"],"description":"Mihari_Entities_Tags model"}}}}},"searchIndex":{"store":["tag/alerts","operation/deleteApiAlertsId","operation/getApiAlerts","tag/artifacts","operation/deleteApiArtifactsId","operation/getApiArtifactsId","operation/getApiArtifactsIdEnrich","tag/command","operation/postApiCommand","tag/configs","operation/getApiConfigs","tag/ip_addresses","operation/getApiIpAddressesIp","tag/rules","operation/deleteApiRulesId","operation/getApiRulesId","operation/putApiRules","operation/postApiRules","operation/getApiRules","operation/getApiRulesIdRun","tag/sources","operation/getApiSources","tag/tags","operation/deleteApiTagsName","operation/getApiTags"],"index":{"version":"2.3.9","fields":["title","description"],"fieldVectors":[["title/0",[0,1.598]],["description/0",[0,1.326,1,1.069]],["title/1",[0,1.212,2,0.978]],["description/1",[0,1.326,2,1.069]],["title/2",[0,1.212,3,1.534]],["description/2",[0,1.326,3,1.678]],["title/3",[4,1.289]],["description/3",[1,1.069,4,1.069]],["title/4",[2,0.978,4,0.978]],["description/4",[2,1.069,4,1.069]],["title/5",[4,1.289]],["description/5",[4,1.366]],["title/6",[4,0.978,5,2.048]],["description/6",[4,1.069,5,2.24]],["title/7",[6,2.022]],["description/7",[1,1.069,6,1.678]],["title/8",[6,1.534,7,1.534]],["description/8",[6,1.678,7,1.678]],["title/9",[8,2.022]],["description/9",[1,1.069,8,1.678]],["title/10",[8,2.022]],["description/10",[8,2.144]],["title/11",[9,2.7]],["description/11",[1,1.069,9,2.24]],["title/12",[10,2.048,11,2.048]],["description/12",[10,2.24,11,2.24]],["title/13",[12,0.673]],["description/13",[1,1.069,12,0.559]],["title/14",[2,0.978,12,0.511]],["description/14",[2,1.069,12,0.559]],["title/15",[12,0.673]],["description/15",[12,0.714]],["title/16",[12,0.511,13,2.048]],["description/16",[12,0.559,13,2.24]],["title/17",[12,0.511,14,2.048]],["description/17",[12,0.559,14,2.24]],["title/18",[3,1.534,12,0.511]],["description/18",[3,1.678,12,0.559]],["title/19",[7,1.534,12,0.511]],["description/19",[7,1.678,12,0.559]],["title/20",[15,2.022]],["description/20",[1,1.069,15,1.678]],["title/21",[15,2.022]],["description/21",[15,2.144]],["title/22",[16,1.598]],["description/22",[1,1.069,16,1.326]],["title/23",[2,0.978,16,1.212]],["description/23",[2,1.069,16,1.326]],["title/24",[16,1.598]],["description/24",[16,1.694]]],"invertedIndex":[["address",{"_index":11,"title":{"12":{}},"description":{"12":{}}}],["alert",{"_index":0,"title":{"0":{},"1":{},"2":{}},"description":{"0":{},"1":{},"2":{}}}],["artifact",{"_index":4,"title":{"3":{},"4":{},"5":{},"6":{}},"description":{"3":{},"4":{},"5":{},"6":{}}}],["command",{"_index":6,"title":{"7":{},"8":{}},"description":{"7":{},"8":{}}}],["config",{"_index":8,"title":{"9":{},"10":{}},"description":{"9":{},"10":{}}}],["creat",{"_index":14,"title":{"17":{}},"description":{"17":{}}}],["delet",{"_index":2,"title":{"1":{},"4":{},"14":{},"23":{}},"description":{"1":{},"4":{},"14":{},"23":{}}}],["enrich",{"_index":5,"title":{"6":{}},"description":{"6":{}}}],["ip",{"_index":10,"title":{"12":{}},"description":{"12":{}}}],["ip_address",{"_index":9,"title":{"11":{}},"description":{"11":{}}}],["oper",{"_index":1,"title":{},"description":{"0":{},"3":{},"7":{},"9":{},"11":{},"13":{},"20":{},"22":{}}}],["rule",{"_index":12,"title":{"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}},"description":{"13":{},"14":{},"15":{},"16":{},"17":{},"18":{},"19":{}}}],["run",{"_index":7,"title":{"8":{},"19":{}},"description":{"8":{},"19":{}}}],["search",{"_index":3,"title":{"2":{},"18":{}},"description":{"2":{},"18":{}}}],["sourc",{"_index":15,"title":{"20":{},"21":{}},"description":{"20":{},"21":{}}}],["tag",{"_index":16,"title":{"22":{},"23":{},"24":{}},"description":{"22":{},"23":{},"24":{}}}],["updat",{"_index":13,"title":{"16":{}},"description":{"16":{}}}]],"pipeline":[]}},"options":{}};
|
2155
2155
|
|
2156
2156
|
var container = document.getElementById('redoc');
|
2157
2157
|
Redoc.hydrate(__redoc_state, container);
|
@@ -0,0 +1 @@
|
|
1
|
+
.navbar[data-v-0c9efb8c]{border-bottom:1px solid #d3d3d3}table.is-fullwidth th{width:120px}.tag img[data-v-e4f0c0e0]{margin-right:5px}img.liveshot[data-v-75c00fae]{border:1px solid #aaa;border-radius:5px;width:100%;max-height:250px;-o-object-fit:cover;object-fit:cover;-o-object-position:top;object-position:top;display:block;overflow:hidden;transition:max-height 1s,height 1s}img.liveshot[data-v-75c00fae]:hover{max-height:none}.modal-card[data-v-75c00fae]{width:960px}.my-editor[data-v-4bc0145f]{background:#141414;font-family:Fira code,Fira Mono,Consolas,Menlo,Courier,monospace;font-size:1em;line-height:1.5;padding:5px}.my-editor-wrapper[data-v-4bc0145f]{background:#141414;padding:10px}
|