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

De Wiki1000
 
(5 versions intermédiaires par 2 utilisateurs non affiché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>

Dernière version du 17 août 2017 à 08:44

{{#images:version710-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"}]}