Commit Briefs
Remove unnecessary parseAPIResponse function
All this did was wrap the usual standard library JSON decode procedure.
Remove useless loop
We always returned something on the first iteration, so just remove it.
Actually return permissions grante to the client
Before we were just returning an empty response or something non-meaningful
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.
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!
add Icinga service and host states
Nothing actually uses these yet but they will soon!
Embed http.Client in Client
No need to have it named
