Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
documentation:2.1:notifications [2019/11/19 16:54]
cmaudoux
documentation:2.1:notifications [2019/12/19 21:15]
cmaudoux [Notification server]
Line 269: Line 269:
 } }
 </​code>​ </​code>​
- 
  
 === JSON notifications through REST === === JSON notifications through REST ===
Line 284: Line 283:
  
 == * Deletion example with REST API == == * Deletion example with REST API ==
 +DELETE API is available with LLNG ≥ 2.0.6
 +
 For example with curl: For example with curl:
 <​code>​ <​code>​
Line 290: Line 291:
  
 == * List example with REST API == == * List example with REST API ==
 +GET API is available with LLNG ≥ 2.0.6
 +
 For example with curl: For example with curl:
 <​code>​ <​code>​
 +# Retrieve '​wildcard'​ notifications
 curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications
  
 +# Retrieve all pending notifications
 +curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/​_all_
 +
 +# Retrieve all <​uid>'​s notifications ​
 curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/<​uid>​ curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/<​uid>​
  
 +# Retrieve <​uid>/<​reference>​ notification parameters
 curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/<​uid>/<​reference>​ curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/<​uid>/<​reference>​
 </​code>​ </​code>​
- 
 ==== Test notification ==== ==== Test notification ====