Sorry if my post was unclear. I was really just wondering about the initial user registration from the servlet, and if the servlet should do this via the gateway's admin REST APIs or is it okay to use the SDK, and if the latter would sync gateway get confused...
The answer is to have the client communicate with your Java servlet to > register > It does. then have the servlet call the Gateway's admin REST API to create a user > account. You've pretty much answered my question here. I just thought using the SDK might be preferred. Thanks, Derek. On Monday, 20 January 2014 21:41:54 UTC, Jens Alfke wrote: > > Hm, I'm not sure what aspect your question is focusing on. Are you asking > about user registration and authentication, or about how your Java code can > access the documents managed by the Sync Gateway? > > If the question is authentication: The answer is to have the client > communicate with your Java servlet to register, and then have the servlet > call the Gateway's admin REST API to create a user account. > > If you're asking about accessing documents: the best-supported mechanism > for this currently is to use the Gateway's REST API, probably on the admin > port so you can bypass authentication. We don't have good documentation of > the API yet but it's basically a subset of CouchDB's, which is > well-documented. It is also possible to interact directly with the > underlying bucket using the Couchbase Server SDK, in limited ways: you can > read documents as long as you ignore the "_sync" property and any documents > whose keys begin with "_sync:". And you can create new documents as long as > you set "importdocs":true in your database configuration. > > —Jens -- 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/498d75a9-ec09-416f-94a9-b6f5e94dfc50%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
