[ADD] 외부 Edge 패키지 검색 API 추가, application.properties의 Edge 패키지 검색 URL 수정

main
bjkim 8 months ago
parent c8ceed469c
commit 3204027ac1

@ -96,6 +96,20 @@ public class ExternalAuthController {
} }
} }
@Operation(summary = "Edge 패키지 목록 조회", description = "로그인 후 받은 id와 token을 사용해 외부 Edge 패키지 검색 API를 호출합니다.")
@GetMapping("/edge-search")
public ResponseEntity<ApiResponse> edgeSearch(
@RequestParam String id,
@RequestParam String token
) {
try {
Map<String, Object> edgeResult = externalAuthService.getEdgePackageList(id, token);
return ResponseEntity.ok(ApiResponse.success(edgeResult));
} catch (Exception e) {
return ResponseEntity.ok(ApiResponse.failure(e.getMessage()));
}
}
// @Operation( // @Operation(
// summary = "S3 업로드 + 외부 DB 등록", // summary = "S3 업로드 + 외부 DB 등록",
// description = "파일을 S3에 업로드하고 외부 DB에 등록합니다.", // description = "파일을 S3에 업로드하고 외부 DB에 등록합니다.",

@ -73,7 +73,7 @@ spring.servlet.multipart.enabled=true
#OTA?? #OTA??
external.auth.signin-url=https://a659120d3e2ff43ff94087b29396fd96-1057696791.ap-northeast-2.elb.amazonaws.com/api/datamanager/user/signin external.auth.signin-url=https://a659120d3e2ff43ff94087b29396fd96-1057696791.ap-northeast-2.elb.amazonaws.com/api/datamanager/user/signin
external.auth.edge-search-url=https://cuuva.com:24443/api/datamanager/edge-pkg/search external.auth.edge-search-url=https://a659120d3e2ff43ff94087b29396fd96-1057696791.ap-northeast-2.elb.amazonaws.com/api/datamanager/edge-pkg/search
cloud.aws.region.static=ap-northeast-2 cloud.aws.region.static=ap-northeast-2
cloud.aws.credentials.access-key=AKIA2UC3EPERDDR4UOWN cloud.aws.credentials.access-key=AKIA2UC3EPERDDR4UOWN

Loading…
Cancel
Save