AdminController

@Validated
@RestController
@RequestMapping(value = ["/api/v1/admin"])
class AdminController(addArticleUseCase: AddArticleUseCase, addWorkbookUseCase: AddWorkbookUseCase, mapArticleUseCase: MapArticleUseCase, convertContentUseCase: ConvertContentUseCase, putImageUseCase: PutImageUseCase)

Constructors

Link copied to clipboard
constructor(addArticleUseCase: AddArticleUseCase, addWorkbookUseCase: AddWorkbookUseCase, mapArticleUseCase: MapArticleUseCase, convertContentUseCase: ConvertContentUseCase, putImageUseCase: PutImageUseCase)

Functions

Link copied to clipboard
@PostMapping(value = ["/articles"])
fun addArticle(@RequestBody request: AddArticleRequest): ApiResponse<ApiResponse.SuccessBody<AddArticleResponse>>
Link copied to clipboard
@PostMapping(value = ["/workbooks"])
fun addWorkbook(@RequestBody request: AddWorkbookRequest): ApiResponse<ApiResponse.SuccessBody<AddWorkbookResponse>>
Link copied to clipboard
@PostMapping(value = ["/utilities/conversion/content"], consumes = ["multipart/form-data"])
fun convertContent(request: ConvertContentRequest): ApiResponse<ApiResponse.SuccessBody<ConvertContentResponse>>
Link copied to clipboard
@PostMapping(value = ["/relations/articles"])
fun mapArticle(@RequestBody request: MapArticleRequest): ApiResponse<ApiResponse.Success>
Link copied to clipboard
@PostMapping(value = ["/utilities/conversion/image"], consumes = ["multipart/form-data"])
fun putImage(request: ImageSourceRequest): ApiResponse<ApiResponse.SuccessBody<ImageSourceResponse>>