{"action":"created","comment":{"url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/comments/58540669","id":58540669,"diff_hunk":"@@ -0,0 +1,99 @@\n+package com.ekart.facp.sortation.layout.service.apis.controller;\n+\n+import com.codahale.metrics.annotation.ExceptionMetered;\n+import com.codahale.metrics.annotation.Timed;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.api_dtos.CreateLayoutRequestApiDto;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.api_dtos.CreateLayoutResponseApiDto;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.api_dtos.GetLayoutResponseApiDto;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.api_dtos.UpdateLayoutRequestApiDto;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.service_dtos.CreateLayoutRequest;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.service_dtos.CreateLayoutResponse;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.service_dtos.GetLayoutResponse;\n+import com.ekart.facp.sortation.layout.service.apis.dtos.service_dtos.UpdateLayoutResponse;\n+import com.ekart.facp.sortation.layout.service.service.Exceptions.IncorrectLayoutException;\n+import com.ekart.facp.sortation.layout.service.service.business_service.SortationLayoutService;\n+import com.ekart.facp.sortation.layout.service.service.mappers.LayoutMapper;\n+import io.swagger.annotations.Api;\n+import io.swagger.annotations.ApiOperation;\n+import io.swagger.annotations.ApiResponse;\n+import io.swagger.annotations.ApiResponses;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.springframework.http.HttpStatus;\n+import org.springframework.http.ResponseEntity;\n+import org.springframework.web.bind.annotation.*;\n+\n+import javax.annotation.ParametersAreNonnullByDefault;\n+import javax.annotation.concurrent.ThreadSafe;\n+import javax.validation.Valid;\n+import javax.validation.constraints.NotNull;\n+import javax.ws.rs.core.MediaType;\n+\n+/**\n+ * Created by nitesh.vishnoi on 29/03/16.\n+ */\n+@Api(protocols = \"http\")\n+@ThreadSafe\n+@RestController\n+@RequestMapping(\"/api/v1/sortation-layout\")\n+@ParametersAreNonnullByDefault\n+public class SoratationLayoutController extends BaseController{\n+    private static final Logger LOGGER = LoggerFactory.getLogger(SoratationLayoutController.class);\n+    private final SortationLayoutService sortationLayoutService;\n+\n+    public SoratationLayoutController(SortationLayoutService sortationLayoutService){\n+        this.sortationLayoutService = sortationLayoutService;\n+    }\n+\n+    @ApiOperation(nickname = \"/sortation-layout\", value = \"Create layout for a facility\",\n+            notes = \"Returns 200 ok if created\")\n+    @ApiResponses({\n+            @ApiResponse(code = 201, message = \"Layout is successfully created\", response = CreateLayoutResponseApiDto.class),\n+            @ApiResponse(code = 400, message = \"Mandatory Attributes are missing\"),","path":"src/main/java/com/ekart/facp/sortation/layout/service/apis/controller/SoratationLayoutController.java","position":52,"original_position":52,"commit_id":"7495f24630cb909047d0cb63d2ca41efd4d8e36b","original_commit_id":"7495f24630cb909047d0cb63d2ca41efd4d8e36b","user":{"login":"vijaydaniel-flipkart","id":9269101,"avatar_url":"https://avatars.githubusercontent.com/u/9269101?v=3","gravatar_id":"","url":"https://api.github.com/users/vijaydaniel-flipkart","html_url":"https://github.com/vijaydaniel-flipkart","followers_url":"https://api.github.com/users/vijaydaniel-flipkart/followers","following_url":"https://api.github.com/users/vijaydaniel-flipkart/following{/other_user}","gists_url":"https://api.github.com/users/vijaydaniel-flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/vijaydaniel-flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijaydaniel-flipkart/subscriptions","organizations_url":"https://api.github.com/users/vijaydaniel-flipkart/orgs","repos_url":"https://api.github.com/users/vijaydaniel-flipkart/repos","events_url":"https://api.github.com/users/vijaydaniel-flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/vijaydaniel-flipkart/received_events","type":"User","site_admin":false},"body":"Checked this :) Unfortunately, only one of the messages for 400 is displayed. So, have one annotation for 400 and put all your messages there.","created_at":"2016-04-05T13:50:00Z","updated_at":"2016-04-05T13:50:00Z","html_url":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1#discussion_r58540669","pull_request_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/comments/58540669"},"html":{"href":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1#discussion_r58540669"},"pull_request":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1","id":65288937,"html_url":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1","diff_url":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1.diff","patch_url":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1.patch","issue_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/1","number":1,"state":"open","locked":false,"title":"Apis of layout service(without tests)","user":{"login":"nitesh1990","id":3133561,"avatar_url":"https://avatars.githubusercontent.com/u/3133561?v=3","gravatar_id":"","url":"https://api.github.com/users/nitesh1990","html_url":"https://github.com/nitesh1990","followers_url":"https://api.github.com/users/nitesh1990/followers","following_url":"https://api.github.com/users/nitesh1990/following{/other_user}","gists_url":"https://api.github.com/users/nitesh1990/gists{/gist_id}","starred_url":"https://api.github.com/users/nitesh1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitesh1990/subscriptions","organizations_url":"https://api.github.com/users/nitesh1990/orgs","repos_url":"https://api.github.com/users/nitesh1990/repos","events_url":"https://api.github.com/users/nitesh1990/events{/privacy}","received_events_url":"https://api.github.com/users/nitesh1990/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-05T11:30:45Z","updated_at":"2016-04-05T13:50:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"577650f34b0dcaaca612b8ccefc11528b05e3ebe","assignee":{"login":"vijaydaniel-flipkart","id":9269101,"avatar_url":"https://avatars.githubusercontent.com/u/9269101?v=3","gravatar_id":"","url":"https://api.github.com/users/vijaydaniel-flipkart","html_url":"https://github.com/vijaydaniel-flipkart","followers_url":"https://api.github.com/users/vijaydaniel-flipkart/followers","following_url":"https://api.github.com/users/vijaydaniel-flipkart/following{/other_user}","gists_url":"https://api.github.com/users/vijaydaniel-flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/vijaydaniel-flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vijaydaniel-flipkart/subscriptions","organizations_url":"https://api.github.com/users/vijaydaniel-flipkart/orgs","repos_url":"https://api.github.com/users/vijaydaniel-flipkart/repos","events_url":"https://api.github.com/users/vijaydaniel-flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/vijaydaniel-flipkart/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/1/comments","statuses_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/statuses/7495f24630cb909047d0cb63d2ca41efd4d8e36b","head":{"label":"Flipkart:master","ref":"master","sha":"7495f24630cb909047d0cb63d2ca41efd4d8e36b","user":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars.githubusercontent.com/u/1179997?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"repo":{"id":55398751,"name":"facp-sortation-layout-service","full_name":"Flipkart/facp-sortation-layout-service","owner":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars.githubusercontent.com/u/1179997?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flipkart/facp-sortation-layout-service","description":"","fork":false,"url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service","forks_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/forks","keys_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/teams","hooks_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/hooks","issue_events_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/events{/number}","events_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/events","assignees_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/assignees{/user}","branches_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/branches{/branch}","tags_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/tags","blobs_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/statuses/{sha}","languages_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/languages","stargazers_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/stargazers","contributors_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/contributors","subscribers_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/subscribers","subscription_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/subscription","commits_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/contents/{+path}","compare_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/merges","archive_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/downloads","issues_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues{/number}","pulls_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls{/number}","milestones_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/milestones{/number}","notifications_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/labels{/name}","releases_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/releases{/id}","deployments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/deployments","created_at":"2016-04-04T09:21:24Z","updated_at":"2016-04-04T09:24:09Z","pushed_at":"2016-04-05T11:30:45Z","git_url":"git://github.com/Flipkart/facp-sortation-layout-service.git","ssh_url":"git@github.com:Flipkart/facp-sortation-layout-service.git","clone_url":"https://github.com/Flipkart/facp-sortation-layout-service.git","svn_url":"https://github.com/Flipkart/facp-sortation-layout-service","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Flipkart:set-up","ref":"set-up","sha":"80524f2833d6e5215d55dd9ffeeb1949b2b63cb5","user":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars.githubusercontent.com/u/1179997?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"repo":{"id":55398751,"name":"facp-sortation-layout-service","full_name":"Flipkart/facp-sortation-layout-service","owner":{"login":"Flipkart","id":1179997,"avatar_url":"https://avatars.githubusercontent.com/u/1179997?v=3","gravatar_id":"","url":"https://api.github.com/users/Flipkart","html_url":"https://github.com/Flipkart","followers_url":"https://api.github.com/users/Flipkart/followers","following_url":"https://api.github.com/users/Flipkart/following{/other_user}","gists_url":"https://api.github.com/users/Flipkart/gists{/gist_id}","starred_url":"https://api.github.com/users/Flipkart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flipkart/subscriptions","organizations_url":"https://api.github.com/users/Flipkart/orgs","repos_url":"https://api.github.com/users/Flipkart/repos","events_url":"https://api.github.com/users/Flipkart/events{/privacy}","received_events_url":"https://api.github.com/users/Flipkart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Flipkart/facp-sortation-layout-service","description":"","fork":false,"url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service","forks_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/forks","keys_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/teams","hooks_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/hooks","issue_events_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/events{/number}","events_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/events","assignees_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/assignees{/user}","branches_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/branches{/branch}","tags_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/tags","blobs_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/statuses/{sha}","languages_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/languages","stargazers_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/stargazers","contributors_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/contributors","subscribers_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/subscribers","subscription_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/subscription","commits_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/contents/{+path}","compare_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/merges","archive_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/downloads","issues_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues{/number}","pulls_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls{/number}","milestones_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/milestones{/number}","notifications_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/labels{/name}","releases_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/releases{/id}","deployments_url":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/deployments","created_at":"2016-04-04T09:21:24Z","updated_at":"2016-04-04T09:24:09Z","pushed_at":"2016-04-05T11:30:45Z","git_url":"git://github.com/Flipkart/facp-sortation-layout-service.git","ssh_url":"git@github.com:Flipkart/facp-sortation-layout-service.git","clone_url":"https://github.com/Flipkart/facp-sortation-layout-service.git","svn_url":"https://github.com/Flipkart/facp-sortation-layout-service","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1"},"html":{"href":"https://github.com/Flipkart/facp-sortation-layout-service/pull/1"},"issue":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/1"},"comments":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Flipkart/facp-sortation-layout-service/statuses/7495f24630cb909047d0cb63d2ca41efd4d8e36b"}}}}