Skip to content

Instantly share code, notes, and snippets.

@joshholt
Created January 18, 2012 16:44
Show Gist options
  • Save joshholt/1633957 to your computer and use it in GitHub Desktop.
Save joshholt/1633957 to your computer and use it in GitHub Desktop.
Provider Service Document
var BASE_IMG_URL = "http://ccpv2.herokuapp.com/images";
var BASE_COMP_URL = "http://ccpv2.herokuapp.com/components";
module.exports = {
name: 'The CCPV2 Test Provider',
version: '2.0.0',
logoUrl: BASE_IMG_URL + "/cloud_components.png",
components: [{
name: 'My First Component',
description: "This our first cloud component",
iconUrl: BASE_IMG_URL +'/test_component_icon.png',
componentImage: {
height: '200',
width: '200',
url: BASE_IMG_URL +'/test_placeholder.png'
},
createInstance: BASE_COMP_URL + '/components/create/{Id}',
removeInstance: BASE_COMP_URL + '/remove/{Id}',
configurationUrl: BASE_COMP_URL + '/configure/{Id}?assetId={AssetId}&contactId={ContactId}',
renderInstance: BASE_COMP_URL + '/render/{Id}?assetId={AssetId}&contactId={ContactId}&visitorId={VisitorId}',
instanceImage: BASE_COMP_URL + '/preview/{Id}?assetId={AssetId}&contactId={ContactId}&visitorId={VisitorId}'
}]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment