New webservice API

Pierre-Yves Chibon pingou at pingoured.fr
Sun Jan 27 01:42:30 PST 2013


Hi,

I have spent the afternoon trying to re-design the API to make it a little more
as it should have been from the beginning.

Changes includes:
- change in the routes/urls
  - concerns everything, all the user part is under /api/user/{new,lost}/ and
	all the dive part is under /api/dive/{add,get}/
- change in the request mode to use
  - POST is used to upload new dives
  - GET is used to retrieve someone's dives
  - the header 'Content-Type: text/xml' has to be used to retrieve the dives in
	xml format instead of the default json.

All these changes are in the 'new_api' branch of the git, I will not merge
before I get your ok as it will requires some changes on the Android application
as well as the desktop application.

Let me know what you think of the changes and what can be changed/improved.

There is still one thing I need to work on though, the possibility to delete
your user and with it all your dives.


Thanks,
Pierre


More information about the subsurface mailing list