Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
RAIN-1175: Merging data-upload service into master branch (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-eGov authored Jul 6, 2020
1 parent d89e66f commit efd2727
Show file tree
Hide file tree
Showing 18 changed files with 331 additions and 405 deletions.
5 changes: 5 additions & 0 deletions data-upload/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
<version>1.0.1-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Map<String, DataUploadConfig> init(){
for(Mapping mapping : config.getMappings()){
for(Step step : mapping.getSteps()){
Mustache mustache = mf.compile(new StringReader(step.getBody()), step.getId());
step.setBodyTemplate(mustache);
step.setMustacheTemplate(mustache);
}
}
dataUploadConfigs.put(config.getService(), config);
Expand Down
5 changes: 3 additions & 2 deletions data-upload/src/main/java/egov/dataupload/models/Mapping.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ public class Mapping {

@JsonProperty("version")
private String version = null;



@JsonProperty("description")
private String description = null;

@JsonProperty("headers")
private List<String> headers = null;

@JsonProperty("steps")
private List<Step> steps = null;
Expand Down
2 changes: 1 addition & 1 deletion data-upload/src/main/java/egov/dataupload/models/Step.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ public class Step {
private String body = null;

@JsonIgnore
private Mustache bodyTemplate = null;
private Mustache mustacheTemplate = null;
}

This file was deleted.

185 changes: 0 additions & 185 deletions data-upload/src/main/java/egov/dataupload/models/user/User.java

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public JsonNode fetchResult(String uri, String requestJson) {
JsonNode response = null;
log.info("URI: "+uri);
try {
log.info("Request: "+requestJson);
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);

Expand Down
Loading

0 comments on commit efd2727

Please sign in to comment.