Rest search returns SearchResults.isEmpty()

Description

Change abea19b822bb7cb0181f4c308d396732dce274ea introduced SearchResults.isEmpty() without @JsonIgnore, so any call to serach Rest api will return {"empty":true or false}.
SearchResults.isEmpty() is never used, so it could be deleted to solve the issue.

Environment

Newts >= 1.3.1

Lucidchart Diagrams

Activity

Show:

Jesse White April 13, 2016 at 11:18 AM

Cyrille Bollu January 15, 2016 at 10:02 AM

Jesse White January 4, 2016 at 1:18 PM

isEmpty() is referenced by other projects that use the Java API.

org.opennms.newts.rest.SearchResource should transform the SearchResults to a DTO with the proper JSON annotations.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Due date

Priority

PagerDuty

Created November 11, 2015 at 2:28 PM
Updated April 13, 2016 at 11:18 AM
Resolved April 13, 2016 at 11:18 AM