@@ -212,26 +212,15 @@ public static void insertDigitalDoubleData(MultipartFile image, MultipartFile vi
212
212
System .out .println ("DigitalDoubles.downloaddigitaldouble lookup email:" + email );
213
213
// String url = AIApplication.ORDS_OMLOPSENDPOINT_URL + "modelurls/geturls/" + email;
214
214
String baseUrl = AIApplication .ORDS_OMLOPSENDPOINT_URL + "/digitaldouble/fbxurl/" ;
215
-
216
- // Use UriComponentsBuilder to append the email as a query parameter
217
215
URI uri = UriComponentsBuilder .fromHttpUrl (baseUrl )
218
- .queryParam ( "email" , URLEncoder .encode (email , "UTF-8" ))
216
+ .pathSegment ( URLEncoder .encode (email , "UTF-8" ))
219
217
.build (true ).toUri ();
220
- System .out .println ("ORDSCalls.getDigitalDoubleData uri=" + uri .toString ());
221
-
222
- // Set the headers
218
+ System .out .println ("ORDSCalls.getDigitalDoubleData uri=" + uri );
223
219
HttpHeaders headers = new HttpHeaders ();
224
220
headers .setContentType (MediaType .APPLICATION_JSON );
225
-
226
- // Prepare the request entity with headers
227
221
HttpEntity <String > entity = new HttpEntity <>(headers );
228
-
229
- // Execute the GET request
230
222
ResponseEntity <String > response = new RestTemplate ().exchange (uri , HttpMethod .GET , entity , String .class );
231
-
232
- // Check if the response is successful (status code 200)
233
223
if (response .getStatusCode ().is2xxSuccessful ()) {
234
- // Get the body of the response, which is the FBX URL
235
224
String modelFbxUrl = response .getBody ();
236
225
System .out .println ("MODELFBXURL_OUT: " + modelFbxUrl );
237
226
return modelFbxUrl ;
0 commit comments