{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5","id":176394885,"html_url":"https://github.com/b-yond-infinite-network/amaze-us/pull/5","diff_url":"https://github.com/b-yond-infinite-network/amaze-us/pull/5.diff","patch_url":"https://github.com/b-yond-infinite-network/amaze-us/pull/5.patch","issue_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/5","number":5,"state":"open","locked":false,"title":"Convert App42PaaS to a microservice","user":{"login":"amertkara","id":1740139,"avatar_url":"https://avatars1.githubusercontent.com/u/1740139?v=4","gravatar_id":"","url":"https://api.github.com/users/amertkara","html_url":"https://github.com/amertkara","followers_url":"https://api.github.com/users/amertkara/followers","following_url":"https://api.github.com/users/amertkara/following{/other_user}","gists_url":"https://api.github.com/users/amertkara/gists{/gist_id}","starred_url":"https://api.github.com/users/amertkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amertkara/subscriptions","organizations_url":"https://api.github.com/users/amertkara/orgs","repos_url":"https://api.github.com/users/amertkara/repos","events_url":"https://api.github.com/users/amertkara/events{/privacy}","received_events_url":"https://api.github.com/users/amertkara/received_events","type":"User","site_admin":false},"body":"# Convert App42PaaS project into a microservice\r\n\r\nThe new microservice `user-data-manager` provides a RestFul API to do CRUD operations on user entities\r\n\r\n### Prerequisites\r\n- MySQL\r\n\r\n### Running locally\r\nMake sure that MySQL is running locally.\r\n\r\nrun `mvn spring-boot:run -Dspring.datasource.username=[DB_USERNAME] -Dspring.datasource.password=[DB_PASSWORD] -pl application` in the project root to start the application. If no db username/password provided, it defaults to `root/password`.\r\n\r\n### 1. Create a user\r\n```\r\ncurl -H \"Content-Type: application/json\" -X POST --data '{\"name\": \"abc\", \"email\": \"test@abc.com\", \"description\": \"some description\"}' localhost:8080/users -i\r\n```\r\n\r\n```\r\nHTTP/1.1 201\r\nLocation: /users/6\r\nContent-Length: 0\r\n```\r\n\r\n### 2. Get a user\r\n```\r\ncurl localhost:8080/users/6\r\n```\r\n```\r\n{\"name\":\"abc\",\"email\":\"test@abc.com\",\"description\":\"some description\"}\r\n```\r\n\r\n### 3. Update a user\r\n```\r\ncurl -H \"Content-Type: application/json\" -X PATCH --data '{\"name\": \"abc\", \"email\": \"test123@abc.com\", \"description\": \"some description\"}' localhost:8080/users/6 -i\r\n```\r\n```\r\nHTTP/1.1 204\r\nLocation: /users/6\r\n```\r\n\r\n### 4. Delete a user\r\n```\r\ncurl -X DELETE localhost:8080/users/6\r\n```\r\n\r\n","created_at":"2018-03-21T07:01:47Z","updated_at":"2018-03-21T07:01:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5/commits","review_comments_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5/comments","review_comment_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/comments{/number}","comments_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/5/comments","statuses_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/statuses/6769cd3e1a9de12ed20f3962d6b7c49d1539abe7","head":{"label":"amertkara:convert_App42PaaS_to_microservice","ref":"convert_App42PaaS_to_microservice","sha":"6769cd3e1a9de12ed20f3962d6b7c49d1539abe7","user":{"login":"amertkara","id":1740139,"avatar_url":"https://avatars1.githubusercontent.com/u/1740139?v=4","gravatar_id":"","url":"https://api.github.com/users/amertkara","html_url":"https://github.com/amertkara","followers_url":"https://api.github.com/users/amertkara/followers","following_url":"https://api.github.com/users/amertkara/following{/other_user}","gists_url":"https://api.github.com/users/amertkara/gists{/gist_id}","starred_url":"https://api.github.com/users/amertkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amertkara/subscriptions","organizations_url":"https://api.github.com/users/amertkara/orgs","repos_url":"https://api.github.com/users/amertkara/repos","events_url":"https://api.github.com/users/amertkara/events{/privacy}","received_events_url":"https://api.github.com/users/amertkara/received_events","type":"User","site_admin":false},"repo":{"id":126135126,"name":"amaze-us","full_name":"amertkara/amaze-us","owner":{"login":"amertkara","id":1740139,"avatar_url":"https://avatars1.githubusercontent.com/u/1740139?v=4","gravatar_id":"","url":"https://api.github.com/users/amertkara","html_url":"https://github.com/amertkara","followers_url":"https://api.github.com/users/amertkara/followers","following_url":"https://api.github.com/users/amertkara/following{/other_user}","gists_url":"https://api.github.com/users/amertkara/gists{/gist_id}","starred_url":"https://api.github.com/users/amertkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amertkara/subscriptions","organizations_url":"https://api.github.com/users/amertkara/orgs","repos_url":"https://api.github.com/users/amertkara/repos","events_url":"https://api.github.com/users/amertkara/events{/privacy}","received_events_url":"https://api.github.com/users/amertkara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amertkara/amaze-us","description":"A repository to demonstrate amazingness","fork":true,"url":"https://api.github.com/repos/amertkara/amaze-us","forks_url":"https://api.github.com/repos/amertkara/amaze-us/forks","keys_url":"https://api.github.com/repos/amertkara/amaze-us/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amertkara/amaze-us/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amertkara/amaze-us/teams","hooks_url":"https://api.github.com/repos/amertkara/amaze-us/hooks","issue_events_url":"https://api.github.com/repos/amertkara/amaze-us/issues/events{/number}","events_url":"https://api.github.com/repos/amertkara/amaze-us/events","assignees_url":"https://api.github.com/repos/amertkara/amaze-us/assignees{/user}","branches_url":"https://api.github.com/repos/amertkara/amaze-us/branches{/branch}","tags_url":"https://api.github.com/repos/amertkara/amaze-us/tags","blobs_url":"https://api.github.com/repos/amertkara/amaze-us/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amertkara/amaze-us/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amertkara/amaze-us/git/refs{/sha}","trees_url":"https://api.github.com/repos/amertkara/amaze-us/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amertkara/amaze-us/statuses/{sha}","languages_url":"https://api.github.com/repos/amertkara/amaze-us/languages","stargazers_url":"https://api.github.com/repos/amertkara/amaze-us/stargazers","contributors_url":"https://api.github.com/repos/amertkara/amaze-us/contributors","subscribers_url":"https://api.github.com/repos/amertkara/amaze-us/subscribers","subscription_url":"https://api.github.com/repos/amertkara/amaze-us/subscription","commits_url":"https://api.github.com/repos/amertkara/amaze-us/commits{/sha}","git_commits_url":"https://api.github.com/repos/amertkara/amaze-us/git/commits{/sha}","comments_url":"https://api.github.com/repos/amertkara/amaze-us/comments{/number}","issue_comment_url":"https://api.github.com/repos/amertkara/amaze-us/issues/comments{/number}","contents_url":"https://api.github.com/repos/amertkara/amaze-us/contents/{+path}","compare_url":"https://api.github.com/repos/amertkara/amaze-us/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amertkara/amaze-us/merges","archive_url":"https://api.github.com/repos/amertkara/amaze-us/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amertkara/amaze-us/downloads","issues_url":"https://api.github.com/repos/amertkara/amaze-us/issues{/number}","pulls_url":"https://api.github.com/repos/amertkara/amaze-us/pulls{/number}","milestones_url":"https://api.github.com/repos/amertkara/amaze-us/milestones{/number}","notifications_url":"https://api.github.com/repos/amertkara/amaze-us/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amertkara/amaze-us/labels{/name}","releases_url":"https://api.github.com/repos/amertkara/amaze-us/releases{/id}","deployments_url":"https://api.github.com/repos/amertkara/amaze-us/deployments","created_at":"2018-03-21T06:45:09Z","updated_at":"2018-03-21T06:45:11Z","pushed_at":"2018-03-21T06:45:55Z","git_url":"git://github.com/amertkara/amaze-us.git","ssh_url":"git@github.com:amertkara/amaze-us.git","clone_url":"https://github.com/amertkara/amaze-us.git","svn_url":"https://github.com/amertkara/amaze-us","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"b-yond-infinite-network:master","ref":"master","sha":"aa4f9bee3646931dcba84649c5dee627e36e5e53","user":{"login":"b-yond-infinite-network","id":34663089,"avatar_url":"https://avatars0.githubusercontent.com/u/34663089?v=4","gravatar_id":"","url":"https://api.github.com/users/b-yond-infinite-network","html_url":"https://github.com/b-yond-infinite-network","followers_url":"https://api.github.com/users/b-yond-infinite-network/followers","following_url":"https://api.github.com/users/b-yond-infinite-network/following{/other_user}","gists_url":"https://api.github.com/users/b-yond-infinite-network/gists{/gist_id}","starred_url":"https://api.github.com/users/b-yond-infinite-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-yond-infinite-network/subscriptions","organizations_url":"https://api.github.com/users/b-yond-infinite-network/orgs","repos_url":"https://api.github.com/users/b-yond-infinite-network/repos","events_url":"https://api.github.com/users/b-yond-infinite-network/events{/privacy}","received_events_url":"https://api.github.com/users/b-yond-infinite-network/received_events","type":"Organization","site_admin":false},"repo":{"id":122511107,"name":"amaze-us","full_name":"b-yond-infinite-network/amaze-us","owner":{"login":"b-yond-infinite-network","id":34663089,"avatar_url":"https://avatars0.githubusercontent.com/u/34663089?v=4","gravatar_id":"","url":"https://api.github.com/users/b-yond-infinite-network","html_url":"https://github.com/b-yond-infinite-network","followers_url":"https://api.github.com/users/b-yond-infinite-network/followers","following_url":"https://api.github.com/users/b-yond-infinite-network/following{/other_user}","gists_url":"https://api.github.com/users/b-yond-infinite-network/gists{/gist_id}","starred_url":"https://api.github.com/users/b-yond-infinite-network/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b-yond-infinite-network/subscriptions","organizations_url":"https://api.github.com/users/b-yond-infinite-network/orgs","repos_url":"https://api.github.com/users/b-yond-infinite-network/repos","events_url":"https://api.github.com/users/b-yond-infinite-network/events{/privacy}","received_events_url":"https://api.github.com/users/b-yond-infinite-network/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/b-yond-infinite-network/amaze-us","description":"A repository to demonstrate amazingness","fork":false,"url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us","forks_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/forks","keys_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/keys{/key_id}","collaborators_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/teams","hooks_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/hooks","issue_events_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/events{/number}","events_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/events","assignees_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/assignees{/user}","branches_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/branches{/branch}","tags_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/tags","blobs_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/git/refs{/sha}","trees_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/git/trees{/sha}","statuses_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/statuses/{sha}","languages_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/languages","stargazers_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/stargazers","contributors_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/contributors","subscribers_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/subscribers","subscription_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/subscription","commits_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/commits{/sha}","git_commits_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/git/commits{/sha}","comments_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/comments{/number}","issue_comment_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/comments{/number}","contents_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/contents/{+path}","compare_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/compare/{base}...{head}","merges_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/merges","archive_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/downloads","issues_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues{/number}","pulls_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls{/number}","milestones_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/milestones{/number}","notifications_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/labels{/name}","releases_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/releases{/id}","deployments_url":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/deployments","created_at":"2018-02-22T17:25:29Z","updated_at":"2018-03-08T23:09:20Z","pushed_at":"2018-03-12T21:15:07Z","git_url":"git://github.com/b-yond-infinite-network/amaze-us.git","ssh_url":"git@github.com:b-yond-infinite-network/amaze-us.git","clone_url":"https://github.com/b-yond-infinite-network/amaze-us.git","svn_url":"https://github.com/b-yond-infinite-network/amaze-us","homepage":null,"size":62,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":6,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5"},"html":{"href":"https://github.com/b-yond-infinite-network/amaze-us/pull/5"},"issue":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/5"},"comments":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/b-yond-infinite-network/amaze-us/statuses/6769cd3e1a9de12ed20f3962d6b7c49d1539abe7"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1824,"deletions":0,"changed_files":38}}
{"actor":{"display_login":"amertkara"}}