$setGroup (SData)
De Wiki1000
(Différences entre les versions)
Ligne 24 : | Ligne 24 : | ||
groupname=grp3 | groupname=grp3 | ||
+ | |||
+ | |||
+ | Réponse si succès | ||
+ | |||
+ | HTTP/1.1 200 | ||
+ | Connection: keep-alive | ||
+ | Content-Type: application/json; charset=utf-8 | ||
+ | Content-Length: 673 | ||
+ | Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT | ||
+ | Set-Cookie: SID=758479...; Path=/; HttpOnly | ||
+ | Set-Cookie: SIL=1; Path=/ | ||
+ | |||
+ | <?xml version="1.0" encoding="ISO-8859-1"?> | ||
+ | <result> | ||
+ | <params> | ||
+ | <username>sage</username> | ||
+ | <userfullname>Utilisateur sage</userfullname> | ||
+ | <userlanguage>FRA</userlanguage> | ||
+ | <useremail>[email protected]</useremail> | ||
+ | <groupname>grp3</groupname> | ||
+ | <authdirname>Sage1000</authdirname> | ||
+ | <socname>Démo - Sage FRP 1000 Suite Financière (S1)</socname> | ||
+ | <appname>Sage FRP 1000 Suite Financière Edition pilotée</appname> | ||
+ | <glbShareEnable>false</glbShareEnable> | ||
+ | <database>db700sf</database> | ||
+ | <databases> | ||
+ | <database>db700sf</database> | ||
+ | </databases> | ||
+ | <GA> | ||
+ | <dialogUrl>https://eme.sage.fr/pep/home.html</dialogUrl> | ||
+ | <enable>false</enable> | ||
+ | <ua/> | ||
+ | </GA> | ||
+ | </params> | ||
+ | </result> | ||
+ | |||
+ | |||
+ | |||
+ | Réponse si échec | ||
+ | |||
+ | HTTP/1.1 500 | ||
+ | Connection: keep-alive | ||
+ | Content-Type: application/json; charset=utf-8 | ||
+ | Content-Length: 42 | ||
+ | Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT | ||
+ | Set-Cookie: SID=75847954...; Path=/; HttpOnly | ||
+ | Set-Cookie: SIL=1; Path=/ | ||
+ | |||
+ | errorMessage=group+%22grp4%22+is+not+valid | ||
+ | |||
+ | |||
<pre> | <pre> |
Version du 11 janvier 2016 à 16:14
Cette fonction de service permet de modifier le groupe courant du contexte lorsque l'utilisateur appartient à plusieurs groupes autorisés sur le dossier.
L'url de cette fonction est :
http://www.example.com/service/server/sdata/$setGroup
Paramètre | Usage |
---|---|
groupName | nom du groupe à positionner |
Exemple :
POST /sdata/$setgroup HTTP/1.1 Content-Type: application/x-www-form-urlencoded Host: localhost Content-Length: 14 Cookie: SID=758479548... groupname=grp3
Réponse si succès
HTTP/1.1 200 Connection: keep-alive Content-Type: application/json; charset=utf-8 Content-Length: 673 Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT Set-Cookie: SID=758479...; Path=/; HttpOnly Set-Cookie: SIL=1; Path=/
<?xml version="1.0" encoding="ISO-8859-1"?> <result> <params> <username>sage</username> <userfullname>Utilisateur sage</userfullname> <userlanguage>FRA</userlanguage> <useremail>[email protected]</useremail> <groupname>grp3</groupname> <authdirname>Sage1000</authdirname> <socname>Démo - Sage FRP 1000 Suite Financière (S1)</socname> <appname>Sage FRP 1000 Suite Financière Edition pilotée</appname> <glbShareEnable>false</glbShareEnable> <database>db700sf</database> <databases> <database>db700sf</database> </databases> <GA> <dialogUrl>https://eme.sage.fr/pep/home.html</dialogUrl> <enable>false</enable> <ua/> </GA> </params> </result>
Réponse si échec
HTTP/1.1 500 Connection: keep-alive Content-Type: application/json; charset=utf-8 Content-Length: 42 Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT Set-Cookie: SID=75847954...; Path=/; HttpOnly Set-Cookie: SIL=1; Path=/
errorMessage=group+%22grp4%22+is+not+valid