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
Previous revision
Next revision Both sides next revision
documentation:2.1:notifications [2019/12/19 21:15]
cmaudoux [Notification server]
documentation:2.1:notifications [2020/02/13 22:02]
cmaudoux [Activation]
Line 9: Line 9:
 ==== Activation ==== ==== Activation ====
  
-You just have to activate Notifications in the Manager (General Parameters > Advanced Parameters > Notifications > Activation) or in ''​lemonldap-ng.ini''​ [portal] section:+You just have to activate Notifications in the Manager (General Parameters > Advanced Parameters > Notifications > Activation) 
 + 
 +or in ''​lemonldap-ng.ini''​ [portal] section:
 <file ini> <file ini>
 [portal] [portal]
-notification ​= 1+notificationsExplorer ​= 1
 </​file>​ </​file>​
  
 +By default, just the three last notifications are displayed. You can modify this by editing ''​lemonldap-ng.ini''​ [portal] section:
 +<file ini>
 +[portal]
 +notificationsMaxRetrieve = 3
 +</​file>​
 +
 +=== Usage ===
 +When enabled, /​mynotifications URL path is handled by this plugin.
 +
 +=== Known issue ===
 +An XML document can contain several notifications messages. Just the first one can be searched and displayed!
 ==== Storage ==== ==== Storage ====
  
Line 299: Line 312:
  
 # Retrieve all pending notifications # Retrieve all pending notifications
-curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/​_all_+curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/​_allPending_ 
 + 
 +# Retrieve all existing notifications 
 +curl -X GET -H "​Content-Type:​ application/​json"​ -H "​Accept:​ application/​json"​ http://​auth.example.com/​notifications/​_allExisting_
  
 # Retrieve all <​uid>'​s notifications ​ # Retrieve all <​uid>'​s notifications ​