Skip to content

Commit

Permalink
Mini pds4 213 (#217)
Browse files Browse the repository at this point in the history
* support products without start time and other minimum pds4 label

* new way of having spring-bot being a proxy, need to be finalized though because of other issues

Co-authored-by: thomas loubrieu <[email protected]>
  • Loading branch information
tloubrieu-jpl and thomas loubrieu authored Dec 22, 2022
1 parent 5dd33ee commit 297283e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,17 +125,21 @@ public List<String> getRef_lid_target() {
return ref_lid_target;
}


private static String getFirstElmentOrNull(List<String> l) {
return l!=null?l.get(0):null;
}

public String getPDS4FileRef() {
return this.pds4FileReference.get(0);
return EntityProduct.getFirstElmentOrNull(this.pds4FileReference);
}

public String getStartDateTime() {
return start_date_time.get(0);
return EntityProduct.getFirstElmentOrNull(this.start_date_time);
}

public String getStopDateTime() {
return stop_date_time.get(0);
return EntityProduct.getFirstElmentOrNull(this.stop_date_time);
}


Expand Down
2 changes: 1 addition & 1 deletion service/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
springfox.documentation.swagger.v2.path=/api-docs
server.contextPath=/
server.port=8080
server.use-forward-headers=true
server.forward-headers-strategy=framework

#spring.jackson.date-format=io.swagger.RFC3339DateFormat
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
Expand Down

0 comments on commit 297283e

Please sign in to comment.