Commits


Merge get and getFilter methods Doing a GET without a query is the same as doing a GET with an empty query, so there's no point having 2 separate methods.


Merge filter and all objects methods Getting all objects is the same as getting objects with a zero filter.


Deduplicate case conditions Encoding a Host, Service and User as JSON is the same so there's no point having different statements.


I learned how to do some generic programming New type "object" is an interface to represent an Icinga2 object. I added heaps of other stuff! On our way to 1000 lines of code!