-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c58dc5f
commit b9835fb
Showing
10 changed files
with
277 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
= 리뷰 API | ||
|
||
리뷰 API 목록입니다. | ||
|
||
== 리뷰 제출 API | ||
|
||
=== Request __ | ||
|
||
operation::post-review-result[snippets='http-request,request-fields'] | ||
|
||
=== Response __ | ||
|
||
operation::post-review-result[snippets='http-response,response-fields'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 12 additions & 3 deletions
15
core/core-api/src/main/kotlin/io/say/better/domain/review/ui/ReviewController.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package io.say.better.domain.review.ui | ||
|
||
import io.say.better.core.common.response.ResponseDto | ||
import io.say.better.domain.review.application.ReviewFacade | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
import io.say.better.domain.review.ui.dto.ReviewRequest | ||
import org.springframework.web.bind.annotation.* | ||
|
||
@RestController | ||
@RequestMapping("/api/review") | ||
class ReviewController( | ||
private val reviewFacade: ReviewFacade, | ||
) | ||
) { | ||
@PostMapping | ||
fun submitReview( | ||
@RequestBody request: List<ReviewRequest.SubmitReview>, | ||
): ResponseDto<Nothing?> { | ||
reviewFacade.submitReview(request) | ||
return ResponseDto.onSuccess(null) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.