[aerogear-dev] [iOS] Simple draft of HTTP API to talk to ag-sync server
Matthias Wessendorf
matzew at apache.org
Mon Jan 13 11:56:37 EST 2014
Hi,
based on the ag.org "sync-branch" (see [1]), I created a SIMPLE first iOS
hack of a "document" API with a HTTP client that talks to Dan's Server.
The model ([2]) is quite easy/simple and the HTTP client supports
CREATE/READ/REMOVE ([3]), based on the protocol defined on the README of
the server.
The usage is covered in a test (like [4]).
Next: I guess next (if we continue using Dan's Server) is to see how this
project can we weaved into the exisiting stores - but first I really wanted
to get some client (like Luke's JS client) which executes against our
current server draft/implementation.
BTW. the lib is based on AFN2.x (not sure we should use AFN 2.x at THIS
point - switching to 1.x should not be that hard)
-Matthias
[1] https://github.com/aerogear/aerogear.org/pull/230
[2] https://github.com/matzew/AGSyncKit/blob/master/SyncKit/AGDocument.h
[3] https://github.com/matzew/AGSyncKit/blob/master/SyncKit/AGSyncClient.h
[4]
https://github.com/matzew/AGSyncKit/blob/master/SyncKitTests/SyncKitTests.m#L37-L61
--
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140113/076e2234/attachment.html
More information about the aerogear-dev
mailing list