« Return to Thread: Tags rest resource request for mobile apps

Re: Tags rest resource request for mobile apps

by Chris Kelly-2 :: Rate this Message:

| View in Thread

On May 4, 2011, at 5:17 PM, David Steinberger wrote:
Background:
I use RestKit as the rest-library. With the help of this library I can map json-elements to classes.
The mapped objects are backed-up via core-data. So subsequent request can pull the info from core-data, which really boosts performance. All good.

Issue:
I want to show some meta-data for albums (for a release 1.0 I thought about name, description, date & tags). But to fetch the tags I need several, cascaded requests. Although it does work, there are 2 issues with that:
  1. It doesn't allow me to cache these objects the way I want:
    Each request delivers an object and I cannot link them.
  2. 3 consecutive url-requests might cause performance-problems (in the mobile space):
    Fetching, parsing, storing just takes too long.
So my proposal would be to add another rest-resource that pulls tags for an item in just 1 request.
I would need only a GET resource as I only want to read and store tags quickly.

Could somebody help me out here?

This sounds like a good use case and a reasonable thing to add. One of the goals for 3.1 is to respond to developer feedback and make changes to the theme and remote API to make your lives easier. I've made a ticket for you:

https://sourceforge.net/apps/trac/gallery/ticket/1731

If you could add a comment to that which includes an example transaction you'd like to perform and what an idea rest action might look like,  that might speed up making this happen.

FYI: I released the app-code via GitHub: https://github.com/dave8401/g3Mobile. I don't intend to make any money with it, just want to get a good iPhone client for our galleries.
And yeah, I know that everyone is really busy with upcoming releases :).

Awesome!

-Chris

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
__[ g a l l e r y - d e v e l ]_________________________

[ list info/archive --> http://gallery.sf.net/lists.php ]
[ gallery info/FAQ/download --> http://gallery.sf.net ]

 « Return to Thread: Tags rest resource request for mobile apps