{"action":"created","comment":{"url":"https://api.github.com/repos/andela/activo-api/pulls/comments/199127455","pull_request_review_id":133185966,"id":199127455,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTEyNzQ1NQ==","diff_hunk":"@@ -0,0 +1,12 @@\n+\"Module for helpers\"\n+\n+def to_camel_case(data):\n+    \"\"\"\n+    Converts space seperated character to camel case\n+    \"\"\"\n+    \n+    first_letter = data[0].lower()\n+    data_without_first_letter = data.title()[1:].replace(' ', '')\n+    data = first_letter + data_without_first_letter\n+\n+    return data","path":"api/utilities/helpers.py","position":12,"original_position":12,"commit_id":"0bd1140af8e9b9744eabeb8ad7261c7dc491587d","original_commit_id":"0bd1140af8e9b9744eabeb8ad7261c7dc491587d","user":{"login":"Dheavyman","id":28486643,"node_id":"MDQ6VXNlcjI4NDg2NjQz","avatar_url":"https://avatars3.githubusercontent.com/u/28486643?v=4","gravatar_id":"","url":"https://api.github.com/users/Dheavyman","html_url":"https://github.com/Dheavyman","followers_url":"https://api.github.com/users/Dheavyman/followers","following_url":"https://api.github.com/users/Dheavyman/following{/other_user}","gists_url":"https://api.github.com/users/Dheavyman/gists{/gist_id}","starred_url":"https://api.github.com/users/Dheavyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dheavyman/subscriptions","organizations_url":"https://api.github.com/users/Dheavyman/orgs","repos_url":"https://api.github.com/users/Dheavyman/repos","events_url":"https://api.github.com/users/Dheavyman/events{/privacy}","received_events_url":"https://api.github.com/users/Dheavyman/received_events","type":"User","site_admin":false},"body":"Add a new line at the end of the file","created_at":"2018-06-29T11:09:57Z","updated_at":"2018-06-29T11:10:07Z","html_url":"https://github.com/andela/activo-api/pull/33#discussion_r199127455","pull_request_url":"https://api.github.com/repos/andela/activo-api/pulls/33","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/andela/activo-api/pulls/comments/199127455"},"html":{"href":"https://github.com/andela/activo-api/pull/33#discussion_r199127455"},"pull_request":{"href":"https://api.github.com/repos/andela/activo-api/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/andela/activo-api/pulls/33","id":197766436,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3NzY2NDM2","html_url":"https://github.com/andela/activo-api/pull/33","diff_url":"https://github.com/andela/activo-api/pull/33.diff","patch_url":"https://github.com/andela/activo-api/pull/33.patch","issue_url":"https://api.github.com/repos/andela/activo-api/issues/33","number":33,"state":"open","locked":false,"title":"158627390 Refactor create asset category endpoint and document api","user":{"login":"SEUNAGBEYE","id":25517388,"node_id":"MDQ6VXNlcjI1NTE3Mzg4","avatar_url":"https://avatars2.githubusercontent.com/u/25517388?v=4","gravatar_id":"","url":"https://api.github.com/users/SEUNAGBEYE","html_url":"https://github.com/SEUNAGBEYE","followers_url":"https://api.github.com/users/SEUNAGBEYE/followers","following_url":"https://api.github.com/users/SEUNAGBEYE/following{/other_user}","gists_url":"https://api.github.com/users/SEUNAGBEYE/gists{/gist_id}","starred_url":"https://api.github.com/users/SEUNAGBEYE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SEUNAGBEYE/subscriptions","organizations_url":"https://api.github.com/users/SEUNAGBEYE/orgs","repos_url":"https://api.github.com/users/SEUNAGBEYE/repos","events_url":"https://api.github.com/users/SEUNAGBEYE/events{/privacy}","received_events_url":"https://api.github.com/users/SEUNAGBEYE/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n>- Refactor Create asset category endpoint\r\n#### Description of Task to be completed?\r\n>- As a developer, I should be able to create an asset category by passing the attributes of the asset category to /asset-categories\r\n#### How should this be manually tested?\r\n>- Create a local branch `ft-create-asset-category-157767424` and pull from origin\r\n>- Start the application `flask run`\r\n>- Send a POST request to this endpoint: `localhost:5000/api/v1/asset-categories`\r\nwith this data\r\n `{\r\n\t\"name\": \"Headset\",\r\n\t\"attributes\": [\r\n              {\"label\": \"brand\", \"is_required\": \"true\", \"input_control\": \"text\", \"choices\": \"null\"}, \r\n              {\"label\": \"color\", \"is_required\": \"true\", \"input_control\": \"dropdown\", \"choices\": \"blue,red,black\"}\r\n         ]\r\n}` and an asset category should be created\r\n>- To get errors remove the `Authorization` header or tamper with the request data\r\n#### Any background context you want to provide?\r\n>- At least one attributes should be provided when creating an asset category\r\n#### What are the relevant pivotal tracker stories?\r\n>- [#158627390](https://www.pivotaltracker.com/n/projects/2170023/stories/158627390)\r\n#### Screenshots (if appropriate)\r\n>- N/A\r\n#### Questions:\r\n>- N/A","created_at":"2018-06-27T15:12:57Z","updated_at":"2018-06-29T11:10:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44e18ca52e09c6ed1484d6d86d175b6b44618301","assignee":null,"assignees":[],"requested_reviewers":[{"login":"purpose50","id":24475008,"node_id":"MDQ6VXNlcjI0NDc1MDA4","avatar_url":"https://avatars3.githubusercontent.com/u/24475008?v=4","gravatar_id":"","url":"https://api.github.com/users/purpose50","html_url":"https://github.com/purpose50","followers_url":"https://api.github.com/users/purpose50/followers","following_url":"https://api.github.com/users/purpose50/following{/other_user}","gists_url":"https://api.github.com/users/purpose50/gists{/gist_id}","starred_url":"https://api.github.com/users/purpose50/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purpose50/subscriptions","organizations_url":"https://api.github.com/users/purpose50/orgs","repos_url":"https://api.github.com/users/purpose50/repos","events_url":"https://api.github.com/users/purpose50/events{/privacy}","received_events_url":"https://api.github.com/users/purpose50/received_events","type":"User","site_admin":false},{"login":"ibutiti","id":25291950,"node_id":"MDQ6VXNlcjI1MjkxOTUw","avatar_url":"https://avatars1.githubusercontent.com/u/25291950?v=4","gravatar_id":"","url":"https://api.github.com/users/ibutiti","html_url":"https://github.com/ibutiti","followers_url":"https://api.github.com/users/ibutiti/followers","following_url":"https://api.github.com/users/ibutiti/following{/other_user}","gists_url":"https://api.github.com/users/ibutiti/gists{/gist_id}","starred_url":"https://api.github.com/users/ibutiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibutiti/subscriptions","organizations_url":"https://api.github.com/users/ibutiti/orgs","repos_url":"https://api.github.com/users/ibutiti/repos","events_url":"https://api.github.com/users/ibutiti/events{/privacy}","received_events_url":"https://api.github.com/users/ibutiti/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/activo-api/pulls/33/commits","review_comments_url":"https://api.github.com/repos/andela/activo-api/pulls/33/comments","review_comment_url":"https://api.github.com/repos/andela/activo-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/activo-api/issues/33/comments","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/0bd1140af8e9b9744eabeb8ad7261c7dc491587d","head":{"label":"andela:ft-refactor-create-asset-category-158627390","ref":"ft-refactor-create-asset-category-158627390","sha":"0bd1140af8e9b9744eabeb8ad7261c7dc491587d","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578300,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1NzgzMDA=","name":"activo-api","full_name":"andela/activo-api","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/activo-api","forks_url":"https://api.github.com/repos/andela/activo-api/forks","keys_url":"https://api.github.com/repos/andela/activo-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-api/teams","hooks_url":"https://api.github.com/repos/andela/activo-api/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-api/events","assignees_url":"https://api.github.com/repos/andela/activo-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-api/tags","blobs_url":"https://api.github.com/repos/andela/activo-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-api/languages","stargazers_url":"https://api.github.com/repos/andela/activo-api/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-api/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-api/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-api/subscription","commits_url":"https://api.github.com/repos/andela/activo-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-api/merges","archive_url":"https://api.github.com/repos/andela/activo-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-api/downloads","issues_url":"https://api.github.com/repos/andela/activo-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-api/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-api/deployments","created_at":"2018-05-08T08:27:32Z","updated_at":"2018-06-27T13:02:07Z","pushed_at":"2018-06-29T10:56:26Z","git_url":"git://github.com/andela/activo-api.git","ssh_url":"git@github.com:andela/activo-api.git","clone_url":"https://github.com/andela/activo-api.git","svn_url":"https://github.com/andela/activo-api","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":4,"open_issues":8,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"28f325f09441212df5609321871bc1213c7648d9","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":132578300,"node_id":"MDEwOlJlcG9zaXRvcnkxMzI1NzgzMDA=","name":"activo-api","full_name":"andela/activo-api","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/activo-api","description":null,"fork":false,"url":"https://api.github.com/repos/andela/activo-api","forks_url":"https://api.github.com/repos/andela/activo-api/forks","keys_url":"https://api.github.com/repos/andela/activo-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/activo-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/activo-api/teams","hooks_url":"https://api.github.com/repos/andela/activo-api/hooks","issue_events_url":"https://api.github.com/repos/andela/activo-api/issues/events{/number}","events_url":"https://api.github.com/repos/andela/activo-api/events","assignees_url":"https://api.github.com/repos/andela/activo-api/assignees{/user}","branches_url":"https://api.github.com/repos/andela/activo-api/branches{/branch}","tags_url":"https://api.github.com/repos/andela/activo-api/tags","blobs_url":"https://api.github.com/repos/andela/activo-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/activo-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/activo-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/activo-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/activo-api/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/activo-api/languages","stargazers_url":"https://api.github.com/repos/andela/activo-api/stargazers","contributors_url":"https://api.github.com/repos/andela/activo-api/contributors","subscribers_url":"https://api.github.com/repos/andela/activo-api/subscribers","subscription_url":"https://api.github.com/repos/andela/activo-api/subscription","commits_url":"https://api.github.com/repos/andela/activo-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/activo-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/activo-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/activo-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/activo-api/contents/{+path}","compare_url":"https://api.github.com/repos/andela/activo-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/activo-api/merges","archive_url":"https://api.github.com/repos/andela/activo-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/activo-api/downloads","issues_url":"https://api.github.com/repos/andela/activo-api/issues{/number}","pulls_url":"https://api.github.com/repos/andela/activo-api/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/activo-api/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/activo-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/activo-api/labels{/name}","releases_url":"https://api.github.com/repos/andela/activo-api/releases{/id}","deployments_url":"https://api.github.com/repos/andela/activo-api/deployments","created_at":"2018-05-08T08:27:32Z","updated_at":"2018-06-27T13:02:07Z","pushed_at":"2018-06-29T10:56:26Z","git_url":"git://github.com/andela/activo-api.git","ssh_url":"git@github.com:andela/activo-api.git","clone_url":"https://github.com/andela/activo-api.git","svn_url":"https://github.com/andela/activo-api","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":4,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/activo-api/pulls/33"},"html":{"href":"https://github.com/andela/activo-api/pull/33"},"issue":{"href":"https://api.github.com/repos/andela/activo-api/issues/33"},"comments":{"href":"https://api.github.com/repos/andela/activo-api/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/activo-api/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/activo-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/activo-api/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/andela/activo-api/statuses/0bd1140af8e9b9744eabeb8ad7261c7dc491587d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Dheavyman"}}