mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Updated swagger annotiona for getItemByName (#5443)
Signed-off-by: Jeff James <jeff@james-online.com>
This commit is contained in:
+2
-1
@@ -341,7 +341,8 @@ public class ItemResource implements RESTResource {
|
||||
@Path("/{itemName: [a-zA-Z_0-9]+}")
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@Operation(operationId = "getItemByName", summary = "Gets a single item.", responses = {
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(implementation = EnrichedItemDTO.class))),
|
||||
@ApiResponse(responseCode = "200", description = "OK", content = @Content(schema = @Schema(oneOf = {
|
||||
EnrichedItemDTO.class, EnrichedGroupItemDTO.class }))),
|
||||
@ApiResponse(responseCode = "404", description = "Item not found") })
|
||||
public Response getItemByName(final @Context UriInfo uriInfo, final @Context HttpHeaders httpHeaders,
|
||||
@HeaderParam(HttpHeaders.ACCEPT_LANGUAGE) @Parameter(description = "language") @Nullable String language,
|
||||
|
||||
Reference in New Issue
Block a user