New webservice API

Dirk Hohndel dirk at hohndel.org
Mon Jan 28 22:16:41 PST 2013


Aurélien PRALONG <aurelien.pralong at gmail.com> writes:

> Hello,
>
> I updated the companion (if I didn't failed my push. I seriously need to
> play with git on a sandbox).

I pulled it successfully. HEAD is commit 4a8c7ff96662 ("New web-service
integration (URL building updated)")

> 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?

> 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.

/D


More information about the subsurface mailing list