Skip to content

Commit

Permalink
Update generate endpoint for gen1 template
Browse files Browse the repository at this point in the history
  • Loading branch information
shudhansu-shekhar committed Oct 29, 2024
1 parent 64e51ee commit 2440c2a
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ public ResponseEntity<?> generate(final String msgProtocol, final String msgType
throw e;
} catch (REMGenerateException e) {
// Something went wrong. Add failure description to array of results.
/* partialSuccess = true;
allSuccess=false;*/
failedCount++;
JsonObject response = new JsonObject();
createResponseEntity(HttpStatus.BAD_REQUEST, e.getMessage(), JSON_ERROR_STATUS, response);
Expand Down Expand Up @@ -228,7 +226,6 @@ public ResponseEntity<?> generate(final String msgProtocol, final String msgType
}
}


/**
* To display response in browser or application
* @param status response code for the HTTP request
Expand Down Expand Up @@ -322,13 +319,8 @@ public JsonObject processEvent(String msgProtocol, String msgType, Boolean failI
JsonObject parsedJson = parsedResponse.getAsJsonObject();

if (parsedJson.has(JSON_ERROR_MESSAGE_FIELD)) {
// JsonObject eventResponse = new JsonObject();
// createResponseEntity(HttpStatus.BAD_REQUEST, parsedJson.toString(), JSON_ERROR_STATUS, eventResponse);
// return eventResponse;
throw new REMGenerateException(response);
} else {
/* JsonObject eventResponse = new JsonObject();
createResponseEntity(HttpStatus.OK, parsedJson.toString(), "SUCCESS", eventResponse);*/
return parsedJson;
}
}
Expand Down

0 comments on commit 2440c2a

Please sign in to comment.