com.icthh.xm.commons.gen.api.TenantsApiController Maven / Gradle / Ivy
package com.icthh.xm.commons.gen.api;
import com.icthh.xm.commons.gen.model.Tenant;
import io.swagger.annotations.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;
import jakarta.validation.Valid;
import jakarta.validation.constraints.*;
import java.util.List;
@jakarta.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2024-10-07T13:54:13.370Z")
@Controller
public class TenantsApiController implements TenantsApi {
private final TenantsApiDelegate delegate;
@org.springframework.beans.factory.annotation.Autowired
public TenantsApiController(TenantsApiDelegate delegate) {
this.delegate = delegate;
}
public ResponseEntity addTenant(@ApiParam(value = "Tenant object that needs to be added to the store" ,required=true ) @Valid @RequestBody Tenant body) {
return delegate.addTenant(body);
}
public ResponseEntity deleteTenant(@ApiParam(value = "Name of tenant to delete",required=true) @PathVariable("tenantKey") String tenantKey) {
return delegate.deleteTenant(tenantKey);
}
public ResponseEntity> getAllTenantInfo() {
return delegate.getAllTenantInfo();
}
public ResponseEntity getTenant(@ApiParam(value = "Name of tenant to find",required=true) @PathVariable("tenantKey") String tenantKey) {
return delegate.getTenant(tenantKey);
}
public ResponseEntity manageTenant(@ApiParam(value = "Name of tenant to manage",required=true) @PathVariable("tenantKey") String tenantKey,@ApiParam(value = "Updated status for tenant" ,required=true ) @Valid @RequestBody String body) {
return delegate.manageTenant(tenantKey, body);
}
}