incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject Added api_url_for helper and DEFAULT_URI_PREFIX constant
Date Mon, 06 Jun 2011 15:35:12 GMT
Hi,

This patch introduces new 'api_url_for' helper to support handling
matrix parameters as 'driver' and 'provider'.

Eg. you have URL 'http://example.org/api;driver=ec2/hardware_profiles',
then all links inside API both in XML and HTML media type should contain
this matrix parameters.

This patch also ships DEFAULT_URI_PREFIX constant which replaces commonly
and 'wrongly' used hardcoded '/api' prefix in url_for helper and in Sinatra
route definitions.
>From now, you should be able to deploy Deltacloud API on whatever URI you
want, just by changing this constant.

  -- Michal


Mime
View raw message