mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-10 21:31:53 +01:00
Change responseContainer from Collection to List (#1554)
In order to change to a valid type since the documentation suggests "Valid values are "List", "Set" or "Map". Any other value will be ignored.". Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
This commit is contained in:
parent
a00cc871a9
commit
ccde410d6a
@ -127,9 +127,9 @@ public class RuleResource implements RESTResource {
|
||||
|
||||
@GET
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
@ApiOperation(value = "Get available rules, optionally filtered by tags and/or prefix.", response = EnrichedRuleDTO.class, responseContainer = "Collection")
|
||||
@ApiOperation(value = "Get available rules, optionally filtered by tags and/or prefix.", response = EnrichedRuleDTO.class, responseContainer = "List")
|
||||
@ApiResponses(value = {
|
||||
@ApiResponse(code = 200, message = "OK", response = EnrichedRuleDTO.class, responseContainer = "Collection") })
|
||||
@ApiResponse(code = 200, message = "OK", response = EnrichedRuleDTO.class, responseContainer = "List") })
|
||||
public Response get(@QueryParam("prefix") final @Nullable String prefix,
|
||||
@QueryParam("tags") final @Nullable List<String> tags) {
|
||||
// match all
|
||||
|
Loading…
Reference in New Issue
Block a user