Skip to content

Commit 02d41e6

Browse files
committed
digital double logic
1 parent 9239c1f commit 02d41e6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

java-ai/src/main/java/oracleai/services/ORDSCalls.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,13 @@ public static void insertDigitalDoubleData(MultipartFile image, MultipartFile vi
206206

207207
public static @Nullable String getDigitalDoubleData(String email) throws JsonProcessingException {
208208
System.out.println("DigitalDoubles.downloaddigitaldouble lookup email:" + email);
209-
String url = AIApplication.ORDS_OMLOPSENDPOINT_URL +
210-
"modelurls/geturls/" + email;
209+
String url = AIApplication.ORDS_OMLOPSENDPOINT_URL + "modelurls/geturls/" + email;
211210
HttpHeaders headers = new HttpHeaders();
212211
headers.setContentType(MediaType.APPLICATION_JSON);
213-
214212
HttpEntity<String> entity = new HttpEntity<>(headers);
215-
216-
ResponseEntity<String> response = new RestTemplate().exchange(url, HttpMethod.GET, entity, String.class);
217-
213+
ResponseEntity<String> response = new RestTemplate().exchange(url, HttpMethod.POST, entity, String.class);
218214
ObjectMapper objectMapper = new ObjectMapper();
219215
JsonNode rootNode = objectMapper.readTree(response.getBody());
220-
221216
String modelGlbUrl = rootNode.path("MODELGLBURL_OUT").asText();
222217
String modelFbxUrl = rootNode.path("MODELFBXURL_OUT").asText();
223218
String modelUsdzUrl = rootNode.path("MODELUSDZURL_OUT").asText();

0 commit comments

Comments
 (0)