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
2 changes: 1 addition & 1 deletion src/docs/asciidoc/api/challenge.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ include::{snippets}/challenge-controller-docs-test/achieve-challenge/response-fi
.HTTP Request
include::{snippets}/challenge-controller-docs-test/cancel-challenge/http-request.adoc[]
include::{snippets}/challenge-controller-docs-test/cancel-challenge/path-parameters.adoc[]
include::{snippets}/challenge-controller-docs-test/cancel-challenge/response-fields.adoc[]
include::{snippets}/challenge-controller-docs-test/cancel-challenge/request-fields.adoc[]

.HTTP Response
include::{snippets}/challenge-controller-docs-test/cancel-challenge/http-response.adoc[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ void achieveChallenge() throws Exception {
));
}

@DisplayName("챌린지를 취소하는 API")
@DisplayName("챌린지 달성 취소하는 API")
@Test
void cancelChallenge() throws Exception {
// given
Expand Down Expand Up @@ -446,6 +446,11 @@ void cancelChallenge() throws Exception {
.attributes(field("type", "Long"))
.description("챌린지 아이디")
),
requestFields(
fieldWithPath("cancelDate").type(STRING)
.attributes(field("constraints", "yyyy-MM-dd"))
.description("취소 일자")
),
responseFields(successResponse())
.and(
fieldWithPath("data").type(OBJECT)
Expand Down
Loading