{"action":"created","comment":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments/69708970","id":69708970,"diff_hunk":"@@ -139,12 +147,79 @@ def get(self, community_schema):\n         return community_schema\n \n \n+class BlockSchemaResource(ContentNegotiatedMethodView):","path":"b2share/modules/schemas/views.py","position":81,"original_position":81,"commit_id":"2f54732e309492434041eb3434e476223a67368e","original_commit_id":"2f54732e309492434041eb3434e476223a67368e","user":{"login":"nharraud","id":5708796,"avatar_url":"https://avatars.githubusercontent.com/u/5708796?v=3","gravatar_id":"","url":"https://api.github.com/users/nharraud","html_url":"https://github.com/nharraud","followers_url":"https://api.github.com/users/nharraud/followers","following_url":"https://api.github.com/users/nharraud/following{/other_user}","gists_url":"https://api.github.com/users/nharraud/gists{/gist_id}","starred_url":"https://api.github.com/users/nharraud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nharraud/subscriptions","organizations_url":"https://api.github.com/users/nharraud/orgs","repos_url":"https://api.github.com/users/nharraud/repos","events_url":"https://api.github.com/users/nharraud/events{/privacy}","received_events_url":"https://api.github.com/users/nharraud/received_events","type":"User","site_admin":false},"body":"This needs to be split into two resource classes. BlockSchemaResource and BlockSchemaListResource","created_at":"2016-07-06T10:41:29Z","updated_at":"2016-07-06T10:41:29Z","html_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/986#discussion_r69708970","pull_request_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986","_links":{"self":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments/69708970"},"html":{"href":"https://github.com/EUDAT-B2SHARE/b2share/pull/986#discussion_r69708970"},"pull_request":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986"}}},"pull_request":{"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986","id":76401945,"html_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/986","diff_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/986.diff","patch_url":"https://github.com/EUDAT-B2SHARE/b2share/pull/986.patch","issue_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/986","number":986,"state":"open","locked":false,"title":"global: addition of REST api for Block Schemas","user":{"login":"PaulinaLach","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulinaLach","html_url":"https://github.com/PaulinaLach","followers_url":"https://api.github.com/users/PaulinaLach/followers","following_url":"https://api.github.com/users/PaulinaLach/following{/other_user}","gists_url":"https://api.github.com/users/PaulinaLach/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulinaLach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulinaLach/subscriptions","organizations_url":"https://api.github.com/users/PaulinaLach/orgs","repos_url":"https://api.github.com/users/PaulinaLach/repos","events_url":"https://api.github.com/users/PaulinaLach/events{/privacy}","received_events_url":"https://api.github.com/users/PaulinaLach/received_events","type":"User","site_admin":false},"body":"* NEW Adds a new:\r\n  - POST - creates new Block Schema\r\n  - PUT - creates new Block Schema Version for Block Schema\r\n  - GET - gets list of schemas\r\n\r\nSigned-off-by: PaulinaLach <paulina.malgorzata.lach@cern.ch>","created_at":"2016-07-06T09:23:06Z","updated_at":"2016-07-06T10:41:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c24d6b4422a1e96c6852dabeb0e1e0d313c70df9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986/commits","review_comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986/comments","review_comment_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/986/comments","statuses_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/2f54732e309492434041eb3434e476223a67368e","head":{"label":"PaulinaLach:api","ref":"api","sha":"2f54732e309492434041eb3434e476223a67368e","user":{"login":"PaulinaLach","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulinaLach","html_url":"https://github.com/PaulinaLach","followers_url":"https://api.github.com/users/PaulinaLach/followers","following_url":"https://api.github.com/users/PaulinaLach/following{/other_user}","gists_url":"https://api.github.com/users/PaulinaLach/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulinaLach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulinaLach/subscriptions","organizations_url":"https://api.github.com/users/PaulinaLach/orgs","repos_url":"https://api.github.com/users/PaulinaLach/repos","events_url":"https://api.github.com/users/PaulinaLach/events{/privacy}","received_events_url":"https://api.github.com/users/PaulinaLach/received_events","type":"User","site_admin":false},"repo":{"id":53126284,"name":"b2share","full_name":"PaulinaLach/b2share","owner":{"login":"PaulinaLach","id":1929323,"avatar_url":"https://avatars.githubusercontent.com/u/1929323?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulinaLach","html_url":"https://github.com/PaulinaLach","followers_url":"https://api.github.com/users/PaulinaLach/followers","following_url":"https://api.github.com/users/PaulinaLach/following{/other_user}","gists_url":"https://api.github.com/users/PaulinaLach/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulinaLach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulinaLach/subscriptions","organizations_url":"https://api.github.com/users/PaulinaLach/orgs","repos_url":"https://api.github.com/users/PaulinaLach/repos","events_url":"https://api.github.com/users/PaulinaLach/events{/privacy}","received_events_url":"https://api.github.com/users/PaulinaLach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PaulinaLach/b2share","description":"B2Share software for the EUDAT CDI services.","fork":true,"url":"https://api.github.com/repos/PaulinaLach/b2share","forks_url":"https://api.github.com/repos/PaulinaLach/b2share/forks","keys_url":"https://api.github.com/repos/PaulinaLach/b2share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaulinaLach/b2share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaulinaLach/b2share/teams","hooks_url":"https://api.github.com/repos/PaulinaLach/b2share/hooks","issue_events_url":"https://api.github.com/repos/PaulinaLach/b2share/issues/events{/number}","events_url":"https://api.github.com/repos/PaulinaLach/b2share/events","assignees_url":"https://api.github.com/repos/PaulinaLach/b2share/assignees{/user}","branches_url":"https://api.github.com/repos/PaulinaLach/b2share/branches{/branch}","tags_url":"https://api.github.com/repos/PaulinaLach/b2share/tags","blobs_url":"https://api.github.com/repos/PaulinaLach/b2share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaulinaLach/b2share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaulinaLach/b2share/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaulinaLach/b2share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaulinaLach/b2share/statuses/{sha}","languages_url":"https://api.github.com/repos/PaulinaLach/b2share/languages","stargazers_url":"https://api.github.com/repos/PaulinaLach/b2share/stargazers","contributors_url":"https://api.github.com/repos/PaulinaLach/b2share/contributors","subscribers_url":"https://api.github.com/repos/PaulinaLach/b2share/subscribers","subscription_url":"https://api.github.com/repos/PaulinaLach/b2share/subscription","commits_url":"https://api.github.com/repos/PaulinaLach/b2share/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaulinaLach/b2share/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaulinaLach/b2share/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaulinaLach/b2share/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaulinaLach/b2share/contents/{+path}","compare_url":"https://api.github.com/repos/PaulinaLach/b2share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaulinaLach/b2share/merges","archive_url":"https://api.github.com/repos/PaulinaLach/b2share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaulinaLach/b2share/downloads","issues_url":"https://api.github.com/repos/PaulinaLach/b2share/issues{/number}","pulls_url":"https://api.github.com/repos/PaulinaLach/b2share/pulls{/number}","milestones_url":"https://api.github.com/repos/PaulinaLach/b2share/milestones{/number}","notifications_url":"https://api.github.com/repos/PaulinaLach/b2share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaulinaLach/b2share/labels{/name}","releases_url":"https://api.github.com/repos/PaulinaLach/b2share/releases{/id}","deployments_url":"https://api.github.com/repos/PaulinaLach/b2share/deployments","created_at":"2016-03-04T10:06:18Z","updated_at":"2016-03-04T10:06:27Z","pushed_at":"2016-07-06T09:18:41Z","git_url":"git://github.com/PaulinaLach/b2share.git","ssh_url":"git@github.com:PaulinaLach/b2share.git","clone_url":"https://github.com/PaulinaLach/b2share.git","svn_url":"https://github.com/PaulinaLach/b2share","homepage":"https://b2share.eudat.eu","size":74530,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"1.7"}},"base":{"label":"EUDAT-B2SHARE:evolution","ref":"evolution","sha":"471be8f95850c934422b72fc7edbef00b3ad378d","user":{"login":"EUDAT-B2SHARE","id":5012708,"avatar_url":"https://avatars.githubusercontent.com/u/5012708?v=3","gravatar_id":"","url":"https://api.github.com/users/EUDAT-B2SHARE","html_url":"https://github.com/EUDAT-B2SHARE","followers_url":"https://api.github.com/users/EUDAT-B2SHARE/followers","following_url":"https://api.github.com/users/EUDAT-B2SHARE/following{/other_user}","gists_url":"https://api.github.com/users/EUDAT-B2SHARE/gists{/gist_id}","starred_url":"https://api.github.com/users/EUDAT-B2SHARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EUDAT-B2SHARE/subscriptions","organizations_url":"https://api.github.com/users/EUDAT-B2SHARE/orgs","repos_url":"https://api.github.com/users/EUDAT-B2SHARE/repos","events_url":"https://api.github.com/users/EUDAT-B2SHARE/events{/privacy}","received_events_url":"https://api.github.com/users/EUDAT-B2SHARE/received_events","type":"Organization","site_admin":false},"repo":{"id":7918325,"name":"b2share","full_name":"EUDAT-B2SHARE/b2share","owner":{"login":"EUDAT-B2SHARE","id":5012708,"avatar_url":"https://avatars.githubusercontent.com/u/5012708?v=3","gravatar_id":"","url":"https://api.github.com/users/EUDAT-B2SHARE","html_url":"https://github.com/EUDAT-B2SHARE","followers_url":"https://api.github.com/users/EUDAT-B2SHARE/followers","following_url":"https://api.github.com/users/EUDAT-B2SHARE/following{/other_user}","gists_url":"https://api.github.com/users/EUDAT-B2SHARE/gists{/gist_id}","starred_url":"https://api.github.com/users/EUDAT-B2SHARE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EUDAT-B2SHARE/subscriptions","organizations_url":"https://api.github.com/users/EUDAT-B2SHARE/orgs","repos_url":"https://api.github.com/users/EUDAT-B2SHARE/repos","events_url":"https://api.github.com/users/EUDAT-B2SHARE/events{/privacy}","received_events_url":"https://api.github.com/users/EUDAT-B2SHARE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EUDAT-B2SHARE/b2share","description":"B2Share software for the EUDAT CDI services.","fork":false,"url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share","forks_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/forks","keys_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/teams","hooks_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/hooks","issue_events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/events{/number}","events_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/events","assignees_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/assignees{/user}","branches_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/branches{/branch}","tags_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/tags","blobs_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/refs{/sha}","trees_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/{sha}","languages_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/languages","stargazers_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/stargazers","contributors_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/contributors","subscribers_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/subscribers","subscription_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/subscription","commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/commits{/sha}","git_commits_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/git/commits{/sha}","comments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/comments{/number}","issue_comment_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/comments{/number}","contents_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/contents/{+path}","compare_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/merges","archive_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/downloads","issues_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues{/number}","pulls_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls{/number}","milestones_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/milestones{/number}","notifications_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/labels{/name}","releases_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/releases{/id}","deployments_url":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/deployments","created_at":"2013-01-30T16:21:34Z","updated_at":"2016-06-14T14:03:33Z","pushed_at":"2016-07-06T09:23:06Z","git_url":"git://github.com/EUDAT-B2SHARE/b2share.git","ssh_url":"git@github.com:EUDAT-B2SHARE/b2share.git","clone_url":"https://github.com/EUDAT-B2SHARE/b2share.git","svn_url":"https://github.com/EUDAT-B2SHARE/b2share","homepage":"https://b2share.eudat.eu","size":74851,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":149,"forks":11,"open_issues":149,"watchers":9,"default_branch":"1.7"}},"_links":{"self":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986"},"html":{"href":"https://github.com/EUDAT-B2SHARE/b2share/pull/986"},"issue":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/986"},"comments":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/issues/986/comments"},"review_comments":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986/comments"},"review_comment":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/pulls/986/commits"},"statuses":{"href":"https://api.github.com/repos/EUDAT-B2SHARE/b2share/statuses/2f54732e309492434041eb3434e476223a67368e"}}}}
{"actor":{"display_login":"nharraud"}}