@@ -212,26 +212,15 @@ public static void insertDigitalDoubleData(MultipartFile image, MultipartFile vi
212212 System .out .println ("DigitalDoubles.downloaddigitaldouble lookup email:" + email );
213213// String url = AIApplication.ORDS_OMLOPSENDPOINT_URL + "modelurls/geturls/" + email;
214214 String baseUrl = AIApplication .ORDS_OMLOPSENDPOINT_URL + "/digitaldouble/fbxurl/" ;
215-
216- // Use UriComponentsBuilder to append the email as a query parameter
217215 URI uri = UriComponentsBuilder .fromHttpUrl (baseUrl )
218- .queryParam ( "email" , URLEncoder .encode (email , "UTF-8" ))
216+ .pathSegment ( URLEncoder .encode (email , "UTF-8" ))
219217 .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 );
223219 HttpHeaders headers = new HttpHeaders ();
224220 headers .setContentType (MediaType .APPLICATION_JSON );
225-
226- // Prepare the request entity with headers
227221 HttpEntity <String > entity = new HttpEntity <>(headers );
228-
229- // Execute the GET request
230222 ResponseEntity <String > response = new RestTemplate ().exchange (uri , HttpMethod .GET , entity , String .class );
231-
232- // Check if the response is successful (status code 200)
233223 if (response .getStatusCode ().is2xxSuccessful ()) {
234- // Get the body of the response, which is the FBX URL
235224 String modelFbxUrl = response .getBody ();
236225 System .out .println ("MODELFBXURL_OUT: " + modelFbxUrl );
237226 return modelFbxUrl ;
0 commit comments