-
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.
Merge pull request #151 from Say-Better/faeture/150
✨ Feat: 리뷰 제출 API
- Loading branch information
Showing
10 changed files
with
280 additions
and
21 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
14 changes: 13 additions & 1 deletion
14
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,23 @@ | ||
package io.say.better.domain.review.ui | ||
|
||
import io.say.better.core.common.response.ResponseDto | ||
import io.say.better.domain.review.application.ReviewFacade | ||
import io.say.better.domain.review.ui.dto.ReviewRequest | ||
import org.springframework.web.bind.annotation.PostMapping | ||
import org.springframework.web.bind.annotation.RequestBody | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RestController | ||
|
||
@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.