Skip to content

Commit

Permalink
Merge branch 'feature/#27' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
strangehoon committed Feb 16, 2024
2 parents edcc826 + 0256af5 commit 58ed21e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/docs/asciidoc/api/auth.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ include::{snippets}/login-kakao-success/http-request.adoc[]
include::{snippets}/login-kakao-success/query-parameters.adoc[]

==== HTTP Response
- Response body
include::{snippets}/login-kakao-success/http-response.adoc[]
- Response body
include::{snippets}/login-kakao-success/response-fields.adoc[]


Expand All @@ -30,8 +30,8 @@ include::{snippets}/login-kakao-failure/query-parameters.adoc[]


==== HTTP Response
- Response body
include::{snippets}/login-kakao-failure/http-response.adoc[]
- Response body
include::{snippets}/login-kakao-failure/response-fields.adoc[]

'''
Expand Down
5 changes: 5 additions & 0 deletions src/docs/asciidoc/api/feedback.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ include::{snippets}/feedback/detail/path-parameters.adoc[]

==== HTTP Response
include::{snippets}/feedback/detail/http-response.adoc[]
- Response body
include::{snippets}/feedback/detail/response-fields.adoc[]

'''
Expand All @@ -24,10 +25,12 @@ include::{snippets}/feedback/detail/response-fields.adoc[]

==== HTTP Requests
include::{snippets}/feedback/save/http-request.adoc[]
- Path parameters +
include::{snippets}/feedback/save/path-parameters.adoc[]

==== HTTP Response
include::{snippets}/feedback/save/http-response.adoc[]
- Response body
include::{snippets}/feedback/save/response-fields.adoc[]

'''
Expand All @@ -39,9 +42,11 @@ include::{snippets}/feedback/save/response-fields.adoc[]

==== HTTP Requests
include::{snippets}/feedback/submit/http-request.adoc[]
- Path parameters +
include::{snippets}/feedback/submit/path-parameters.adoc[]

==== HTTP Response
include::{snippets}/feedback/submit/http-response.adoc[]
- Response body
include::{snippets}/feedback/submit/response-fields.adoc[]

Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void reissueToken_success() throws Exception {
ResultActions resultActions = mockMvc.perform(
post("/api/auth/reissue")
.contentType(MediaType.APPLICATION_JSON)
.content(content).with(csrf()))
.content(content).with(csrf().asHeader()))
.andExpect(status().isOk())
.andExpect(jsonPath("$.code").value("200"))
.andExpect(jsonPath("$.message").value("성공"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

import java.time.LocalDate;

import static com.sendback.domain.project.entity.Progress.PLANNING;
import static com.sendback.global.common.constants.FieldName.ART;

public class FeedbackFixture {

private static final String TITLE = "title";
Expand All @@ -27,7 +30,7 @@ public class FeedbackFixture {
public static final FeedbackDetailResponseDto MOCK_FEEDBACK_DETAIL_RESPONSE = new FeedbackDetailResponseDto(
1L, "유저 닉네임", Level.ONE.getName(), "프로필 이미지 url", 1L, "피드백 제목", "피드백 링크",
"피드백 내용", "추가 리워드 메시지", "yyyy-MM-dd HH:mm", LocalDate.of(2024, 1, 12).toString(),
LocalDate.of(2024, 1, 15).toString(),1L, "프로젝트 ID", "art", "PLANNING");
LocalDate.of(2024, 1, 15).toString(),1L, "프로젝트 ID", ART.getName(), PLANNING.getValue());

public static final SubmitFeedbackResponseDto MOCK_SUBMIT_FEEDBACK_RESPONSE = new SubmitFeedbackResponseDto(
Level.ONE.getName(), false, 4L);
Expand Down

0 comments on commit 58ed21e

Please sign in to comment.