Skip to content

Commit

Permalink
chore: Rest Docs 샘플 - 추후 삭제 예정인 부분들 표기
Browse files Browse the repository at this point in the history
  • Loading branch information
linglong67 committed Jan 19, 2024
1 parent 8ec970a commit bf891da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module-api/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
:sectlinks:

include::overview.adoc[]
include::sample-api.adoc[]
include::sample-api.adoc[]
// !!! 위 라인 1줄은 추후 삭제 예정입니다 !!!
1 change: 1 addition & 0 deletions module-api/src/docs/asciidoc/sample-api.adoc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// !!! 삭제 예정 파일입니다 !!!
== 샘플 API

// [[]] 안에는 a 태그 이름 들어갑니다 (http://localhost:8080/docs/index#공통코드-조회)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public List<CommonCodeDto> getCommonCode (@PathVariable String codeName){
return commonCodeService.getCodes(codeName);
}

// !!! 아래 메서드는 추후 삭제 예정입니다 !!!
@GetMapping("/test/{codeName}")
public ResponseEntity<ApiResponse> getCommonCode_1 (@PathVariable String codeName){
List<CommonCodeDto> codes = commonCodeService.getCodes(codeName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static org.springframework.restdocs.request.RequestDocumentation.*;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;

// !!! 삭제 예정 파일입니다 !!!
class CommonCodeControllerRestDocsTest extends ControllerTest {

@Test
Expand Down

0 comments on commit bf891da

Please sign in to comment.