incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject Rabbit: Initial support for subcollections (buckets)
Date Fri, 12 Aug 2011 12:42:54 GMT
Hi,

Actually the subcollection patch for the Rabbit wasn't too hard to do.
I created an example for buckets.

Syntax:

collection :buckets do
  description "Buckets"

  subcollection :blobs do
    description "Blobs"
    
    operation :show do
      description "Show blob"
      control do
        "Blob!"
      end
    end
  end
end

This chunk of code will generate this route:

/api/:bucket/:blob

Otherwise, subcollection behave as regular collection. Please note that this
is just an 'proposal' and I want just opeen discussion about this that's why
I completely ignored the parameter validation ;-)

  -- Michal


Mime
View raw message