{"action":"created","comment":{"url":"https://api.github.com/repos/mrjink/molveno/pulls/comments/237863977","pull_request_review_id":180269857,"id":237863977,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzg2Mzk3Nw==","diff_hunk":"@@ -0,0 +1,58 @@\n+package com.molvenolakeresort.controllers.event;\n+\n+\n+import com.molvenolakeresort.models.event.Event;\n+import com.molvenolakeresort.repositories.event.EventRepository;\n+import org.springframework.web.bind.annotation.*;\n+\n+import java.util.Optional;\n+\n+@RestController\n+@RequestMapping(\"api/event\")\n+public class EventController {\n+\n+    //@Autowired\n+    private EventRepository eventRepository;\n+\n+    public EventController(EventRepository eventRepository) {\n+        this.eventRepository = eventRepository;\n+    }\n+\n+    // Alle Events ophalen\n+    @RequestMapping(value = \"all\", method = RequestMethod.GET)\n+    public Iterable<Event> getAll() {\n+        return eventRepository.findAll();\n+    }\n+\n+    //Event aanmaken\n+    @RequestMapping(value = \"\", method = RequestMethod.POST)\n+    public void create(@RequestBody Event event){\n+        this.eventRepository.save(event);\n+    }\n+\n+    //    //1 Event Aanpassen\n+    @RequestMapping(value = \"update/{id}\", method = RequestMethod.PATCH)\n+    public void updateEvent(@PathVariable long id, @RequestBody Event event) {\n+        Event dBevent = this.eventRepository.getOne(id);\n+        dBevent.setAddress(event.getAddress());\n+        this.eventRepository.save(event);\n+    }\n+\n+//    //Event verwijderen\n+    @RequestMapping(value = \"delete/{id}\", method = RequestMethod.DELETE)\n+    public void delete(@PathVariable long id) throws Exception {","path":"src/main/java/com/molvenolakeresort/controllers/event/EventController.java","position":43,"original_position":43,"commit_id":"fb7b0da5df4167e4879075203d52e22f22d521ed","original_commit_id":"fb7b0da5df4167e4879075203d52e22f22d521ed","user":{"login":"sonarcloud[bot]","id":39514782,"node_id":"MDM6Qm90Mzk1MTQ3ODI=","avatar_url":"https://avatars2.githubusercontent.com/in/12526?v=4","gravatar_id":"","url":"https://api.github.com/users/sonarcloud%5Bbot%5D","html_url":"https://github.com/apps/sonarcloud","followers_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/followers","following_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/repos","events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/sonarcloud%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"![Code Smell](https://sonarsource.github.io/sonar-github/code_smell.png 'Code Smell') Code Smell: Define and throw a dedicated exception instead of using a generic one. ([squid:S00112](https://sonarcloud.io/organizations/mrjink-github/rules#rule_key=squid%3AS00112))\n\n[See it in SonarCloud](https://sonarcloud.io/project/issues?id=com.molvenolakeresort%3Amolvenolakeresort&pullRequest=17&issues=AWdk3IeI6hoJ692vN1v_&open=AWdk3IeI6hoJ692vN1v_)\n\n[ISSUE_KEY]: AWdk3IeI6hoJ692vN1v_","created_at":"2018-11-30T13:43:58Z","updated_at":"2018-11-30T13:43:59Z","html_url":"https://github.com/mrjink/molveno/pull/17#discussion_r237863977","pull_request_url":"https://api.github.com/repos/mrjink/molveno/pulls/17","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/comments/237863977"},"html":{"href":"https://github.com/mrjink/molveno/pull/17#discussion_r237863977"},"pull_request":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/mrjink/molveno/pulls/17","id":234972889,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0OTcyODg5","html_url":"https://github.com/mrjink/molveno/pull/17","diff_url":"https://github.com/mrjink/molveno/pull/17.diff","patch_url":"https://github.com/mrjink/molveno/pull/17.patch","issue_url":"https://api.github.com/repos/mrjink/molveno/issues/17","number":17,"state":"open","locked":false,"title":"Generic development htm ldevelopment","user":{"login":"KuroPSPiso","id":8629080,"node_id":"MDQ6VXNlcjg2MjkwODA=","avatar_url":"https://avatars1.githubusercontent.com/u/8629080?v=4","gravatar_id":"","url":"https://api.github.com/users/KuroPSPiso","html_url":"https://github.com/KuroPSPiso","followers_url":"https://api.github.com/users/KuroPSPiso/followers","following_url":"https://api.github.com/users/KuroPSPiso/following{/other_user}","gists_url":"https://api.github.com/users/KuroPSPiso/gists{/gist_id}","starred_url":"https://api.github.com/users/KuroPSPiso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KuroPSPiso/subscriptions","organizations_url":"https://api.github.com/users/KuroPSPiso/orgs","repos_url":"https://api.github.com/users/KuroPSPiso/repos","events_url":"https://api.github.com/users/KuroPSPiso/events{/privacy}","received_events_url":"https://api.github.com/users/KuroPSPiso/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-30T12:32:15Z","updated_at":"2018-11-30T13:43:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3862f183b7f8f807832428f9d78e3655276c6c64","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mrjink/molveno/pulls/17/commits","review_comments_url":"https://api.github.com/repos/mrjink/molveno/pulls/17/comments","review_comment_url":"https://api.github.com/repos/mrjink/molveno/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mrjink/molveno/issues/17/comments","statuses_url":"https://api.github.com/repos/mrjink/molveno/statuses/fb7b0da5df4167e4879075203d52e22f22d521ed","head":{"label":"mrjink:generic-development-HTMLdevelopment","ref":"generic-development-HTMLdevelopment","sha":"fb7b0da5df4167e4879075203d52e22f22d521ed","user":{"login":"mrjink","id":206721,"node_id":"MDQ6VXNlcjIwNjcyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/206721?v=4","gravatar_id":"","url":"https://api.github.com/users/mrjink","html_url":"https://github.com/mrjink","followers_url":"https://api.github.com/users/mrjink/followers","following_url":"https://api.github.com/users/mrjink/following{/other_user}","gists_url":"https://api.github.com/users/mrjink/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjink/subscriptions","organizations_url":"https://api.github.com/users/mrjink/orgs","repos_url":"https://api.github.com/users/mrjink/repos","events_url":"https://api.github.com/users/mrjink/events{/privacy}","received_events_url":"https://api.github.com/users/mrjink/received_events","type":"User","site_admin":false},"repo":{"id":157379697,"node_id":"MDEwOlJlcG9zaXRvcnkxNTczNzk2OTc=","name":"molveno","full_name":"mrjink/molveno","private":false,"owner":{"login":"mrjink","id":206721,"node_id":"MDQ6VXNlcjIwNjcyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/206721?v=4","gravatar_id":"","url":"https://api.github.com/users/mrjink","html_url":"https://github.com/mrjink","followers_url":"https://api.github.com/users/mrjink/followers","following_url":"https://api.github.com/users/mrjink/following{/other_user}","gists_url":"https://api.github.com/users/mrjink/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjink/subscriptions","organizations_url":"https://api.github.com/users/mrjink/orgs","repos_url":"https://api.github.com/users/mrjink/repos","events_url":"https://api.github.com/users/mrjink/events{/privacy}","received_events_url":"https://api.github.com/users/mrjink/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mrjink/molveno","description":"Molveno Lake Resort China","fork":false,"url":"https://api.github.com/repos/mrjink/molveno","forks_url":"https://api.github.com/repos/mrjink/molveno/forks","keys_url":"https://api.github.com/repos/mrjink/molveno/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrjink/molveno/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrjink/molveno/teams","hooks_url":"https://api.github.com/repos/mrjink/molveno/hooks","issue_events_url":"https://api.github.com/repos/mrjink/molveno/issues/events{/number}","events_url":"https://api.github.com/repos/mrjink/molveno/events","assignees_url":"https://api.github.com/repos/mrjink/molveno/assignees{/user}","branches_url":"https://api.github.com/repos/mrjink/molveno/branches{/branch}","tags_url":"https://api.github.com/repos/mrjink/molveno/tags","blobs_url":"https://api.github.com/repos/mrjink/molveno/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrjink/molveno/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrjink/molveno/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrjink/molveno/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrjink/molveno/statuses/{sha}","languages_url":"https://api.github.com/repos/mrjink/molveno/languages","stargazers_url":"https://api.github.com/repos/mrjink/molveno/stargazers","contributors_url":"https://api.github.com/repos/mrjink/molveno/contributors","subscribers_url":"https://api.github.com/repos/mrjink/molveno/subscribers","subscription_url":"https://api.github.com/repos/mrjink/molveno/subscription","commits_url":"https://api.github.com/repos/mrjink/molveno/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrjink/molveno/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrjink/molveno/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrjink/molveno/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrjink/molveno/contents/{+path}","compare_url":"https://api.github.com/repos/mrjink/molveno/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrjink/molveno/merges","archive_url":"https://api.github.com/repos/mrjink/molveno/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrjink/molveno/downloads","issues_url":"https://api.github.com/repos/mrjink/molveno/issues{/number}","pulls_url":"https://api.github.com/repos/mrjink/molveno/pulls{/number}","milestones_url":"https://api.github.com/repos/mrjink/molveno/milestones{/number}","notifications_url":"https://api.github.com/repos/mrjink/molveno/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrjink/molveno/labels{/name}","releases_url":"https://api.github.com/repos/mrjink/molveno/releases{/id}","deployments_url":"https://api.github.com/repos/mrjink/molveno/deployments","created_at":"2018-11-13T12:51:06Z","updated_at":"2018-11-30T12:17:04Z","pushed_at":"2018-11-30T13:40:55Z","git_url":"git://github.com/mrjink/molveno.git","ssh_url":"git@github.com:mrjink/molveno.git","clone_url":"https://github.com/mrjink/molveno.git","svn_url":"https://github.com/mrjink/molveno","homepage":null,"size":7292,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"mrjink:master","ref":"master","sha":"e63bed8ca8833f977c491b8229e99ed57831634f","user":{"login":"mrjink","id":206721,"node_id":"MDQ6VXNlcjIwNjcyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/206721?v=4","gravatar_id":"","url":"https://api.github.com/users/mrjink","html_url":"https://github.com/mrjink","followers_url":"https://api.github.com/users/mrjink/followers","following_url":"https://api.github.com/users/mrjink/following{/other_user}","gists_url":"https://api.github.com/users/mrjink/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjink/subscriptions","organizations_url":"https://api.github.com/users/mrjink/orgs","repos_url":"https://api.github.com/users/mrjink/repos","events_url":"https://api.github.com/users/mrjink/events{/privacy}","received_events_url":"https://api.github.com/users/mrjink/received_events","type":"User","site_admin":false},"repo":{"id":157379697,"node_id":"MDEwOlJlcG9zaXRvcnkxNTczNzk2OTc=","name":"molveno","full_name":"mrjink/molveno","private":false,"owner":{"login":"mrjink","id":206721,"node_id":"MDQ6VXNlcjIwNjcyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/206721?v=4","gravatar_id":"","url":"https://api.github.com/users/mrjink","html_url":"https://github.com/mrjink","followers_url":"https://api.github.com/users/mrjink/followers","following_url":"https://api.github.com/users/mrjink/following{/other_user}","gists_url":"https://api.github.com/users/mrjink/gists{/gist_id}","starred_url":"https://api.github.com/users/mrjink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrjink/subscriptions","organizations_url":"https://api.github.com/users/mrjink/orgs","repos_url":"https://api.github.com/users/mrjink/repos","events_url":"https://api.github.com/users/mrjink/events{/privacy}","received_events_url":"https://api.github.com/users/mrjink/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mrjink/molveno","description":"Molveno Lake Resort China","fork":false,"url":"https://api.github.com/repos/mrjink/molveno","forks_url":"https://api.github.com/repos/mrjink/molveno/forks","keys_url":"https://api.github.com/repos/mrjink/molveno/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrjink/molveno/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrjink/molveno/teams","hooks_url":"https://api.github.com/repos/mrjink/molveno/hooks","issue_events_url":"https://api.github.com/repos/mrjink/molveno/issues/events{/number}","events_url":"https://api.github.com/repos/mrjink/molveno/events","assignees_url":"https://api.github.com/repos/mrjink/molveno/assignees{/user}","branches_url":"https://api.github.com/repos/mrjink/molveno/branches{/branch}","tags_url":"https://api.github.com/repos/mrjink/molveno/tags","blobs_url":"https://api.github.com/repos/mrjink/molveno/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrjink/molveno/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrjink/molveno/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrjink/molveno/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrjink/molveno/statuses/{sha}","languages_url":"https://api.github.com/repos/mrjink/molveno/languages","stargazers_url":"https://api.github.com/repos/mrjink/molveno/stargazers","contributors_url":"https://api.github.com/repos/mrjink/molveno/contributors","subscribers_url":"https://api.github.com/repos/mrjink/molveno/subscribers","subscription_url":"https://api.github.com/repos/mrjink/molveno/subscription","commits_url":"https://api.github.com/repos/mrjink/molveno/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrjink/molveno/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrjink/molveno/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrjink/molveno/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrjink/molveno/contents/{+path}","compare_url":"https://api.github.com/repos/mrjink/molveno/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrjink/molveno/merges","archive_url":"https://api.github.com/repos/mrjink/molveno/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrjink/molveno/downloads","issues_url":"https://api.github.com/repos/mrjink/molveno/issues{/number}","pulls_url":"https://api.github.com/repos/mrjink/molveno/pulls{/number}","milestones_url":"https://api.github.com/repos/mrjink/molveno/milestones{/number}","notifications_url":"https://api.github.com/repos/mrjink/molveno/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrjink/molveno/labels{/name}","releases_url":"https://api.github.com/repos/mrjink/molveno/releases{/id}","deployments_url":"https://api.github.com/repos/mrjink/molveno/deployments","created_at":"2018-11-13T12:51:06Z","updated_at":"2018-11-30T12:17:04Z","pushed_at":"2018-11-30T13:40:55Z","git_url":"git://github.com/mrjink/molveno.git","ssh_url":"git@github.com:mrjink/molveno.git","clone_url":"https://github.com/mrjink/molveno.git","svn_url":"https://github.com/mrjink/molveno","homepage":null,"size":7292,"stargazers_count":2,"watchers_count":2,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/17"},"html":{"href":"https://github.com/mrjink/molveno/pull/17"},"issue":{"href":"https://api.github.com/repos/mrjink/molveno/issues/17"},"comments":{"href":"https://api.github.com/repos/mrjink/molveno/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mrjink/molveno/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/mrjink/molveno/statuses/fb7b0da5df4167e4879075203d52e22f22d521ed"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"sonarcloud"}}