Skip to content

Commit db49d75

Browse files
committed
Adjust Swagger annotation
Signed-off-by: Florian Hotze <dev@florianhotze.com>
1 parent 5b0b8a8 commit db49d75

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/persistence

bundles/org.openhab.core.io.rest.core/src/main/java/org/openhab/core/io/rest/core/internal/persistence/PersistenceResource.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
import org.openhab.core.persistence.HistoricItem;
6363
import org.openhab.core.persistence.ModifiablePersistenceService;
6464
import org.openhab.core.persistence.PersistenceItemConfiguration;
65-
import org.openhab.core.persistence.PersistenceItemInfo;
6665
import org.openhab.core.persistence.PersistenceManager;
6766
import org.openhab.core.persistence.PersistenceService;
6867
import org.openhab.core.persistence.PersistenceServiceProblem;
@@ -273,7 +272,7 @@ public Response httpDeletePersistenceServiceConfiguration(@Context UriInfo uriIn
273272
@Produces({ MediaType.APPLICATION_JSON })
274273
@Operation(operationId = "getItemsForPersistenceService", summary = "Gets a list of items available via a specific persistence service.", security = {
275274
@SecurityRequirement(name = "oauth2", scopes = { "admin" }) }, responses = {
276-
@ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = PersistenceItemInfo.class), uniqueItems = true))) })
275+
@ApiResponse(responseCode = "200", description = "OK", content = @Content(array = @ArraySchema(schema = @Schema(implementation = PersistenceItemInfoDTO.class), uniqueItems = true))) })
277276
public Response httpGetPersistenceServiceItems(@Context HttpHeaders headers,
278277
@Parameter(description = "Id of the persistence service. If not provided the default service will be used") @QueryParam("serviceId") @Nullable String serviceId) {
279278
return getServiceItemList(serviceId);

0 commit comments

Comments
 (0)