webservicesdetailsxperience
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | webservicesdetailsxperience [2019/11/22 16:31] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Xperience WebServices Details ====== | ||
| + | ===== Xperience Webservice function : ===== | ||
| + | The Xperience webservice provides 6 functions. These functions can be queried using HTTP requests. They can be reached using URLs created with the webservice address (http:// | ||
| + | |||
| + | < | ||
| + | 1. / | ||
| + | 2. / | ||
| + | 3. / | ||
| + | 4. / | ||
| + | 5. / | ||
| + | 6. / | ||
| + | </ | ||
| + | |||
| + | For instance, the URL to call the first function is: http:// | ||
| + | These functions return Json objects, and each element returned has a specific name (see Development API). | ||
| + | |||
| + | =====1. addrecord ===== | ||
| + | Send a new record of an identification process with xperience mod | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | |||
| + | * String sddVersion => name of the sdd file used for this identification (ex : 20150113-135241.sdd.xml ) | ||
| + | * String sessionid => sessionid with the form : BASEID-WHATEVER (ex : 1916916151212-123SDAD32132 ) | ||
| + | * String jsonItemsSelectedmkeyid => json with the items given by the user (ex : [123,43] ) | ||
| + | * String urlImageUser => (facultatif) | ||
| + | |||
| + | **returns** : | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
| + | |||
| + | =====2. getrecord ===== | ||
| + | get a history entry | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | |||
| + | * String sessionid => sessionid with the form : BASEID-WHATEVER (ex : 1916916151212-123SDAD32132) | ||
| + | |||
| + | **returns** : | ||
| + | feed the json return with the list of taxa given by the user | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
| + | |||
| + | |||
| + | ===== 3. getallitems ===== | ||
| + | Get list of items in map : Name -> Uniqueid | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | * String sessionid => sessionid with the form : BASEID-WHATEVER (ex : 1916916151212-123SDAD32132) | ||
| + | |||
| + | **returns** : | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
| + | |||
| + | |||
| + | ===== 4. getfeedbackscsv ===== | ||
| + | Get all feedback as CSV in a json return | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | * String baseid => id of the base (ex : 1916916151212) | ||
| + | |||
| + | **returns** : | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
| + | |||
| + | **LES MATRICES :** | ||
| + | |||
| + | * TaxaNames (metadata) : Liste des identifiants des items avec leurs noms | ||
| + | * DescriptorsNames (metadata) : Liste des identifiants des descripteurs avec leurs noms | ||
| + | * StatesNames (metadata) : Liste des identifiants des états avec leurs noms | ||
| + | * TaxaConfusion : Une seule matrice de confusion des taxons | ||
| + | * TaxaDescriptor : Une seule matrice avec en rangé les items et en colonne les descripteurs. Pour chaque descritpeurs, | ||
| + | * StatesConfusionByDescriptor : Un matrice confusion entre les états par descripteur. Avant chaque matrice un ligne avec “DescIDDESCRIPTEUR” (ex : Desc12) | ||
| + | * StatesConfusionByDescriptor : Un matrice confusion entre les états par descripteur et par items. Avant chaque matrice un ligne avec “TaxonIDTAXON; | ||
| + | |||
| + | |||
| + | ===== 5. validate ===== | ||
| + | Validate a identification process record | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | * String item => uniqueid of the item that will be used for the validation ((ex : 32) | ||
| + | * String sessionid => sessionid with the form : BASEID-WHATEVER (ex : 1916916151212-123SDAD32132) | ||
| + | |||
| + | |||
| + | **returns** : | ||
| + | < | ||
| + | |||
| + | **En cas de taxon non trouvé, on renvoie la liste des taxons possibles, dans “items” :** | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
| + | |||
| + | ===== 6. updatesddurl ===== | ||
| + | Update Sdd Url | ||
| + | |||
| + | **path :** / | ||
| + | |||
| + | **parameter** : | ||
| + | * String baseid => baseid : id of the base (ex : 1916916151212) | ||
| + | * String sddurl => the news sdd url. See the sddmanger (ex: http:// | ||
| + | |||
| + | **returns** : | ||
| + | < | ||
| + | |||
| + | **En cas de taxon non trouvé, on renvoie la liste des taxons possibles, dans “items” :** | ||
| + | < | ||
| + | |||
| + | **error example :** | ||
| + | < | ||
webservicesdetailsxperience.txt · Last modified: by 127.0.0.1
