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

Reply via email to