Hi team,
we are using webinject of nagios for testing our webservices (REST)
we were able to test our GET services with the webinject plugin.
We are unable to find a method to test POST method using content type as application/json
Can you suggest any options.
POST data to REST API using webinject
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: POST data to REST API using webinject
you should be able to use check_http to verify your JSON endpoints.
an example that was worked through can be found here - https://support.nagios.com/forum/viewto ... 9&start=10 - note that the OP was originally missing -T "application/json"
an example that was worked through can be found here - https://support.nagios.com/forum/viewto ... 9&start=10 - note that the OP was originally missing -T "application/json"
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: POST data to REST API using webinject
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.