Flashmark
Flashmark

Reputation: 129

Get notification on change to public API response

I want to get a notification when there is a response change of a public API.

My requirement is to monitor API thorough the day and triggers notifications instantly when it is detecting.

Can I do this using API testing tools such as Postman, Soap UI or JMeter? Are there any open-source tools that fulfil my requirement?

P.S : I want to get a notification when there is a response change. Because endpoint breaks in rare cases. I think API monitoring tools detect when there is a failure in endpoint it is not detecting response changes.

Upvotes: 0

Views: 1146

Answers (3)

Dmitri T
Dmitri T

Reputation: 168147

Any tool which is capable of sending a HTTP request like curl will do the trick for you.

Any API testing tool comes with the possibility to check the response:

  1. SoapUI - Getting started with Assertions
  2. Postman - Making assertions on the HTTP response - Testing response body
  3. How to Use JMeter Assertions in Three Easy Steps

With regards to "triggers notifications" - it mainly depends on what type of "notification" you need to "trigger", all the tools can be configured to execute non-zero exit status code suitable for post-processing/scripting

Upvotes: 3

Ori Marko
Ori Marko

Reputation: 58862

In JMeter you can add assertion to your HTTP request which check response and fail your test in case of mismatch

You can execute JMeter test in Jenkins periodically and send notification on error

JMeter has more options and you can write code in JSR223 Sampler

JSR223 Sampler allows JSR223 script code to be used to perform a sample or some computation

Or/and use SMTP Sampler

SMTP Sampler can send mail messages using SMTP/SMTPS protocol.

Upvotes: 2

PDHide
PDHide

Reputation: 19979

Create a monitor with postman,

enter image description here

This regularly run collection against the poublic api as per the schedule and sends you run result.

Upvotes: 2

Related Questions