New webservice API
pingou at pingoured.fr
Mon Jan 28 22:25:49 PST 2013
On Mon, 2013-01-28 at 22:16 -0800, Dirk Hohndel wrote:
> Aurélien PRALONG <aurelien.pralong at gmail.com> writes:
> > It now sends POST at this URL :
> > http://api.hohndel.org/api/dive/add/?login=abc&dive_latitude=37.422005&dive_longitude=-122.084095&dive_date=2013-01-28&dive_time=20:15&dive_name=toto
> > Note that I didn't test it on a server, as I was too lazy to install the
> > python stuff. Pierre, do you confirm the URL pattern ?
> Pierre, does this look ok? Can you merge your changes into master for
> the subsurface-webservice so that when I arrive in Australia in 18 hours
> I can pull that and test the updated companion app against that? And
> hopefully push Lubomir's changes into the desktop so that all three
> pieces are in sync?
Merged and push to master.
> > Note (again) to old users : you need to update the settings, or at least
> > check that the destination URL is set to
> > http://api.hohndel.org/api/dive/add(instead of probably
> > http://api.hohndel.org/api/dive). I plan to remove this setting in future
> > versions : I think we should not have many different servers.
> I want to allow for that in case people decide they don't want to trust
> my server for some reason. But it could be in some advanced settings. By
> default it should just use the api.hohndel.org server.
+1, let's keep it simple and have just http://api.hohndel.org the rest
of the URL can be set by the companion itself.
More information about the subsurface