Skip to content

Commit 27a4005

Browse files
eandzabeandzab
authored andcommitted
Added documentation for JMESPath rules usage
1 parent b233f4f commit 27a4005

File tree

5 files changed

+659
-5
lines changed

5 files changed

+659
-5
lines changed

src/main/java/com/ericsson/ei/frontend/WebController.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ public String forgotPassword(Model model) {
9797
return "forgot-password";
9898
}
9999

100+
// Added documentation for JMESPath rules usage
101+
@RequestMapping("/jmesPathRulesSetUp.html")
102+
public String jmesPathRulesSetUp(Model model) {
103+
104+
return "jmesPathRulesSetUp";
105+
}
106+
100107
// Backend host and port (Getter & Setters), application.properties ->
101108
// greeting.xxx
102109
public String getFrontendServiceHost() {

src/main/resources/static/js/main.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,17 @@ jQuery(document).ready(function() {
5050

5151
loadMainPage();
5252
}
53-
53+
54+
function loadJmesPathRulesSetUpPage() {
55+
56+
$("#mainFrame").load("jmesPathRulesSetUp.html");
57+
}
58+
59+
document.getElementById("jmesPathRulesSetUpBtn").onclick = function() {
60+
61+
loadJmesPathRulesSetUpPage();
62+
}
63+
5464
function loadDocumentLinks(){
5565
// eiffelDocumentationUrlLinks variable is configure in application.properties
5666
var linksList = JSON.parse(eiffelDocumentationUrlLinks);

src/main/resources/static/resources/subscription_templates.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ template_vars["templateRestPostJsonRAWBodyTrigger"] =
8888
template_vars["templateEmailTrigger"] =
8989
[{
9090
"created": "",
91-
"notificationMeta" : "http://<MyHost:port>/api/doit",
92-
"notificationType" : "REST_POST",
93-
"restPostBodyMediaType" : "application/json",
91+
"notificationMeta" : "mymail@company.com",
92+
"notificationType" : "MAIL",
93+
"restPostBodyMediaType" : "",
9494
"notificationMessageKeyValues" : [
9595
{
9696
"formkey" : "",
@@ -107,5 +107,5 @@ template_vars["templateEmailTrigger"] =
107107
]
108108
}
109109
],
110-
"subscriptionName" : "<Subscription_Template_Rest_Post_Raw_Body_Json_Trigger>"
110+
"subscriptionName" : "<Subscription_Template_Mail_Trigger>"
111111
}];

src/main/resources/templates/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@
5050
<span class="nav-link-text">Test Rules</span>
5151
</a>
5252
</li>
53+
<li id="jmesPathRulesSetUpBtn" class="nav-item" data-toggle="tooltip" data-placement="right">
54+
<a class="nav-link" href="#">
55+
<i class="fa fa-fw fa-dashboard"></i>
56+
<span class="nav-link-text">Description</span>
57+
</a>
58+
</li>
5359
<li id="eiInfoBtn" class="nav-item" data-toggle="tooltip" data-placement="right" title="Eiffel Intelligence Information">
5460
<a class="nav-link" href="#">
5561
<i class="fa fa-fw fa-dashboard"></i>

0 commit comments

Comments
 (0)