Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ public MemoCreateResponse createMemo(String clientId, MemoCreateRequest request)
public MemoListResponse getAllMemos(String clientId) {
List<Memo> memos = memoRepository.findAllByClientIdOrderByDateAsc(clientId);

if (memos.isEmpty()) {
throw new CustomException(ErrorCode.NO_MEMOS_FOUND, "등록된 메모가 없습니다.");
}

return MemoListResponse.from(clientId, memos);
}
} // 듀기 걍 이대로 가묜 되는데여 ㅇㅅㅇ 다시 해볼개 404오류떠요,,,, 무슨 404 오류죠듀기 카톡으로 보내바요

public MemoDetailResponse getMemoDetail(String clientId, Long memoId) {
Memo memo = memoRepository.findById(memoId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public class SwaggerConfig {
@Bean
public OpenAPI openAPI() {

Server localServer = new Server()
.url("http://localhost:8080")
.description("로컬 테스트 서버");

Server httpsServer = new Server()
.url("https://43-200-255-137.nip.io") // <-- HTTPS 주소
.description("배포 서버");
Expand All @@ -21,6 +25,6 @@ public OpenAPI openAPI() {
.title("DearMe REST API")
.description("DearMe - REST API Swagger 문서")
.version("v1.0.0"))
.servers(java.util.List.of(httpsServer));
.servers(java.util.List.of(localServer, httpsServer));
}
}