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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import org.springframework.security.core.annotation.AuthenticationPrincipal
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.*
import org.springframework.web.multipart.MultipartFile
import java.io.File

@Controller
@RequestMapping("/api")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import org.springframework.web.bind.annotation.RequestMapping
class ScrapController @Autowired constructor(
private val scrapService: ScrapService
) : ScrapControllerSwagger {

@PostMapping("/scrap/push")
override fun pushScrap(@RequestBody scrapRequest: ScrapRequest): ResponseEntity<ScrapResponse> {
val dto = scrapService.doLike(scrapRequest.toHandleDto())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class AutoCompleteController @Autowired constructor(

@PostMapping("/update-string")
override fun updateAutoCompleteString(
@RequestParam input: String
@RequestBody autoCompleteUpdateRequest: AutoCompleteUpdateRequest
): ResponseEntity<AutoCompleteUpdateResponse> {
autoCompleteService.updateAutoComplete(input)
return ResponseEntity.ok(AutoCompleteUpdateResponse(input))
autoCompleteService.updateAutoComplete(autoCompleteUpdateRequest.input)
return ResponseEntity.ok(AutoCompleteUpdateResponse(autoCompleteUpdateRequest.input))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ interface AutoCompleteSwagger {
fun getAutoCompleteString(input: String): ResponseEntity<AutoCompleteGetResponse>

@Operation(summary = "자동완성 문자열 추가 \uD83D\uDD12", description = "자동완성될 문자열을 추가합니다.")
fun updateAutoCompleteString(@Parameter(description = "추가할 문자열", required = true) input: String): ResponseEntity<AutoCompleteUpdateResponse>
fun updateAutoCompleteString(@RequestBody autoCompleteUpdateRequest: AutoCompleteUpdateRequest): ResponseEntity<AutoCompleteUpdateResponse>
}
Loading