$usergroups (SData)
De Wiki1000
(Différences entre les versions)
m (a déplacé Usergroups (SData) vers $usergroups (SData)) |
|||
| (6 révisions intermédiaires par 2 utilisateurs sont masquées) | |||
| Ligne 8 : | Ligne 8 : | ||
Exemple : | Exemple : | ||
| + | |||
| + | Requête : | ||
| + | |||
| + | GET /sdata/$usergroups HTTP/1.1 | ||
| + | Content-Type: application/x-www-form-urlencoded | ||
| + | Host: localhost | ||
| + | Cookie: SID=867303... | ||
| + | |||
| + | Réponse : | ||
| + | <pre> | ||
| + | HTTP/1.1 200 | ||
| + | Connection: keep-alive | ||
| + | Content-Type: application/json; charset=utf-8 | ||
| + | Content-Length: 75 | ||
| + | Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT | ||
| + | Set-Cookie: SID=867303942-...; Path=/; HttpOnly | ||
| + | Set-Cookie: SIL=1; Path=/ | ||
| + | 29/03/2016 10:51:21 | ||
| + | |||
| + | { "version" : "1.1","result" : [{"name":"Projet 1000","caption":"Groupe Projet 1000"}]} | ||
| + | </pre> | ||
| + | |||
<pre> | <pre> | ||
Version actuelle en date du 17 août 2017 à 09:44
Cette fonction de service permet d'obtenir la liste des groupes possibles pour le dossier courant lorsque l'utilisateur appartient à plusieurs groupes autorisés sur le dossier.
L'url de cette fonction est :
http://www.example.com/service/server/sdata/$usergroups
Exemple :
Requête :
GET /sdata/$usergroups HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: localhost Cookie: SID=867303...
Réponse :
HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Content-Length: 75
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Set-Cookie: SID=867303942-...; Path=/; HttpOnly
Set-Cookie: SIL=1; Path=/
29/03/2016 10:51:21
{ "version" : "1.1","result" : [{"name":"Projet 1000","caption":"Groupe Projet 1000"}]}
| Whos here now: Members 0 Guests 0 Bots & Crawlers 1 |