{"action":"created","comment":{"url":"https://api.github.com/repos/Telefonica/druida/pulls/comments/37847598","id":37847598,"diff_hunk":"@@ -0,0 +1,119 @@\n+# Druida\n+\n+Druida is a Platform as a Service to make software components and services easily accesible in order to build products. TDAF components and services are offered through Druida and anyone else can add their own ones very easily too.\n+\n+## General overview\n+\n+Druida is composed by two parts: the portal and the add-ons. The add-ons are the components and services of 3rd parties (e.g. TDAF services or your own service).\n+\n+\n+```\n+                                                                                   \n+                                                                                   \n+    +-------------+                             +------------------------+         \n+    |             |   Provisioning REST API     |                        |         \n+    |             +----------------------------->         Addon          |         \n+    |   Druida    |                             |                        |         \n+    |   Portal    |                             |                        |         \n+    |             |                             |           +----------------+     \n+    |             <-----------------------------+           |                |     \n+    |             |                             |           |    manifest    |     \n+    +-------------+                             +-----------+                |     \n+                                                            |                |     \n+                                                            +----------------+     \n+                                                                                   \n+```\n+\n+## Installation\n+\n+See the details for each components as follows:\n+\n+[Portal](portal/README.md)\n+ \n+[Add-ons provisioner](provisioner/README.md)\n+\n+## Integration of new addons\n+\n+Any third party service (aka addon) can be integrated in Druida in minutes.\n+\n+You only need to **create a JSON manifest** describing your service and implement a simple **provisioning REST API** that will be called to provision and deprovision a new user.\n+\n+\n+### Addon manifest\n+\n+The manifest describes your service (inputs, outputs and where the provisioning API is located).\n+An example is worth a thousand words:\n+\n+```json\n+{\n+  \"name\": \"Credit Card Broker 2.3\",\n+  \"description\": \"Credit Card Broker offers a Payment API to anyone that need to charge their users\",\n+  \"inputs\": [\n+    {\n+      \"name\": \"callbackURL\",\n+      \"description\": \"URL to be page to redirect the user after a payment\"\n+    },\n+    {\n+      \"name\": \"notificationURL\",\n+      \"description\": \"URL to be notified about changes in your payments (optional)\"\n+    },\n+    {\n+      \"name\": \"paymentBroker\",\n+      \"description\": \"Payment broker to use ('Adyen' or 'Paypal')\"\n+    }\n+  ],\n+  \"config\": [\n+    {\n+      \"name\": \"endpoint\",\n+      \"description\": \"API endpoint\"\n+    },\n+    {\n+      \"name\": \"salt\",\n+      \"description\": \"Secret 'salt' to sign your payment requests\"\n+    },\n+    {\n+      \"name\": \"apikey\",\n+      \"description\": \"API key. Send it with your calls to the API\"\n+    },\n+    {\n+      \"name\": \"merchantAccount\",\n+      \"description\": \"Merchant name\"\n+    }\n+  ],\n+  \"provision\": {\n+    \"url\": \"http://localhost:1199/ccb\"\n+  }\n+}\n+```\n+\n+### Provisioning REST API\n+\n+#### POST /provision\n+\n+When a user requests a service in Druida, a HTTP request will be sent to the endpoint defined in the provision section of the addon manifest. The body will contain all the input values requested to the user. For example:\n+\n+```json\n+{\n+  \"callbackURL\": \"http://myservice.com/callback\",\n+  \"notificationURL\": \"http://myservice.com/notify\",\n+  \"paymentBroker\": \"Adyen\"\n+}\n+```\n+\n+The response MUST contain a provision identifier (id) and the list of configuration values assigned to the user. For example:","path":"README.md","position":103,"original_position":103,"commit_id":"4121523d98ce8390a26a3a43f979b1588b02fa42","original_commit_id":"4121523d98ce8390a26a3a43f979b1588b02fa42","user":{"login":"JoseAntonioRodriguez","id":2453635,"avatar_url":"https://avatars.githubusercontent.com/u/2453635?v=3","gravatar_id":"","url":"https://api.github.com/users/JoseAntonioRodriguez","html_url":"https://github.com/JoseAntonioRodriguez","followers_url":"https://api.github.com/users/JoseAntonioRodriguez/followers","following_url":"https://api.github.com/users/JoseAntonioRodriguez/following{/other_user}","gists_url":"https://api.github.com/users/JoseAntonioRodriguez/gists{/gist_id}","starred_url":"https://api.github.com/users/JoseAntonioRodriguez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoseAntonioRodriguez/subscriptions","organizations_url":"https://api.github.com/users/JoseAntonioRodriguez/orgs","repos_url":"https://api.github.com/users/JoseAntonioRodriguez/repos","events_url":"https://api.github.com/users/JoseAntonioRodriguez/events{/privacy}","received_events_url":"https://api.github.com/users/JoseAntonioRodriguez/received_events","type":"User","site_admin":false},"body":"Clarificaría que estos valores de configuración son los que se declaran en el manifest en la sección \"config\"","created_at":"2015-08-25T09:24:13Z","updated_at":"2015-08-25T09:24:13Z","html_url":"https://github.com/Telefonica/druida/pull/23#discussion_r37847598","pull_request_url":"https://api.github.com/repos/Telefonica/druida/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/comments/37847598"},"html":{"href":"https://github.com/Telefonica/druida/pull/23#discussion_r37847598"},"pull_request":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Telefonica/druida/pulls/23","id":43265452,"html_url":"https://github.com/Telefonica/druida/pull/23","diff_url":"https://github.com/Telefonica/druida/pull/23.diff","patch_url":"https://github.com/Telefonica/druida/pull/23.patch","issue_url":"https://api.github.com/repos/Telefonica/druida/issues/23","number":23,"state":"open","locked":false,"title":"updating READMEs","user":{"login":"dlozlla","id":4090187,"avatar_url":"https://avatars.githubusercontent.com/u/4090187?v=3","gravatar_id":"","url":"https://api.github.com/users/dlozlla","html_url":"https://github.com/dlozlla","followers_url":"https://api.github.com/users/dlozlla/followers","following_url":"https://api.github.com/users/dlozlla/following{/other_user}","gists_url":"https://api.github.com/users/dlozlla/gists{/gist_id}","starred_url":"https://api.github.com/users/dlozlla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlozlla/subscriptions","organizations_url":"https://api.github.com/users/dlozlla/orgs","repos_url":"https://api.github.com/users/dlozlla/repos","events_url":"https://api.github.com/users/dlozlla/events{/privacy}","received_events_url":"https://api.github.com/users/dlozlla/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-25T09:15:38Z","updated_at":"2015-08-25T09:24:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2af1ebfac2ea21fceec3206d32150978d3621828","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Telefonica/druida/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Telefonica/druida/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Telefonica/druida/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Telefonica/druida/issues/23/comments","statuses_url":"https://api.github.com/repos/Telefonica/druida/statuses/4121523d98ce8390a26a3a43f979b1588b02fa42","head":{"label":"Telefonica:task/readme","ref":"task/readme","sha":"4121523d98ce8390a26a3a43f979b1588b02fa42","user":{"login":"Telefonica","id":1536176,"avatar_url":"https://avatars.githubusercontent.com/u/1536176?v=3","gravatar_id":"","url":"https://api.github.com/users/Telefonica","html_url":"https://github.com/Telefonica","followers_url":"https://api.github.com/users/Telefonica/followers","following_url":"https://api.github.com/users/Telefonica/following{/other_user}","gists_url":"https://api.github.com/users/Telefonica/gists{/gist_id}","starred_url":"https://api.github.com/users/Telefonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Telefonica/subscriptions","organizations_url":"https://api.github.com/users/Telefonica/orgs","repos_url":"https://api.github.com/users/Telefonica/repos","events_url":"https://api.github.com/users/Telefonica/events{/privacy}","received_events_url":"https://api.github.com/users/Telefonica/received_events","type":"Organization","site_admin":false},"repo":{"id":40956902,"name":"druida","full_name":"Telefonica/druida","owner":{"login":"Telefonica","id":1536176,"avatar_url":"https://avatars.githubusercontent.com/u/1536176?v=3","gravatar_id":"","url":"https://api.github.com/users/Telefonica","html_url":"https://github.com/Telefonica","followers_url":"https://api.github.com/users/Telefonica/followers","following_url":"https://api.github.com/users/Telefonica/following{/other_user}","gists_url":"https://api.github.com/users/Telefonica/gists{/gist_id}","starred_url":"https://api.github.com/users/Telefonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Telefonica/subscriptions","organizations_url":"https://api.github.com/users/Telefonica/orgs","repos_url":"https://api.github.com/users/Telefonica/repos","events_url":"https://api.github.com/users/Telefonica/events{/privacy}","received_events_url":"https://api.github.com/users/Telefonica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Telefonica/druida","description":"","fork":false,"url":"https://api.github.com/repos/Telefonica/druida","forks_url":"https://api.github.com/repos/Telefonica/druida/forks","keys_url":"https://api.github.com/repos/Telefonica/druida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Telefonica/druida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Telefonica/druida/teams","hooks_url":"https://api.github.com/repos/Telefonica/druida/hooks","issue_events_url":"https://api.github.com/repos/Telefonica/druida/issues/events{/number}","events_url":"https://api.github.com/repos/Telefonica/druida/events","assignees_url":"https://api.github.com/repos/Telefonica/druida/assignees{/user}","branches_url":"https://api.github.com/repos/Telefonica/druida/branches{/branch}","tags_url":"https://api.github.com/repos/Telefonica/druida/tags","blobs_url":"https://api.github.com/repos/Telefonica/druida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Telefonica/druida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Telefonica/druida/git/refs{/sha}","trees_url":"https://api.github.com/repos/Telefonica/druida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Telefonica/druida/statuses/{sha}","languages_url":"https://api.github.com/repos/Telefonica/druida/languages","stargazers_url":"https://api.github.com/repos/Telefonica/druida/stargazers","contributors_url":"https://api.github.com/repos/Telefonica/druida/contributors","subscribers_url":"https://api.github.com/repos/Telefonica/druida/subscribers","subscription_url":"https://api.github.com/repos/Telefonica/druida/subscription","commits_url":"https://api.github.com/repos/Telefonica/druida/commits{/sha}","git_commits_url":"https://api.github.com/repos/Telefonica/druida/git/commits{/sha}","comments_url":"https://api.github.com/repos/Telefonica/druida/comments{/number}","issue_comment_url":"https://api.github.com/repos/Telefonica/druida/issues/comments{/number}","contents_url":"https://api.github.com/repos/Telefonica/druida/contents/{+path}","compare_url":"https://api.github.com/repos/Telefonica/druida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Telefonica/druida/merges","archive_url":"https://api.github.com/repos/Telefonica/druida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Telefonica/druida/downloads","issues_url":"https://api.github.com/repos/Telefonica/druida/issues{/number}","pulls_url":"https://api.github.com/repos/Telefonica/druida/pulls{/number}","milestones_url":"https://api.github.com/repos/Telefonica/druida/milestones{/number}","notifications_url":"https://api.github.com/repos/Telefonica/druida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Telefonica/druida/labels{/name}","releases_url":"https://api.github.com/repos/Telefonica/druida/releases{/id}","created_at":"2015-08-18T07:17:22Z","updated_at":"2015-08-21T12:27:14Z","pushed_at":"2015-08-25T09:15:38Z","git_url":"git://github.com/Telefonica/druida.git","ssh_url":"git@github.com:Telefonica/druida.git","clone_url":"https://github.com/Telefonica/druida.git","svn_url":"https://github.com/Telefonica/druida","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"Telefonica:master","ref":"master","sha":"93105001719163425d1d8915df796044f31ca16f","user":{"login":"Telefonica","id":1536176,"avatar_url":"https://avatars.githubusercontent.com/u/1536176?v=3","gravatar_id":"","url":"https://api.github.com/users/Telefonica","html_url":"https://github.com/Telefonica","followers_url":"https://api.github.com/users/Telefonica/followers","following_url":"https://api.github.com/users/Telefonica/following{/other_user}","gists_url":"https://api.github.com/users/Telefonica/gists{/gist_id}","starred_url":"https://api.github.com/users/Telefonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Telefonica/subscriptions","organizations_url":"https://api.github.com/users/Telefonica/orgs","repos_url":"https://api.github.com/users/Telefonica/repos","events_url":"https://api.github.com/users/Telefonica/events{/privacy}","received_events_url":"https://api.github.com/users/Telefonica/received_events","type":"Organization","site_admin":false},"repo":{"id":40956902,"name":"druida","full_name":"Telefonica/druida","owner":{"login":"Telefonica","id":1536176,"avatar_url":"https://avatars.githubusercontent.com/u/1536176?v=3","gravatar_id":"","url":"https://api.github.com/users/Telefonica","html_url":"https://github.com/Telefonica","followers_url":"https://api.github.com/users/Telefonica/followers","following_url":"https://api.github.com/users/Telefonica/following{/other_user}","gists_url":"https://api.github.com/users/Telefonica/gists{/gist_id}","starred_url":"https://api.github.com/users/Telefonica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Telefonica/subscriptions","organizations_url":"https://api.github.com/users/Telefonica/orgs","repos_url":"https://api.github.com/users/Telefonica/repos","events_url":"https://api.github.com/users/Telefonica/events{/privacy}","received_events_url":"https://api.github.com/users/Telefonica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Telefonica/druida","description":"","fork":false,"url":"https://api.github.com/repos/Telefonica/druida","forks_url":"https://api.github.com/repos/Telefonica/druida/forks","keys_url":"https://api.github.com/repos/Telefonica/druida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Telefonica/druida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Telefonica/druida/teams","hooks_url":"https://api.github.com/repos/Telefonica/druida/hooks","issue_events_url":"https://api.github.com/repos/Telefonica/druida/issues/events{/number}","events_url":"https://api.github.com/repos/Telefonica/druida/events","assignees_url":"https://api.github.com/repos/Telefonica/druida/assignees{/user}","branches_url":"https://api.github.com/repos/Telefonica/druida/branches{/branch}","tags_url":"https://api.github.com/repos/Telefonica/druida/tags","blobs_url":"https://api.github.com/repos/Telefonica/druida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Telefonica/druida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Telefonica/druida/git/refs{/sha}","trees_url":"https://api.github.com/repos/Telefonica/druida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Telefonica/druida/statuses/{sha}","languages_url":"https://api.github.com/repos/Telefonica/druida/languages","stargazers_url":"https://api.github.com/repos/Telefonica/druida/stargazers","contributors_url":"https://api.github.com/repos/Telefonica/druida/contributors","subscribers_url":"https://api.github.com/repos/Telefonica/druida/subscribers","subscription_url":"https://api.github.com/repos/Telefonica/druida/subscription","commits_url":"https://api.github.com/repos/Telefonica/druida/commits{/sha}","git_commits_url":"https://api.github.com/repos/Telefonica/druida/git/commits{/sha}","comments_url":"https://api.github.com/repos/Telefonica/druida/comments{/number}","issue_comment_url":"https://api.github.com/repos/Telefonica/druida/issues/comments{/number}","contents_url":"https://api.github.com/repos/Telefonica/druida/contents/{+path}","compare_url":"https://api.github.com/repos/Telefonica/druida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Telefonica/druida/merges","archive_url":"https://api.github.com/repos/Telefonica/druida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Telefonica/druida/downloads","issues_url":"https://api.github.com/repos/Telefonica/druida/issues{/number}","pulls_url":"https://api.github.com/repos/Telefonica/druida/pulls{/number}","milestones_url":"https://api.github.com/repos/Telefonica/druida/milestones{/number}","notifications_url":"https://api.github.com/repos/Telefonica/druida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Telefonica/druida/labels{/name}","releases_url":"https://api.github.com/repos/Telefonica/druida/releases{/id}","created_at":"2015-08-18T07:17:22Z","updated_at":"2015-08-21T12:27:14Z","pushed_at":"2015-08-25T09:15:38Z","git_url":"git://github.com/Telefonica/druida.git","ssh_url":"git@github.com:Telefonica/druida.git","clone_url":"https://github.com/Telefonica/druida.git","svn_url":"https://github.com/Telefonica/druida","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":20,"forks":0,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/23"},"html":{"href":"https://github.com/Telefonica/druida/pull/23"},"issue":{"href":"https://api.github.com/repos/Telefonica/druida/issues/23"},"comments":{"href":"https://api.github.com/repos/Telefonica/druida/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Telefonica/druida/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Telefonica/druida/statuses/4121523d98ce8390a26a3a43f979b1588b02fa42"}}}}