TenantController

@RestController
@RequestMapping(value = ["/api/v2/tenants"])
class TenantController(service: TenantService, rateLimitService: RateLimitService)(source)

Constructors

Link copied to clipboard
constructor(service: TenantService, rateLimitService: RateLimitService)

Functions

Link copied to clipboard
@PostMapping
@ResponseStatus(value = HttpStatus.CREATED)
fun create(@Valid @RequestBody request: CreateTenantRequest)
Link copied to clipboard
@GetMapping
fun list(): List<Tenant>
Link copied to clipboard
@PostMapping(value = ["/onboarding"])
@ResponseStatus(value = HttpStatus.CREATED)
fun onboarding(@Valid @RequestBody request: CreateTenantRequest)
Link copied to clipboard
@PatchMapping(value = ["/{tenantId}/plan"])
@ResponseStatus(value = HttpStatus.NO_CONTENT)
fun updatePlan(@PathVariable tenantId: String, @Valid @RequestBody request: UpdatePlanRequest)