MemberController

@Validated
@RestController
@RequestMapping(value = ["/api/v1/members"], produces = ["application/json"])
class MemberController(saveMemberUseCase: SaveMemberUseCase, deleteMemberUseCase: DeleteMemberUseCase, tokenUseCase: TokenUseCase)

Constructors

Link copied to clipboard
constructor(saveMemberUseCase: SaveMemberUseCase, deleteMemberUseCase: DeleteMemberUseCase, tokenUseCase: TokenUseCase)

Functions

Link copied to clipboard
@DeleteMapping
fun deleteMember(@AuthenticationPrincipal userDetails: TokenUserDetails): ApiResponse<ApiResponse.Success>
Link copied to clipboard
Link copied to clipboard
@PostMapping(value = ["/token"])
fun token(@RequestParam(value = "auth_token", required = false) token: String?, @RequestParam(value = "at", required = false) at: Long?, @RequestParam(value = "rt", required = false) rt: Long?, @RequestBody request: TokenRequest?): ApiResponse<ApiResponse.SuccessBody<TokenResponse>>