Get /Static with client API

30 views
Skip to first unread message

legion

unread,
May 2, 2012, 11:07:15 AM5/2/12
to rav...@googlegroups.com
I maybe missing something obvious.

How do you do:


with the client API?

Thanks!

Oren Eini (Ayende Rahien)

unread,
May 2, 2012, 11:41:17 AM5/2/12
to rav...@googlegroups.com
Store.databaseCommands.GetAyttachment

On iphone

legion

unread,
May 2, 2012, 11:57:03 AM5/2/12
to rav...@googlegroups.com
That only works if you know the Attachment ID.

The GET /Static allows us to get the metadata for all attachments. So for example my attachments are related to my documents. When i store the attachments I store the id of the document as part of the attachment's metadata. 

So if i can do a GET /Static from the client api, i can load a document then load /Static and get all the attachments related to the document. This will allow me to generate an N number of links on our app, so the user can download the attachments.

Thoughts?

Oren Eini (Ayende Rahien)

unread,
May 2, 2012, 12:13:23 PM5/2/12
to rav...@googlegroups.com
You are doing it the wrong way
Store the attachment I'd in the doc, much simpler


On Wednesday, May 2, 2012, legion wrote:

legion

unread,
May 2, 2012, 12:25:09 PM5/2/12
to rav...@googlegroups.com
Where's the fun in that? :)
Reply all
Reply to author
Forward
0 new messages