« $usergroups (SData) » : différence entre les versions

De Wiki1000
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 17 : Ligne 17 :


Réponse :  
Réponse :  
 
<pre>
HTTP/1.1 200
HTTP/1.1 200
Connection: keep-alive
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Content-Type: application/json; charset=utf-8
Content-Length: 75
Content-Length: 75
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Set-Cookie: SID=867303942-...; Path=/; HttpOnly
Set-Cookie: SID=867303942-...; Path=/; HttpOnly
Set-Cookie: SIL=1; Path=/
Set-Cookie: SIL=1; Path=/
29/03/2016 10:51:21
29/03/2016 10:51:21


{ "version" : "1.1","result" : [{"name":"Projet 1000","caption":"Groupe Projet 1000"}]}
{ "version" : "1.1","result" : [{"name":"Projet 1000","caption":"Groupe Projet 1000"}]}
</pre>





Version du 29 mars 2016 à 08:52

{{#images:versionlatest-32x32.png|stock}}

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"}]}