{"action":"created","comment":{"url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/comments/43752094","id":43752094,"diff_hunk":"@@ -0,0 +1,18 @@\n+from rest_framework.views import APIView\n+from rest_framework.response import Response\n+from rest_framework import authentication, permissions, status\n+from django.shortcuts import render\n+\n+from artist_profile.serializers import ArtistSerializer\n+\n+class ArtistCreate(APIView):\n+    '''\n+    Create a user\n+    '''\n+    def post(self, request, format=None):\n+        serializer = ArtistSerializer(data=request.data)\n+        if serializer.is_valid() and request.user.is_authenticated():\n+            serializer.save(user=request.user)\n+            return Response(serializer.data, status=status.HTTP_201_CREATED)\n+\n+        return Response(serializer.data, status=status.HTTP_400_BAD_REQUEST)","path":"artist_profile/views.py","position":18,"original_position":18,"commit_id":"e164b3e93437aa29d58967d8a0b4d763992bf8da","original_commit_id":"e164b3e93437aa29d58967d8a0b4d763992bf8da","user":{"login":"iheanyi","id":956631,"avatar_url":"https://avatars.githubusercontent.com/u/956631?v=3","gravatar_id":"","url":"https://api.github.com/users/iheanyi","html_url":"https://github.com/iheanyi","followers_url":"https://api.github.com/users/iheanyi/followers","following_url":"https://api.github.com/users/iheanyi/following{/other_user}","gists_url":"https://api.github.com/users/iheanyi/gists{/gist_id}","starred_url":"https://api.github.com/users/iheanyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iheanyi/subscriptions","organizations_url":"https://api.github.com/users/iheanyi/orgs","repos_url":"https://api.github.com/users/iheanyi/repos","events_url":"https://api.github.com/users/iheanyi/events{/privacy}","received_events_url":"https://api.github.com/users/iheanyi/received_events","type":"User","site_admin":false},"body":"Don't return `Response(serializer.data, . . .)`, return `Response(serializer.errors, . . .)`","created_at":"2015-11-03T14:23:00Z","updated_at":"2015-11-03T14:23:00Z","html_url":"https://github.com/BlackathonBlackers/DisPiff/pull/17#discussion_r43752094","pull_request_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/comments/43752094"},"html":{"href":"https://github.com/BlackathonBlackers/DisPiff/pull/17#discussion_r43752094"},"pull_request":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17","id":49558621,"html_url":"https://github.com/BlackathonBlackers/DisPiff/pull/17","diff_url":"https://github.com/BlackathonBlackers/DisPiff/pull/17.diff","patch_url":"https://github.com/BlackathonBlackers/DisPiff/pull/17.patch","issue_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/17","number":17,"state":"open","locked":false,"title":"Implement API call for artist profile creation","user":{"login":"GRardB","id":748180,"avatar_url":"https://avatars.githubusercontent.com/u/748180?v=3","gravatar_id":"","url":"https://api.github.com/users/GRardB","html_url":"https://github.com/GRardB","followers_url":"https://api.github.com/users/GRardB/followers","following_url":"https://api.github.com/users/GRardB/following{/other_user}","gists_url":"https://api.github.com/users/GRardB/gists{/gist_id}","starred_url":"https://api.github.com/users/GRardB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GRardB/subscriptions","organizations_url":"https://api.github.com/users/GRardB/orgs","repos_url":"https://api.github.com/users/GRardB/repos","events_url":"https://api.github.com/users/GRardB/events{/privacy}","received_events_url":"https://api.github.com/users/GRardB/received_events","type":"User","site_admin":false},"body":"I removed a bunch of trailing whitespace for Ijañi's code.","created_at":"2015-11-03T14:05:40Z","updated_at":"2015-11-03T14:23:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"312ed3e43435246921f08aa3fe954039eb72db5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17/commits","review_comments_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17/comments","review_comment_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/17/comments","statuses_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/statuses/e164b3e93437aa29d58967d8a0b4d763992bf8da","head":{"label":"BlackathonBlackers:go-artist_profiles","ref":"go-artist_profiles","sha":"e164b3e93437aa29d58967d8a0b4d763992bf8da","user":{"login":"BlackathonBlackers","id":11860953,"avatar_url":"https://avatars.githubusercontent.com/u/11860953?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackathonBlackers","html_url":"https://github.com/BlackathonBlackers","followers_url":"https://api.github.com/users/BlackathonBlackers/followers","following_url":"https://api.github.com/users/BlackathonBlackers/following{/other_user}","gists_url":"https://api.github.com/users/BlackathonBlackers/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackathonBlackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackathonBlackers/subscriptions","organizations_url":"https://api.github.com/users/BlackathonBlackers/orgs","repos_url":"https://api.github.com/users/BlackathonBlackers/repos","events_url":"https://api.github.com/users/BlackathonBlackers/events{/privacy}","received_events_url":"https://api.github.com/users/BlackathonBlackers/received_events","type":"Organization","site_admin":false},"repo":{"id":43258669,"name":"DisPiff","full_name":"BlackathonBlackers/DisPiff","owner":{"login":"BlackathonBlackers","id":11860953,"avatar_url":"https://avatars.githubusercontent.com/u/11860953?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackathonBlackers","html_url":"https://github.com/BlackathonBlackers","followers_url":"https://api.github.com/users/BlackathonBlackers/followers","following_url":"https://api.github.com/users/BlackathonBlackers/following{/other_user}","gists_url":"https://api.github.com/users/BlackathonBlackers/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackathonBlackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackathonBlackers/subscriptions","organizations_url":"https://api.github.com/users/BlackathonBlackers/orgs","repos_url":"https://api.github.com/users/BlackathonBlackers/repos","events_url":"https://api.github.com/users/BlackathonBlackers/events{/privacy}","received_events_url":"https://api.github.com/users/BlackathonBlackers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlackathonBlackers/DisPiff","description":"YOU!? Wanna get swag like me, ninja?!","fork":false,"url":"https://api.github.com/repos/BlackathonBlackers/DisPiff","forks_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/forks","keys_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/teams","hooks_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/hooks","issue_events_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/events{/number}","events_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/events","assignees_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/assignees{/user}","branches_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/branches{/branch}","tags_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/tags","blobs_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/statuses/{sha}","languages_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/languages","stargazers_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/stargazers","contributors_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/contributors","subscribers_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/subscribers","subscription_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/subscription","commits_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/contents/{+path}","compare_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/merges","archive_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/downloads","issues_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues{/number}","pulls_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls{/number}","milestones_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/milestones{/number}","notifications_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/labels{/name}","releases_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/releases{/id}","created_at":"2015-09-27T18:20:33Z","updated_at":"2015-10-04T15:45:42Z","pushed_at":"2015-11-03T14:05:40Z","git_url":"git://github.com/BlackathonBlackers/DisPiff.git","ssh_url":"git@github.com:BlackathonBlackers/DisPiff.git","clone_url":"https://github.com/BlackathonBlackers/DisPiff.git","svn_url":"https://github.com/BlackathonBlackers/DisPiff","homepage":null,"size":6940,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"BlackathonBlackers:master","ref":"master","sha":"7138c2a17e1f6895aed05b1563c8b7f12f7f45f0","user":{"login":"BlackathonBlackers","id":11860953,"avatar_url":"https://avatars.githubusercontent.com/u/11860953?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackathonBlackers","html_url":"https://github.com/BlackathonBlackers","followers_url":"https://api.github.com/users/BlackathonBlackers/followers","following_url":"https://api.github.com/users/BlackathonBlackers/following{/other_user}","gists_url":"https://api.github.com/users/BlackathonBlackers/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackathonBlackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackathonBlackers/subscriptions","organizations_url":"https://api.github.com/users/BlackathonBlackers/orgs","repos_url":"https://api.github.com/users/BlackathonBlackers/repos","events_url":"https://api.github.com/users/BlackathonBlackers/events{/privacy}","received_events_url":"https://api.github.com/users/BlackathonBlackers/received_events","type":"Organization","site_admin":false},"repo":{"id":43258669,"name":"DisPiff","full_name":"BlackathonBlackers/DisPiff","owner":{"login":"BlackathonBlackers","id":11860953,"avatar_url":"https://avatars.githubusercontent.com/u/11860953?v=3","gravatar_id":"","url":"https://api.github.com/users/BlackathonBlackers","html_url":"https://github.com/BlackathonBlackers","followers_url":"https://api.github.com/users/BlackathonBlackers/followers","following_url":"https://api.github.com/users/BlackathonBlackers/following{/other_user}","gists_url":"https://api.github.com/users/BlackathonBlackers/gists{/gist_id}","starred_url":"https://api.github.com/users/BlackathonBlackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlackathonBlackers/subscriptions","organizations_url":"https://api.github.com/users/BlackathonBlackers/orgs","repos_url":"https://api.github.com/users/BlackathonBlackers/repos","events_url":"https://api.github.com/users/BlackathonBlackers/events{/privacy}","received_events_url":"https://api.github.com/users/BlackathonBlackers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BlackathonBlackers/DisPiff","description":"YOU!? Wanna get swag like me, ninja?!","fork":false,"url":"https://api.github.com/repos/BlackathonBlackers/DisPiff","forks_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/forks","keys_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/teams","hooks_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/hooks","issue_events_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/events{/number}","events_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/events","assignees_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/assignees{/user}","branches_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/branches{/branch}","tags_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/tags","blobs_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/refs{/sha}","trees_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/statuses/{sha}","languages_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/languages","stargazers_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/stargazers","contributors_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/contributors","subscribers_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/subscribers","subscription_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/subscription","commits_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/commits{/sha}","git_commits_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/git/commits{/sha}","comments_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/comments{/number}","issue_comment_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/comments{/number}","contents_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/contents/{+path}","compare_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/merges","archive_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/downloads","issues_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues{/number}","pulls_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls{/number}","milestones_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/milestones{/number}","notifications_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/labels{/name}","releases_url":"https://api.github.com/repos/BlackathonBlackers/DisPiff/releases{/id}","created_at":"2015-09-27T18:20:33Z","updated_at":"2015-10-04T15:45:42Z","pushed_at":"2015-11-03T14:05:40Z","git_url":"git://github.com/BlackathonBlackers/DisPiff.git","ssh_url":"git@github.com:BlackathonBlackers/DisPiff.git","clone_url":"https://github.com/BlackathonBlackers/DisPiff.git","svn_url":"https://github.com/BlackathonBlackers/DisPiff","homepage":null,"size":6940,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17"},"html":{"href":"https://github.com/BlackathonBlackers/DisPiff/pull/17"},"issue":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/17"},"comments":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/BlackathonBlackers/DisPiff/statuses/e164b3e93437aa29d58967d8a0b4d763992bf8da"}}}}