Hi,
This is less of a question and more a series of observations. When I was first exposed to the ReST API, I thought it might be a good option for designing UI components to be used within Content Server. The main problem is authenticating between them. That is, if you are logged into the CS UI, you are not logged into the ReST API. In theory, if you have the LLCookie for one, you have the authentication for the other. I verified this by taking the HTTP_COOKIE value from my UI browse request in CS Builder, performed a Web.Escape on the string, then pasted the escaped string into my otcsheader in my Advanced REST Client for Chrome. That worked!
So why do I say not to pursue this (for the record, the response from developers at the Partner Deep dive suggested the same)? The LLCookie is an HTTP-only cookie (or if it isn't it damned well should be). Javascript won't have access to it, so your ReST client wouldn't either.
I did consider that perhaps the key was to always authenticate with the REST API first, then somehow push that token to the LLCookie. So far, I haven't found a way of creating HTTP only cookies from Javascript and from a quick scan of Stack-Overflow, it looks like you shouldn't be able to do this.
Theoretically, a REST client developer might do a hybrid solution. After getting the authentication token, perhaps encrypting it some more and putting it in a regular cookie and customizing the standard ExecuteWithLogin on the Request handler object to grab that, decrypt it, and store it in LLCookie going forward. That is, the ReST client is the gatekeeper of authentication, and CS UI is the slave. It strikes me that this would be a more invasive customization than just doing what you need as a module containing web-lingos, and by exposing the authentication token, even encrypted, adds on to your security woes.
So, it appears that as cool as the ReST API is (I've been having a lot of fun playing with it, BTW), for folks who use the standard UI, offer them changes using Web Reports, ActiveViews, Appearances, or good old-fashioned Oscript
If I'm talking complete smack, I hope someone points it out.
-Hugh