Ceci est une ancienne révision du document !
<url_site_ezged>/apps/ezuploader/
Le passage des paramètres de l'application s'effectue via la query string (paramètres dans l'URL). La ressource doit retourner du JSON (le nom de la propriété racine contenant la liste des items doit être “rows”).
Exemple de retour JSON valide:
{ "rows" : [ {"description": "Foo sur disque D:", "chemin": "D:\\test\\foo"}, {"description": "Bar sur disque D:", "chemin": "D:\\test\\bar"} ] }
Nom du paramètre source : qryid
Valeur du paramètre source: un identifiant de requête ezged.
Le contenu de la ressource au format json:
{ "errorcode": 0, "errormsg": "ok", "rows": [ { "DEPOTCOLD_ID": 4, "DEPOTCOLD_DESC": "Répertoire foo dans ocr/wait", "type": "row", "DEPOTCOLD_DIR": "foo" }, { "DEPOTCOLD_ID": 3, "DEPOTCOLD_DESC": "Répetoire bar dans ocr/wait", "type": "row", "DEPOTCOLD_DIR": "bar" }, { "DEPOTCOLD_ID": 2, "DEPOTCOLD_DESC": "Répertoire exemple1", "type": "row", "DEPOTCOLD_DIR": "D:\\exemple1" }, { "DEPOTCOLD_ID": 1, "DEPOTCOLD_DESC": "Répertoire exemple2", "type": "row", "DEPOTCOLD_DIR": "D:\\GED\\exemple2\\" } ], "count": 4 }
Nom du paramètre source : service
Valeur du paramètre source: chaîne d'appel d'un service ezged.
On appelle ici le service coldscnthrower/loadall&coldscnthrowerproto=4 qui permet d'obtenir la liste des lanceurs COLD de type “Répertoire local”.
Contenu de la ressource au format json:
{ "errorcode": 0, "errormsg": "ok", "rows": [ { "COLDSCNTHROWER_ID": 130, "COLDSCNTHROWER_PORT": 0, "COLDSCNTHROWER_PASSWORD": "", "COLDSCNTHROWER_PROTO": 4, "COLDSCNTHROWER_HOST": "", "COLDSCNTHROWER_USER": "", "COLDSCNTHROWER_PATTERN": "/.*\\.(?!txt).*/", "COLDSCNTHROWER_PATH": "C:\\nchp\\var\\spool\\ezged\\instance\\ocr\\wait\\one", "COLDSCNTHROWER_DESC": "Indexeur One", "COLDSCNTHROWER_OLDERTHANINSEC": 0, "type": "coldscnthrower" }, { "COLDSCNTHROWER_ID": 136, "COLDSCNTHROWER_PORT": 0, "COLDSCNTHROWER_PASSWORD": "admin", "COLDSCNTHROWER_PROTO": 4, "COLDSCNTHROWER_HOST": "", "COLDSCNTHROWER_USER": "admin", "COLDSCNTHROWER_PATTERN": "*.*", "COLDSCNTHROWER_PATH": "F:\\nchp\\var\\spool\\ezged\\instance\\ocr\\wait\\test", "COLDSCNTHROWER_DESC": "Lanceur Test", "COLDSCNTHROWER_OLDERTHANINSEC": 0, "type": "coldscnthrower" } ], "count": 0 }
Nom du paramètre source : url
Valeur du paramètre source: l'url à appeler.
/!\ Attention: la ressource doit être relative au site ezged.
Contenu de la ressource au format json:
{ "rows" : [ {"description": "Foo sur disque D:", "chemin": "D:\\test\\foo"}, {"description": "Bar sur disque D:", "chemin": "D:\\test\\bar"} ] }