cloudfoundry/vcap-services-base — pull request #9 by felixhoo (2013-03-18 09:44:44+00:00)
Title: Extends handle configuration

The origin of the change is CCNG provides api to query apps inlined with service bindings. But I find that service binding does not have enough information including service type. And I think we should be able to tell, at least, what type of service the binding belongs by its handle. So it comes this change.

Currently service handle configuration only saves plan & version information.
But the request from CC actually contains much more information.
non-ng request:
{:label=>"rabbitmq-2.4", :name=>"rabbitmq-42029", :email=>"foobar@vmware.com", :plan=>"free", :version=>"2.4"}
ng request:
{:label=>"rabbitmq-2.8", :name=>"rabbitmq-3d441", :email=>"sre@vmware.com", :plan=>"100", :plan_option=>{}, :version=>"2.8", :provider=>"core", :space_guid=>"78234de5-d5d0-4b61-a58f-f07cbf1a6fea", :organization_guid=>"1d48f31a-3d4e-4792-b688-2cd93a4841ba"}

And this change store the CC request as the provision & binding configuration.
And I see oauth gateway already did this way...