When querying a ReST API for an element that doesn't exist, the answer should be either an HTTP 204 (No Content) or an HTTP 404 (Not Found).
Unfortunately, this is not the case for the Alarms end point. It returns an HTTP 200 with no content.
In order to reproduce the problem, do the following:
- Install OpenNMS
- Add a test node
- Generate a fake node down event using send-event.pl
- Query the alarms ReST end point to verify that there is one alarm for the node down.
- Query the alarms ReST end point for a specific alarm using a number you know it doesn't exist on the alarms table
I verified this behavior with Meridian 2015.1.0 and latest build of 17.0.0-SNAPSHOT.