xWyatt / check_rest_api

Nagios Core plugin to check output from a RESTful JSON API
GNU General Public License v3.0
11 stars 5 forks source link

Include API Method #13

Closed TPuschl closed 3 years ago

TPuschl commented 3 years ago

Hi, right now the script uses only the Method GET. We have now some API-Calls which requires instead of GET a POST Method. In our case no further parameters are needed. The return data is in json format an contains only "value: 12345". Would be great to add a parameter where it can be switched between GET and POST. Thx

xWyatt commented 3 years ago

Do you also need to send data in the body of the POST request or are all the API parameters in the URI?

It sounds like the latter but I want to double check before working on this.

W

TPuschl commented 3 years ago

Hi,

all Parameters are in the URI, so right now not data in body is needed but maybe in the future. So if you prepare it also which such a possibility it would be great.

Thomas