{"action":"created","comment":{"url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/comments/201566271","pull_request_review_id":136091482,"id":201566271,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTU2NjI3MQ==","diff_hunk":"@@ -0,0 +1,103 @@\n+package pl.touk.controller;\n+\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.ui.Model;\n+import org.springframework.web.bind.annotation.*;\n+import pl.touk.entity.Driver;\n+import pl.touk.repository.DriverRepository;\n+\n+import javax.servlet.http.HttpSession;\n+import java.util.Date;\n+\n+/**\n+DriverController allows starting parking meter as a Driver\n+ DriverController allows ending parking meter as a Driver\n+ DriverController allows check how much you have to pay as a Driver\n+ */\n+@RestController\n+@RequestMapping(\"/driver\")\n+public class DriverController {\n+    @Autowired\n+    DriverRepository driverRepository;\n+\n+    /**\n+     * startParkingRegular saving date of starting parking in database for Regular driver\n+     * @param regNum - saves in database driver's registration number\n+     * @return - show driver's id from database\n+     */\n+\n+    @RequestMapping(value = \"/regular/startParking\", method = RequestMethod.GET)\n+    public String startParkingRegular(@RequestParam String regNum) {\n+        Date startDate = new Date();\n+        Driver driver = new Driver(startDate, \"regular\", regNum);\n+        driverRepository.save(driver);\n+        Long driverId = driver.getId();\n+\n+\n+        return \"Now you're parking. Your nr ID is \" + driverId.toString();","path":"src/main/java/pl/touk/controller/DriverController.java","position":38,"original_position":38,"commit_id":"93347e2d7d7a0f04ec1855087e8376772c45f632","original_commit_id":"93347e2d7d7a0f04ec1855087e8376772c45f632","user":{"login":"alien11689","id":2748791,"node_id":"MDQ6VXNlcjI3NDg3OTE=","avatar_url":"https://avatars0.githubusercontent.com/u/2748791?v=4","gravatar_id":"","url":"https://api.github.com/users/alien11689","html_url":"https://github.com/alien11689","followers_url":"https://api.github.com/users/alien11689/followers","following_url":"https://api.github.com/users/alien11689/following{/other_user}","gists_url":"https://api.github.com/users/alien11689/gists{/gist_id}","starred_url":"https://api.github.com/users/alien11689/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alien11689/subscriptions","organizations_url":"https://api.github.com/users/alien11689/orgs","repos_url":"https://api.github.com/users/alien11689/repos","events_url":"https://api.github.com/users/alien11689/events{/privacy}","received_events_url":"https://api.github.com/users/alien11689/received_events","type":"User","site_admin":false},"body":"Jakbym miał się integrować z tym API z oddzielnej usługi to byłoby mi ciężko parsować takie odpowiedzi","created_at":"2018-07-11T05:11:16Z","updated_at":"2018-07-11T05:20:15Z","html_url":"https://github.com/ajajzuzy/CityParking/pull/1#discussion_r201566271","pull_request_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/comments/201566271"},"html":{"href":"https://github.com/ajajzuzy/CityParking/pull/1#discussion_r201566271"},"pull_request":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1","id":200441614,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDQxNjE0","html_url":"https://github.com/ajajzuzy/CityParking/pull/1","diff_url":"https://github.com/ajajzuzy/CityParking/pull/1.diff","patch_url":"https://github.com/ajajzuzy/CityParking/pull/1.patch","issue_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/1","number":1,"state":"open","locked":false,"title":"Added all to develop","user":{"login":"ajajzuzy","id":37582599,"node_id":"MDQ6VXNlcjM3NTgyNTk5","avatar_url":"https://avatars0.githubusercontent.com/u/37582599?v=4","gravatar_id":"","url":"https://api.github.com/users/ajajzuzy","html_url":"https://github.com/ajajzuzy","followers_url":"https://api.github.com/users/ajajzuzy/followers","following_url":"https://api.github.com/users/ajajzuzy/following{/other_user}","gists_url":"https://api.github.com/users/ajajzuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajajzuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajajzuzy/subscriptions","organizations_url":"https://api.github.com/users/ajajzuzy/orgs","repos_url":"https://api.github.com/users/ajajzuzy/repos","events_url":"https://api.github.com/users/ajajzuzy/events{/privacy}","received_events_url":"https://api.github.com/users/ajajzuzy/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-10T15:44:57Z","updated_at":"2018-07-11T05:20:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9890df83efc3c382766e7cd981a43fdac3e2e6be","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/1/comments","statuses_url":"https://api.github.com/repos/ajajzuzy/CityParking/statuses/93347e2d7d7a0f04ec1855087e8376772c45f632","head":{"label":"ajajzuzy:develop","ref":"develop","sha":"93347e2d7d7a0f04ec1855087e8376772c45f632","user":{"login":"ajajzuzy","id":37582599,"node_id":"MDQ6VXNlcjM3NTgyNTk5","avatar_url":"https://avatars0.githubusercontent.com/u/37582599?v=4","gravatar_id":"","url":"https://api.github.com/users/ajajzuzy","html_url":"https://github.com/ajajzuzy","followers_url":"https://api.github.com/users/ajajzuzy/followers","following_url":"https://api.github.com/users/ajajzuzy/following{/other_user}","gists_url":"https://api.github.com/users/ajajzuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajajzuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajajzuzy/subscriptions","organizations_url":"https://api.github.com/users/ajajzuzy/orgs","repos_url":"https://api.github.com/users/ajajzuzy/repos","events_url":"https://api.github.com/users/ajajzuzy/events{/privacy}","received_events_url":"https://api.github.com/users/ajajzuzy/received_events","type":"User","site_admin":false},"repo":{"id":140454339,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0NTQzMzk=","name":"CityParking","full_name":"ajajzuzy/CityParking","owner":{"login":"ajajzuzy","id":37582599,"node_id":"MDQ6VXNlcjM3NTgyNTk5","avatar_url":"https://avatars0.githubusercontent.com/u/37582599?v=4","gravatar_id":"","url":"https://api.github.com/users/ajajzuzy","html_url":"https://github.com/ajajzuzy","followers_url":"https://api.github.com/users/ajajzuzy/followers","following_url":"https://api.github.com/users/ajajzuzy/following{/other_user}","gists_url":"https://api.github.com/users/ajajzuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajajzuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajajzuzy/subscriptions","organizations_url":"https://api.github.com/users/ajajzuzy/orgs","repos_url":"https://api.github.com/users/ajajzuzy/repos","events_url":"https://api.github.com/users/ajajzuzy/events{/privacy}","received_events_url":"https://api.github.com/users/ajajzuzy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajajzuzy/CityParking","description":"Aplikacja zapisująca informacje o pojazdach korzystających z parkingu","fork":false,"url":"https://api.github.com/repos/ajajzuzy/CityParking","forks_url":"https://api.github.com/repos/ajajzuzy/CityParking/forks","keys_url":"https://api.github.com/repos/ajajzuzy/CityParking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajajzuzy/CityParking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajajzuzy/CityParking/teams","hooks_url":"https://api.github.com/repos/ajajzuzy/CityParking/hooks","issue_events_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/events{/number}","events_url":"https://api.github.com/repos/ajajzuzy/CityParking/events","assignees_url":"https://api.github.com/repos/ajajzuzy/CityParking/assignees{/user}","branches_url":"https://api.github.com/repos/ajajzuzy/CityParking/branches{/branch}","tags_url":"https://api.github.com/repos/ajajzuzy/CityParking/tags","blobs_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajajzuzy/CityParking/statuses/{sha}","languages_url":"https://api.github.com/repos/ajajzuzy/CityParking/languages","stargazers_url":"https://api.github.com/repos/ajajzuzy/CityParking/stargazers","contributors_url":"https://api.github.com/repos/ajajzuzy/CityParking/contributors","subscribers_url":"https://api.github.com/repos/ajajzuzy/CityParking/subscribers","subscription_url":"https://api.github.com/repos/ajajzuzy/CityParking/subscription","commits_url":"https://api.github.com/repos/ajajzuzy/CityParking/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajajzuzy/CityParking/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajajzuzy/CityParking/contents/{+path}","compare_url":"https://api.github.com/repos/ajajzuzy/CityParking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajajzuzy/CityParking/merges","archive_url":"https://api.github.com/repos/ajajzuzy/CityParking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajajzuzy/CityParking/downloads","issues_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues{/number}","pulls_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls{/number}","milestones_url":"https://api.github.com/repos/ajajzuzy/CityParking/milestones{/number}","notifications_url":"https://api.github.com/repos/ajajzuzy/CityParking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajajzuzy/CityParking/labels{/name}","releases_url":"https://api.github.com/repos/ajajzuzy/CityParking/releases{/id}","deployments_url":"https://api.github.com/repos/ajajzuzy/CityParking/deployments","created_at":"2018-07-10T15:41:39Z","updated_at":"2018-07-10T15:42:50Z","pushed_at":"2018-07-10T15:44:57Z","git_url":"git://github.com/ajajzuzy/CityParking.git","ssh_url":"git@github.com:ajajzuzy/CityParking.git","clone_url":"https://github.com/ajajzuzy/CityParking.git","svn_url":"https://github.com/ajajzuzy/CityParking","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ajajzuzy:master","ref":"master","sha":"7de0ca55918603d35c34513a7f36fa11b3c8c240","user":{"login":"ajajzuzy","id":37582599,"node_id":"MDQ6VXNlcjM3NTgyNTk5","avatar_url":"https://avatars0.githubusercontent.com/u/37582599?v=4","gravatar_id":"","url":"https://api.github.com/users/ajajzuzy","html_url":"https://github.com/ajajzuzy","followers_url":"https://api.github.com/users/ajajzuzy/followers","following_url":"https://api.github.com/users/ajajzuzy/following{/other_user}","gists_url":"https://api.github.com/users/ajajzuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajajzuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajajzuzy/subscriptions","organizations_url":"https://api.github.com/users/ajajzuzy/orgs","repos_url":"https://api.github.com/users/ajajzuzy/repos","events_url":"https://api.github.com/users/ajajzuzy/events{/privacy}","received_events_url":"https://api.github.com/users/ajajzuzy/received_events","type":"User","site_admin":false},"repo":{"id":140454339,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0NTQzMzk=","name":"CityParking","full_name":"ajajzuzy/CityParking","owner":{"login":"ajajzuzy","id":37582599,"node_id":"MDQ6VXNlcjM3NTgyNTk5","avatar_url":"https://avatars0.githubusercontent.com/u/37582599?v=4","gravatar_id":"","url":"https://api.github.com/users/ajajzuzy","html_url":"https://github.com/ajajzuzy","followers_url":"https://api.github.com/users/ajajzuzy/followers","following_url":"https://api.github.com/users/ajajzuzy/following{/other_user}","gists_url":"https://api.github.com/users/ajajzuzy/gists{/gist_id}","starred_url":"https://api.github.com/users/ajajzuzy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajajzuzy/subscriptions","organizations_url":"https://api.github.com/users/ajajzuzy/orgs","repos_url":"https://api.github.com/users/ajajzuzy/repos","events_url":"https://api.github.com/users/ajajzuzy/events{/privacy}","received_events_url":"https://api.github.com/users/ajajzuzy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajajzuzy/CityParking","description":"Aplikacja zapisująca informacje o pojazdach korzystających z parkingu","fork":false,"url":"https://api.github.com/repos/ajajzuzy/CityParking","forks_url":"https://api.github.com/repos/ajajzuzy/CityParking/forks","keys_url":"https://api.github.com/repos/ajajzuzy/CityParking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajajzuzy/CityParking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajajzuzy/CityParking/teams","hooks_url":"https://api.github.com/repos/ajajzuzy/CityParking/hooks","issue_events_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/events{/number}","events_url":"https://api.github.com/repos/ajajzuzy/CityParking/events","assignees_url":"https://api.github.com/repos/ajajzuzy/CityParking/assignees{/user}","branches_url":"https://api.github.com/repos/ajajzuzy/CityParking/branches{/branch}","tags_url":"https://api.github.com/repos/ajajzuzy/CityParking/tags","blobs_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajajzuzy/CityParking/statuses/{sha}","languages_url":"https://api.github.com/repos/ajajzuzy/CityParking/languages","stargazers_url":"https://api.github.com/repos/ajajzuzy/CityParking/stargazers","contributors_url":"https://api.github.com/repos/ajajzuzy/CityParking/contributors","subscribers_url":"https://api.github.com/repos/ajajzuzy/CityParking/subscribers","subscription_url":"https://api.github.com/repos/ajajzuzy/CityParking/subscription","commits_url":"https://api.github.com/repos/ajajzuzy/CityParking/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajajzuzy/CityParking/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajajzuzy/CityParking/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajajzuzy/CityParking/contents/{+path}","compare_url":"https://api.github.com/repos/ajajzuzy/CityParking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajajzuzy/CityParking/merges","archive_url":"https://api.github.com/repos/ajajzuzy/CityParking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajajzuzy/CityParking/downloads","issues_url":"https://api.github.com/repos/ajajzuzy/CityParking/issues{/number}","pulls_url":"https://api.github.com/repos/ajajzuzy/CityParking/pulls{/number}","milestones_url":"https://api.github.com/repos/ajajzuzy/CityParking/milestones{/number}","notifications_url":"https://api.github.com/repos/ajajzuzy/CityParking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajajzuzy/CityParking/labels{/name}","releases_url":"https://api.github.com/repos/ajajzuzy/CityParking/releases{/id}","deployments_url":"https://api.github.com/repos/ajajzuzy/CityParking/deployments","created_at":"2018-07-10T15:41:39Z","updated_at":"2018-07-10T15:42:50Z","pushed_at":"2018-07-10T15:44:57Z","git_url":"git://github.com/ajajzuzy/CityParking.git","ssh_url":"git@github.com:ajajzuzy/CityParking.git","clone_url":"https://github.com/ajajzuzy/CityParking.git","svn_url":"https://github.com/ajajzuzy/CityParking","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1"},"html":{"href":"https://github.com/ajajzuzy/CityParking/pull/1"},"issue":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/issues/1"},"comments":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ajajzuzy/CityParking/statuses/93347e2d7d7a0f04ec1855087e8376772c45f632"}},"author_association":"OWNER"}}
{"actor":{"display_login":"alien11689"}}