-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: AppCache 삭제 API 구현 - AppCache 삭제를 진행하는 API를 구현했습니다. * feat: AppService .evictAppCache 메서드 구현 - 앱 캐시 삭제 메서드를 구현했습니다. - 앱이 존재하는 경우 예외를 발생시킵니다. * refactor: API 전달 형식 변경 - Body -> Path Parameter * refactor: 앱 삭제시 캐시 삭제 API 호출 로직 추가 - 앱 삭제 요청시 API 호출을 통한 캐시 삭제 로직을 추가했습니다. * remove: 사용하지 않는 테스트 삭제
- Loading branch information
Showing
8 changed files
with
127 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
logbat/src/main/java/info/logbat/domain/project/presentation/AppController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package info.logbat.domain.project.presentation; | ||
|
||
import info.logbat.domain.project.application.AppService; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
import org.springframework.web.bind.annotation.DeleteMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.ResponseStatus; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
|
||
@RestController | ||
@RequestMapping("/apps") | ||
@RequiredArgsConstructor | ||
public class AppController { | ||
|
||
private final AppService appService; | ||
|
||
@DeleteMapping("/{token}") | ||
@ResponseStatus(HttpStatus.NO_CONTENT) | ||
public void removeAppCache(@PathVariable String token) { | ||
appService.evictAppCache(token); | ||
} | ||
|
||
} |
10 changes: 4 additions & 6 deletions
10
logbat/src/main/java/info/logbat/domain/project/repository/AppRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
logbat_meta/src/test/java/info/logbat_meta/LogbatMetaApplicationTests.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.