rufuspollock-okfn / textus

A toolbox and web application for working with and presenting textual material from Shakespeare to Schopenhauer, and letters to literature.
http://okfnlabs.org/textus/
MIT License
149 stars 17 forks source link

Refactor - create textusClient.js and use for all API calls #49

Closed tomoinn closed 10 years ago

tomoinn commented 12 years ago

The API is HTTP based, which means every time you use it you have to go find the exact method and such. By using the same pattern as currently used for loginClient we could abstract this out into a protocol independent module which activities could import to access the API, removing an annoying time-sink from further coding. Boils down to a grep for all occurrences of e.g. $.getJSON and $.post and refactoring them out.