WorkBookController

@Validated
@RestController
@RequestMapping(value = ["/api/v1/workbooks"], produces = ["application/json"])
class WorkBookController(readWorkbookUseCase: ReadWorkbookUseCase, browseWorkBooksUseCase: BrowseWorkbooksUseCase)

Constructors

Link copied to clipboard
constructor(readWorkbookUseCase: ReadWorkbookUseCase, browseWorkBooksUseCase: BrowseWorkbooksUseCase)

Functions

Link copied to clipboard
@GetMapping(value = ["/categories"])
fun browseWorkBookCategories(): ApiResponse<ApiResponse.SuccessBody<Map<String, Any>>>
Link copied to clipboard
@GetMapping
fun browseWorkBooks(userArgumentDetails: UserArgumentDetails, @RequestParam(value = "category", required = false) category: WorkBookCategory?, @RequestParam(value = "view", required = false) viewCategory: ViewCategory?): ApiResponse<ApiResponse.SuccessBody<BrowseWorkBooksResponse>>
Link copied to clipboard
@GetMapping(value = ["/{workbookId}"])
fun readWorkBook(@PathVariable(value = "workbookId") @Min(value = 1, message = "{min.id}") workbookId: Long): ApiResponse<ApiResponse.SuccessBody<ReadWorkBookResponse>>