Skip to content

Commit

Permalink
refactor: 보호소에 달린 후기 리스트 조회(봉사자)를 명세에 맞게 수정한다. (#159)
Browse files Browse the repository at this point in the history
* refactor: 응답 필드명을 수정한다.

* docs: findShelterReviewsByVolunteer를 restdocs에 문서화한다.
  • Loading branch information
bjo6300 authored Nov 8, 2023
1 parent 7f632d4 commit a9abe45
Show file tree
Hide file tree
Showing 4 changed files with 1,382 additions and 1,363 deletions.
20 changes: 19 additions & 1 deletion src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@
=== 봉사자가 완료한 봉사 모집글 리스트 조회

==== Request

operation::recruitment-controller-test/find-completed-recruitments[snippets='http-request,path-parameters,query-parameters']

==== Response

operation::recruitment-controller-test/find-completed-recruitments[snippets='http-response,response-fields']

== 보호 동물

=== 보호 동물 상세 조회

==== Request

operation::animal-controller-test/find-animal-detail-test[snippets='http-request,path-parameters']

==== Response

operation::animal-controller-test/find-animal-detail-test[snippets='http-response,response-fields']

= 보호소
Expand All @@ -36,21 +40,35 @@ operation::animal-controller-test/find-animal-detail-test[snippets='http-respons
=== 1) 봉사 모집글 조회 & 검색

==== Request

operation::recruitment-controller-test/find-recruitments-by-volunteer[snippets='http-request,request-headers,query-parameters']

==== Response

operation::recruitment-controller-test/find-recruitments-by-volunteer[snippets='http-response,response-fields']

=== 보호소에 달린 후기 리스트 조회

==== Request

operation::review-controller-test/find-shelter-reviews-by-volunteer[snippets='http-request,path-parameters,query-parameters']

==== Response

operation::review-controller-test/find-shelter-reviews-by-volunteer[snippets='http-response,response-fields']

== 2. 보호소

== 3. 봉사 모집

=== 1) 봉사 모집글 등록

==== Request

operation::recruitment-controller-test/register-recruitment[snippets='http-request,request-headers,request-fields']

==== Response

operation::recruitment-controller-test/register-recruitment[snippets='http-response,response-headers']

== 4. 봉사 신청
Expand Down Expand Up @@ -93,4 +111,4 @@ include::{snippets}/enum-documentation-test/animal-type/enum-response-fields.ado

== 5. 봉사자 성별

include::{snippets}/enum-documentation-test/animal-type/enum-response-fields.adoc[]
include::{snippets}/enum-documentation-test/animal-type/enum-response-fields.adoc[]
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public record FindShelterReviewsByVolunteerResponse(

public record FindShelterReviewByVolunteerResponse(
Long reviewId,
Integer temperature,
LocalDateTime createdAt,
String content,
String email,
Integer volunteerTemperature,
LocalDateTime reviewCreatedAt,
String reviewContent,
String volunteerEmail,
List<String> reviewImageUrls
) {

Expand Down
Loading

0 comments on commit a9abe45

Please sign in to comment.