I have just started playing with the sync gateway. But I am having some
difficulties (notice my bias coming from CouchDB)
1. First thing I tried was using curl to create a document through the
admin interface (and verified that '_all_docs' does not fail)
> curl -X PUT -d '{"name":"bob","channel_id":"kuku"}'
http://localhost:4985/rubase/bob
{"error":"Unsupported Media Type","reason":"Invalid content type
application/x-www-form-urlencoded"}%
After a while fighting with it, I noticed in the docs that the Admin API
does not seem capable of creating plain documents. Is that right?
2. I tried the same operation logged as a user. After a while with no
success, explored the docs and noticed that there is no PUT
database/document and the supported PUT operations seems to show that
learning to use the gateway with curl is not so trivial.
3. I had some documents already in my CouchBase bucket, so I wanted to see
if I could get them listed with 'all_docs'. The sync-gateway doc mentions
that you just need a "channels" array in your doc, the ChatDemo mentions
"channel_id" but adding those does not work. Reading the view/channels it
seems that some extra document fields are needed.
What the easiest way to make existing documents in CouchBase visible in the
gateway?
4. I tried the Chat Demo for iOS (beta1 and beta2, in both cases trying the
default server and a local one). The app launches straight into the Chats
view. After clicking the "+" button I get an alert about not being logged.
How can I do it?
Well, that is all for now. I wanted to get past these points to
learn-explore more about the sync function and write one to make many users
to access the same bucket. Looks like it is just giving each user its own
channel
thanks in advance
Francisco
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/CAN70X5suEMGOL%3D5uTbxH46xaS26DDbF3bYikU4WJjUu4-UtYkw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.