fixed swagger request params annotation
This commit is contained in:
parent
bb532ba1ce
commit
9d7994ef49
@ -16,6 +16,7 @@
|
|||||||
package org.thingsboard.server.controller;
|
package org.thingsboard.server.controller;
|
||||||
|
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.media.ArraySchema;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@ -251,7 +252,7 @@ public class TenantProfileController extends BaseController {
|
|||||||
|
|
||||||
@GetMapping(value = "/tenantProfiles", params = {"ids"})
|
@GetMapping(value = "/tenantProfiles", params = {"ids"})
|
||||||
@PreAuthorize("hasAuthority('SYS_ADMIN')")
|
@PreAuthorize("hasAuthority('SYS_ADMIN')")
|
||||||
public List<TenantProfile> getTenantProfilesByIds(@Parameter(description = "Comma-separated list of tenant profile ids")
|
public List<TenantProfile> getTenantProfilesByIds(@Parameter(description = "Comma-separated list of tenant profile ids", array = @ArraySchema(schema = @Schema(type = "string")))
|
||||||
@RequestParam("ids") UUID[] ids) {
|
@RequestParam("ids") UUID[] ids) {
|
||||||
return tenantProfileService.findTenantProfilesByIds(TenantId.SYS_TENANT_ID, ids);
|
return tenantProfileService.findTenantProfilesByIds(TenantId.SYS_TENANT_ID, ids);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user