{"action":"created","comment":{"url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/comments/179721339","pull_request_review_id":110018995,"id":179721339,"diff_hunk":"@@ -14,61 +17,102 @@\n @RequestMapping(\"/animals\")\n public class AnimalController {\n \n-    private AnimalService animalService;\n+\tprivate AnimalService animalService;\n \n-    public AnimalController(AnimalService animalService) {\n-        this.animalService = animalService;\n-    }\n+\tpublic AnimalController(AnimalService animalService) {\n+\t\tthis.animalService = animalService;\n+\t}\n \n-    @RequestMapping(path = \"\", method = RequestMethod.POST)\n-    public ResponseEntity<Animal> addAnimal(@RequestBody @Valid Animal animal){\n-        if(animalService.isValid(animal)){ //TODO duplication\n-            return new ResponseEntity<>(animalService.addAnimal(animal).get(),\n-                    HttpStatus.OK); //TODO return OK only ifPresent is true\n-        }else{\n-            return ResponseEntity.badRequest().build();\n-        }\n-    }\n+\t@RequestMapping(path = \"\", method = RequestMethod.POST)\n+\tpublic ResponseEntity<Animal> addAnimal(@RequestBody @Valid Animal animal) {\n+\t\ttry {\n+\t\t\treturn new ResponseEntity<>(animalService.addAnimal(animal).get(), HttpStatus.OK);\n+\t\t} catch (InvalidAnimalException e) {\n+\t\t\treturn ResponseEntity.badRequest().build();\n+\t\t}\n+\t}\n \n-    @RequestMapping(path = \"\", method = RequestMethod.GET)\n-    public ResponseEntity<List<Animal>> getAnimals(){\n-        return new ResponseEntity<>(animalService.getAnimals(),\n-                HttpStatus.OK);\n-    }\n+\t@RequestMapping(path = \"/{id}\", method = RequestMethod.PUT)\n+\tpublic ResponseEntity<Animal> updateAnimalById(@PathVariable(\"id\") long id,\n+\t\t\t\t\t\t\t\t\t\t\t\t   @RequestBody @Valid Animal animal) {\n+\t\tif (animalService.getAnimalById(id).isPresent()) {\n+\t\t\tanimal.setId(id);\n+\t\t\treturn this.addAnimal(animal);\n+\t\t} else {\n+\t\t\treturn ResponseEntity.notFound().build();\n+\t\t}\n+\t}\n \n-    @RequestMapping(path = \"/{id}\", method = RequestMethod.DELETE)\n-    public ResponseEntity<String> deleteAnimalById(@PathVariable(\"id\") long id){\n-        if(animalService.deleteAnimalById(id))\n-            return new ResponseEntity<>(\"Success\",HttpStatus.OK);\n-        else\n-            return new ResponseEntity<>(\"Fail: Id not found.\",HttpStatus.BAD_REQUEST); //TODO 404 code\n-    }\n+\t@RequestMapping(path = \"\", method = RequestMethod.GET)\n+\tpublic ResponseEntity<List<Animal>> getAnimals() {\n+\t\treturn new ResponseEntity<>(animalService.getAnimals(), HttpStatus.OK);\n+\t}\n \n-    @RequestMapping(path = \"/{id}\", method = RequestMethod.PUT)\n-    public ResponseEntity<Animal> updateAnimalById(@PathVariable(\"id\") long id,\n-                                                   @RequestBody @Valid Animal animal){\n-        Optional<Animal> updatedAnimal= animalService.updateAnimalById(id, animal);\n-        if(updatedAnimal!=null) //TODO replace with isPresent\n-            return new ResponseEntity<>(updatedAnimal.get(), HttpStatus.OK);\n-        else\n-            return ResponseEntity.badRequest().build(); //TODO if you want, redesign to return 404 when not found and bad request when invalid\n-    }\n+\t@RequestMapping(path = \"/{id}\", method = RequestMethod.DELETE)\n+\tpublic ResponseEntity<String> deleteAnimalById(@PathVariable(\"id\") long id) {\n+\t\tif (animalService.deleteAnimalById(id)) {\n+\t\t\treturn new ResponseEntity<>(\"Success\", HttpStatus.OK);\n+\t\t} else {\n+\t\t\treturn new ResponseEntity<>(\"Fail: Id not found.\", HttpStatus.NOT_FOUND);\n+\t\t}\n+\t}\n \n-    @RequestMapping(path = \"/{id}\", method = RequestMethod.GET)\n-    public ResponseEntity<Animal> getAnimalById(@PathVariable(\"id\") long id){\n-        Optional<Animal> searchedAnimal= animalService.getAnimalById(id);\n-        if(searchedAnimal!=null)\n-            return new ResponseEntity<>(searchedAnimal.get(),HttpStatus.OK);\n-        else\n-            return ResponseEntity.notFound().build();\n-    }\n+\t@RequestMapping(path = \"/{id}\", method = RequestMethod.GET)\n+\tpublic ResponseEntity<Animal> getAnimalById(@PathVariable(\"id\") long id) {\n+\t\tOptional<Animal> searchedAnimal = animalService.getAnimalById(id);\n+\t\tif (searchedAnimal.isPresent()) {\n+\t\t\treturn new ResponseEntity<>(searchedAnimal.get(), HttpStatus.OK);\n+\t\t} else {\n+\t\t\treturn ResponseEntity.notFound().build();\n+\t\t}\n+\t}\n \n-    @RequestMapping(path = \"/search/{name}\", method = RequestMethod.GET)\n-    public ResponseEntity<List<Animal>> getAnimalByName(@PathVariable(\"name\") String name){\n-        List<Animal> sameNameAnimals= animalService.getAnimalsByName(name);\n-        if(sameNameAnimals.size()!=0)\n-            return new ResponseEntity<>(sameNameAnimals, HttpStatus.OK);\n-        else\n-            return ResponseEntity.notFound().build();\n-    }\n+\t@RequestMapping(path = \"/name\", method = RequestMethod.GET)\n+\tpublic ResponseEntity<List<Animal>> getAnimalsByName(@RequestParam(\"name\") String name) {\n+\t\tList<Animal> sameNameAnimals = animalService.getAnimalsByName(name);\n+\t\tif (!sameNameAnimals.isEmpty()) {\n+\t\t\treturn new ResponseEntity<>(sameNameAnimals, HttpStatus.OK);\n+\t\t} else {\n+\t\t\treturn ResponseEntity.notFound().build();\n+\t\t}\n+\t}\n+\n+\t@RequestMapping(path = \"/{id}/careTakers\", method = RequestMethod.POST)\n+\tpublic ResponseEntity<CareTaker> addNewCareTakerToExistingAnimal(@PathVariable(\"id\") long id,\n+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t @RequestBody @Valid CareTaker careTaker) {\n+\t\tif (animalService.getAnimalById(id).isPresent()) {\n+\t\t\tOptional<CareTaker> addedCareTaker = null;\n+\t\t\ttry {\n+\t\t\t\taddedCareTaker = animalService.addNewCareTakerToExistingAnimal(id, careTaker);\n+\t\t\t\treturn new ResponseEntity<>(addedCareTaker.get(), HttpStatus.OK);\n+\t\t\t} catch (InvalidCareTakerException e) {\n+\t\t\t\treturn ResponseEntity.badRequest().build();\n+\t\t\t}\n+\t\t} else {\n+\t\t\treturn ResponseEntity.notFound().build();\n+\t\t}\n+\t}\n+\n+\t@RequestMapping(value = \"/{id}/careTakers\", method = RequestMethod.GET)\n+\tpublic ResponseEntity<List<CareTaker>> getCareTakersByAnimalId(@PathVariable(\"id\") long id) {\n+\t\tOptional<Animal> animalById = animalService.getAnimalById(id);\n+\t\tif (animalById.isPresent()) {\n+\t\t\treturn new ResponseEntity<>(animalById.get().getCareTakers()\n+\t\t\t\t\t, HttpStatus.OK);\n+\t\t} else {\n+\t\t\treturn ResponseEntity.notFound().build();\n+\t\t}\n+\t}\n+\n+\t@RequestMapping(path = \"/{animalId}/careTakers/{careTakerId}\", method = RequestMethod.PUT)\n+\tpublic ResponseEntity<String> addExistingCareTakerToExistingAnimal(@PathVariable(\"animalId\") long animalId,\n+\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t   @PathVariable(\"careTakerId\") long careTakerId) {\n+\t\tSystem.out.println(\">>>>>>> From animalController\");\n+\t\tString result = animalService.addExistingCareTakerToExistingAnimal(animalId, careTakerId);\n+\t\tif (result.startsWith(\"Success\")) {","path":"src/main/java/dk/cngroup/trainings/spring/springassignment/controller/AnimalController.java","position":157,"original_position":157,"commit_id":"87b86c4830ec7a15cf88d8427f34349dbf5696c4","original_commit_id":"87b86c4830ec7a15cf88d8427f34349dbf5696c4","user":{"login":"Wrent","id":4952658,"avatar_url":"https://avatars1.githubusercontent.com/u/4952658?v=4","gravatar_id":"","url":"https://api.github.com/users/Wrent","html_url":"https://github.com/Wrent","followers_url":"https://api.github.com/users/Wrent/followers","following_url":"https://api.github.com/users/Wrent/following{/other_user}","gists_url":"https://api.github.com/users/Wrent/gists{/gist_id}","starred_url":"https://api.github.com/users/Wrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wrent/subscriptions","organizations_url":"https://api.github.com/users/Wrent/orgs","repos_url":"https://api.github.com/users/Wrent/repos","events_url":"https://api.github.com/users/Wrent/events{/privacy}","received_events_url":"https://api.github.com/users/Wrent/received_events","type":"User","site_admin":false},"body":"I think that in the last review we decided, that matching on String is bad. Use an exception instead.","created_at":"2018-04-06T10:43:30Z","updated_at":"2018-04-06T11:00:14Z","html_url":"https://github.com/walidovich/spring-assignment/pull/1#discussion_r179721339","pull_request_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/walidovich/spring-assignment/pulls/comments/179721339"},"html":{"href":"https://github.com/walidovich/spring-assignment/pull/1#discussion_r179721339"},"pull_request":{"href":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1","id":177653785,"html_url":"https://github.com/walidovich/spring-assignment/pull/1","diff_url":"https://github.com/walidovich/spring-assignment/pull/1.diff","patch_url":"https://github.com/walidovich/spring-assignment/pull/1.patch","issue_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/1","number":1,"state":"open","locked":false,"title":"Dependant entity","user":{"login":"walidovich","id":8523640,"avatar_url":"https://avatars3.githubusercontent.com/u/8523640?v=4","gravatar_id":"","url":"https://api.github.com/users/walidovich","html_url":"https://github.com/walidovich","followers_url":"https://api.github.com/users/walidovich/followers","following_url":"https://api.github.com/users/walidovich/following{/other_user}","gists_url":"https://api.github.com/users/walidovich/gists{/gist_id}","starred_url":"https://api.github.com/users/walidovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walidovich/subscriptions","organizations_url":"https://api.github.com/users/walidovich/orgs","repos_url":"https://api.github.com/users/walidovich/repos","events_url":"https://api.github.com/users/walidovich/events{/privacy}","received_events_url":"https://api.github.com/users/walidovich/received_events","type":"User","site_admin":false},"body":"Test","created_at":"2018-03-27T07:34:01Z","updated_at":"2018-04-06T11:00:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"688a4a19c1d530abe40f7f0a661e51c60966bacf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1/commits","review_comments_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1/comments","review_comment_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/1/comments","statuses_url":"https://api.github.com/repos/walidovich/spring-assignment/statuses/87b86c4830ec7a15cf88d8427f34349dbf5696c4","head":{"label":"walidovich:dependant-entity","ref":"dependant-entity","sha":"87b86c4830ec7a15cf88d8427f34349dbf5696c4","user":{"login":"walidovich","id":8523640,"avatar_url":"https://avatars3.githubusercontent.com/u/8523640?v=4","gravatar_id":"","url":"https://api.github.com/users/walidovich","html_url":"https://github.com/walidovich","followers_url":"https://api.github.com/users/walidovich/followers","following_url":"https://api.github.com/users/walidovich/following{/other_user}","gists_url":"https://api.github.com/users/walidovich/gists{/gist_id}","starred_url":"https://api.github.com/users/walidovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walidovich/subscriptions","organizations_url":"https://api.github.com/users/walidovich/orgs","repos_url":"https://api.github.com/users/walidovich/repos","events_url":"https://api.github.com/users/walidovich/events{/privacy}","received_events_url":"https://api.github.com/users/walidovich/received_events","type":"User","site_admin":false},"repo":{"id":125727498,"name":"spring-assignment","full_name":"walidovich/spring-assignment","owner":{"login":"walidovich","id":8523640,"avatar_url":"https://avatars3.githubusercontent.com/u/8523640?v=4","gravatar_id":"","url":"https://api.github.com/users/walidovich","html_url":"https://github.com/walidovich","followers_url":"https://api.github.com/users/walidovich/followers","following_url":"https://api.github.com/users/walidovich/following{/other_user}","gists_url":"https://api.github.com/users/walidovich/gists{/gist_id}","starred_url":"https://api.github.com/users/walidovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walidovich/subscriptions","organizations_url":"https://api.github.com/users/walidovich/orgs","repos_url":"https://api.github.com/users/walidovich/repos","events_url":"https://api.github.com/users/walidovich/events{/privacy}","received_events_url":"https://api.github.com/users/walidovich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walidovich/spring-assignment","description":"Spring assignment training","fork":false,"url":"https://api.github.com/repos/walidovich/spring-assignment","forks_url":"https://api.github.com/repos/walidovich/spring-assignment/forks","keys_url":"https://api.github.com/repos/walidovich/spring-assignment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walidovich/spring-assignment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walidovich/spring-assignment/teams","hooks_url":"https://api.github.com/repos/walidovich/spring-assignment/hooks","issue_events_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/events{/number}","events_url":"https://api.github.com/repos/walidovich/spring-assignment/events","assignees_url":"https://api.github.com/repos/walidovich/spring-assignment/assignees{/user}","branches_url":"https://api.github.com/repos/walidovich/spring-assignment/branches{/branch}","tags_url":"https://api.github.com/repos/walidovich/spring-assignment/tags","blobs_url":"https://api.github.com/repos/walidovich/spring-assignment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walidovich/spring-assignment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walidovich/spring-assignment/git/refs{/sha}","trees_url":"https://api.github.com/repos/walidovich/spring-assignment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walidovich/spring-assignment/statuses/{sha}","languages_url":"https://api.github.com/repos/walidovich/spring-assignment/languages","stargazers_url":"https://api.github.com/repos/walidovich/spring-assignment/stargazers","contributors_url":"https://api.github.com/repos/walidovich/spring-assignment/contributors","subscribers_url":"https://api.github.com/repos/walidovich/spring-assignment/subscribers","subscription_url":"https://api.github.com/repos/walidovich/spring-assignment/subscription","commits_url":"https://api.github.com/repos/walidovich/spring-assignment/commits{/sha}","git_commits_url":"https://api.github.com/repos/walidovich/spring-assignment/git/commits{/sha}","comments_url":"https://api.github.com/repos/walidovich/spring-assignment/comments{/number}","issue_comment_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/comments{/number}","contents_url":"https://api.github.com/repos/walidovich/spring-assignment/contents/{+path}","compare_url":"https://api.github.com/repos/walidovich/spring-assignment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walidovich/spring-assignment/merges","archive_url":"https://api.github.com/repos/walidovich/spring-assignment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walidovich/spring-assignment/downloads","issues_url":"https://api.github.com/repos/walidovich/spring-assignment/issues{/number}","pulls_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls{/number}","milestones_url":"https://api.github.com/repos/walidovich/spring-assignment/milestones{/number}","notifications_url":"https://api.github.com/repos/walidovich/spring-assignment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walidovich/spring-assignment/labels{/name}","releases_url":"https://api.github.com/repos/walidovich/spring-assignment/releases{/id}","deployments_url":"https://api.github.com/repos/walidovich/spring-assignment/deployments","created_at":"2018-03-18T13:25:28Z","updated_at":"2018-03-27T07:31:43Z","pushed_at":"2018-03-29T12:51:54Z","git_url":"git://github.com/walidovich/spring-assignment.git","ssh_url":"git@github.com:walidovich/spring-assignment.git","clone_url":"https://github.com/walidovich/spring-assignment.git","svn_url":"https://github.com/walidovich/spring-assignment","homepage":null,"size":123,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"walidovich:master","ref":"master","sha":"a557121ff605d8e33f1fbba5d4347a45fafc7131","user":{"login":"walidovich","id":8523640,"avatar_url":"https://avatars3.githubusercontent.com/u/8523640?v=4","gravatar_id":"","url":"https://api.github.com/users/walidovich","html_url":"https://github.com/walidovich","followers_url":"https://api.github.com/users/walidovich/followers","following_url":"https://api.github.com/users/walidovich/following{/other_user}","gists_url":"https://api.github.com/users/walidovich/gists{/gist_id}","starred_url":"https://api.github.com/users/walidovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walidovich/subscriptions","organizations_url":"https://api.github.com/users/walidovich/orgs","repos_url":"https://api.github.com/users/walidovich/repos","events_url":"https://api.github.com/users/walidovich/events{/privacy}","received_events_url":"https://api.github.com/users/walidovich/received_events","type":"User","site_admin":false},"repo":{"id":125727498,"name":"spring-assignment","full_name":"walidovich/spring-assignment","owner":{"login":"walidovich","id":8523640,"avatar_url":"https://avatars3.githubusercontent.com/u/8523640?v=4","gravatar_id":"","url":"https://api.github.com/users/walidovich","html_url":"https://github.com/walidovich","followers_url":"https://api.github.com/users/walidovich/followers","following_url":"https://api.github.com/users/walidovich/following{/other_user}","gists_url":"https://api.github.com/users/walidovich/gists{/gist_id}","starred_url":"https://api.github.com/users/walidovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walidovich/subscriptions","organizations_url":"https://api.github.com/users/walidovich/orgs","repos_url":"https://api.github.com/users/walidovich/repos","events_url":"https://api.github.com/users/walidovich/events{/privacy}","received_events_url":"https://api.github.com/users/walidovich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/walidovich/spring-assignment","description":"Spring assignment training","fork":false,"url":"https://api.github.com/repos/walidovich/spring-assignment","forks_url":"https://api.github.com/repos/walidovich/spring-assignment/forks","keys_url":"https://api.github.com/repos/walidovich/spring-assignment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/walidovich/spring-assignment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/walidovich/spring-assignment/teams","hooks_url":"https://api.github.com/repos/walidovich/spring-assignment/hooks","issue_events_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/events{/number}","events_url":"https://api.github.com/repos/walidovich/spring-assignment/events","assignees_url":"https://api.github.com/repos/walidovich/spring-assignment/assignees{/user}","branches_url":"https://api.github.com/repos/walidovich/spring-assignment/branches{/branch}","tags_url":"https://api.github.com/repos/walidovich/spring-assignment/tags","blobs_url":"https://api.github.com/repos/walidovich/spring-assignment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/walidovich/spring-assignment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/walidovich/spring-assignment/git/refs{/sha}","trees_url":"https://api.github.com/repos/walidovich/spring-assignment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/walidovich/spring-assignment/statuses/{sha}","languages_url":"https://api.github.com/repos/walidovich/spring-assignment/languages","stargazers_url":"https://api.github.com/repos/walidovich/spring-assignment/stargazers","contributors_url":"https://api.github.com/repos/walidovich/spring-assignment/contributors","subscribers_url":"https://api.github.com/repos/walidovich/spring-assignment/subscribers","subscription_url":"https://api.github.com/repos/walidovich/spring-assignment/subscription","commits_url":"https://api.github.com/repos/walidovich/spring-assignment/commits{/sha}","git_commits_url":"https://api.github.com/repos/walidovich/spring-assignment/git/commits{/sha}","comments_url":"https://api.github.com/repos/walidovich/spring-assignment/comments{/number}","issue_comment_url":"https://api.github.com/repos/walidovich/spring-assignment/issues/comments{/number}","contents_url":"https://api.github.com/repos/walidovich/spring-assignment/contents/{+path}","compare_url":"https://api.github.com/repos/walidovich/spring-assignment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/walidovich/spring-assignment/merges","archive_url":"https://api.github.com/repos/walidovich/spring-assignment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/walidovich/spring-assignment/downloads","issues_url":"https://api.github.com/repos/walidovich/spring-assignment/issues{/number}","pulls_url":"https://api.github.com/repos/walidovich/spring-assignment/pulls{/number}","milestones_url":"https://api.github.com/repos/walidovich/spring-assignment/milestones{/number}","notifications_url":"https://api.github.com/repos/walidovich/spring-assignment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/walidovich/spring-assignment/labels{/name}","releases_url":"https://api.github.com/repos/walidovich/spring-assignment/releases{/id}","deployments_url":"https://api.github.com/repos/walidovich/spring-assignment/deployments","created_at":"2018-03-18T13:25:28Z","updated_at":"2018-03-27T07:31:43Z","pushed_at":"2018-03-29T12:51:54Z","git_url":"git://github.com/walidovich/spring-assignment.git","ssh_url":"git@github.com:walidovich/spring-assignment.git","clone_url":"https://github.com/walidovich/spring-assignment.git","svn_url":"https://github.com/walidovich/spring-assignment","homepage":null,"size":123,"stargazers_count":0,"watchers_count":0,"language":"Java","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/walidovich/spring-assignment/pulls/1"},"html":{"href":"https://github.com/walidovich/spring-assignment/pull/1"},"issue":{"href":"https://api.github.com/repos/walidovich/spring-assignment/issues/1"},"comments":{"href":"https://api.github.com/repos/walidovich/spring-assignment/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/walidovich/spring-assignment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/walidovich/spring-assignment/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/walidovich/spring-assignment/statuses/87b86c4830ec7a15cf88d8427f34349dbf5696c4"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Wrent"}}