taarifa / Taarifa_Web

THIS CODE BASE IS DEPRECATED AND ONLY HERE FOR ARCHIVAL PURPOSES!
http://www.taarifa.org
Other
18 stars 6 forks source link

Offline capability is missing a proper API #45

Closed nellessen closed 11 years ago

nellessen commented 12 years ago

Since we do not have a proper API it is hard to implement a really awesome offline capability. One major problem is, that submitting a report with ajax must use the same post request the report form uses. This is a 'normal' http request that does return the same content the normal report form would do. This response does not contain a machine readable information of whether the submission was successful or not. The status code will be 200 even though the submission fails. If we implement the javascript validation feature (https://github.com/taarifa/Taarifa_Web/issues/44) we overcome this gap quite well but there might still be other reasons why submission fails.

markiliffe commented 11 years ago

@nellessen. I'm going to close the issue. We've now got the beginnings of a kickass API here: https://github.com/taarifa/taarifa_backend, let's finish off the last remaining issues and smash the new API out of the park!