Skip to content

Commit a870ce4

Browse files
Modified generate's endpoint generate to accept array of events (#226)
Modified generate's endpoint generate to accept array of events.
1 parent 975bd4b commit a870ce4

File tree

6 files changed

+772
-79
lines changed

6 files changed

+772
-79
lines changed

service/src/main/java/com/ericsson/eiffel/remrem/generate/constants/RemremGenerateServiceConstants.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public final class RemremGenerateServiceConstants {
2525
public static final String NO_TEMPLATE_ERROR = "{\"status_code\": 404, \"result\": \"FAIL\", "
2626
+ "\"message\":\"Requested template is not available\"}";
2727

28+
public static final String TEMPLATE_ERROR = "{\"status_code\": 400, \"result\": \"FAIL\", "
29+
+ "\"message\":\"Template is not correct format or something is missing in the template, please check\"}";
30+
2831
public static final String INTERNAL_SERVER_ERROR = "{\"status_code\": 500, \"result\": \"FAIL\", "
2932
+ "\"message\":\"Internal server error\"}";
3033

@@ -54,4 +57,14 @@ public final class RemremGenerateServiceConstants {
5457
public static final String LenientValidation = "okToLeaveOutInvalidOptionalFields true will remove the optional "
5558
+ "event fields from the input event data that does not validate successfully, "
5659
+ "and add those removed field information into customData/remremGenerateFailures";
60+
61+
public static final String JSON_STATUS_CODE = "status code";
62+
63+
public static final String JSON_STATUS_RESULT = "result";
64+
65+
public static final String META = "meta";
66+
67+
public static final String JSON_ERROR_STATUS = "FAIL";
68+
69+
public static final String JSON_FATAL_STATUS = "FATAL";
5770
}

0 commit comments

Comments
 (0)