Skip to content

Commit

Permalink
🔧 chore: ApiDocument 공용 인터페이스 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jun02160 committed Jan 10, 2024
1 parent a16b2cf commit 3e44013
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
17 changes: 17 additions & 0 deletions src/test/java/sopt/org/motivooServer/util/ApiDocumentUtil.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package sopt.org.motivooServer.util;

import static org.springframework.restdocs.operation.preprocess.Preprocessors.*;

import org.springframework.restdocs.operation.preprocess.OperationRequestPreprocessor;
import org.springframework.restdocs.operation.preprocess.OperationResponsePreprocessor;

public interface ApiDocumentUtil {

static OperationRequestPreprocessor getDocumentRequest() {
return preprocessRequest(prettyPrint());
}

static OperationResponsePreprocessor getDocumentResponse() {
return preprocessResponse(prettyPrint());
}
}
22 changes: 0 additions & 22 deletions src/test/resources/application.yml

This file was deleted.

0 comments on commit 3e44013

Please sign in to comment.