Please disable Adblockers and enable JavaScript for domain CEWebS.cs.univie.ac.at! We have NO ADS, but they may interfere with some of our course material.
Name: tests/monitor_add.rb
1: | #!/usr/bin/ruby |
2: | require 'riddl/client' |
3: | |
4: | srv = Riddl::Client.new('http://localhost:9302','http://localhost:9302/?riddl-description') |
5: | res = srv.resource("/Virtual%20Business%201/notifications/subscriptions/") |
6: | status, response = res.post [ |
7: | Riddl::Parameter::Simple.new("url","http://solo.wst.univie.ac.at"), |
8: | Riddl::Parameter::Simple.new("topic","task"), |
9: | Riddl::Parameter::Simple.new("events","add"), |
10: | ] |