JSON Patch for Turning a Pull REST API into a Push - Archive ouverte HAL
Communication Dans Un Congrès Année : 2016

JSON Patch for Turning a Pull REST API into a Push

Hanyang Cao
  • Fonction : Auteur
Li Zhang

Résumé

REST APIs together with JSON are commonly used by modern web applications to export their services. Such an architecture however makes the services reachable in a pull mode which is not suitable for accessing data that periodically changes. Turning a service from a pull mode to a push mode is therefore frequently asked by web developers that want to access changing data and to get notified of performed changes. Converting a pull mode API into a push mode obviously requires to make periodical calls to the API but also to create a patch between each successive received versions of the data. The latter is the most difficult part and this is where existing solutions have some imperfections. To face this issue, we present a new JSON patch algorithm that is compliant with JSON Patch RFC, and that supports move and copy change operations. We implement our algorithm in a JavaScript library and evaluate its performance. Our evaluation done with real industrial data shows that our library creates small patches compared with other libraries, and creates them faster.
Fichier principal
Vignette du fichier
ICSOC16.pdf (326.39 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01433078 , version 1 (10-01-2020)

Identifiants

Citer

Hanyang Cao, Jean-Rémy Falleri, Xavier Blanc, Li Zhang. JSON Patch for Turning a Pull REST API into a Push. International Conference on Service-Oriented Computing, 2016, BANFF, Canada. ⟨10.1007/978-3-319-46295-0_27⟩. ⟨hal-01433078⟩

Collections

CNRS
186 Consultations
296 Téléchargements

Altmetric

Partager

More