{"action":"created","issue":{"url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/71","repository_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp","labels_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/71/comments","events_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/71/events","html_url":"https://github.com/y0rk1e/Chrodie.WebApp/issues/71","id":171272238,"number":71,"title":"Create WebAPI endpoint to retrieve company customers","user":{"login":"y0rk1e","id":13914641,"avatar_url":"https://avatars.githubusercontent.com/u/13914641?v=3","gravatar_id":"","url":"https://api.github.com/users/y0rk1e","html_url":"https://github.com/y0rk1e","followers_url":"https://api.github.com/users/y0rk1e/followers","following_url":"https://api.github.com/users/y0rk1e/following{/other_user}","gists_url":"https://api.github.com/users/y0rk1e/gists{/gist_id}","starred_url":"https://api.github.com/users/y0rk1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0rk1e/subscriptions","organizations_url":"https://api.github.com/users/y0rk1e/orgs","repos_url":"https://api.github.com/users/y0rk1e/repos","events_url":"https://api.github.com/users/y0rk1e/events{/privacy}","received_events_url":"https://api.github.com/users/y0rk1e/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"y0rk1e","id":13914641,"avatar_url":"https://avatars.githubusercontent.com/u/13914641?v=3","gravatar_id":"","url":"https://api.github.com/users/y0rk1e","html_url":"https://github.com/y0rk1e","followers_url":"https://api.github.com/users/y0rk1e/followers","following_url":"https://api.github.com/users/y0rk1e/following{/other_user}","gists_url":"https://api.github.com/users/y0rk1e/gists{/gist_id}","starred_url":"https://api.github.com/users/y0rk1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0rk1e/subscriptions","organizations_url":"https://api.github.com/users/y0rk1e/orgs","repos_url":"https://api.github.com/users/y0rk1e/repos","events_url":"https://api.github.com/users/y0rk1e/events{/privacy}","received_events_url":"https://api.github.com/users/y0rk1e/received_events","type":"User","site_admin":false},"assignees":[{"login":"y0rk1e","id":13914641,"avatar_url":"https://avatars.githubusercontent.com/u/13914641?v=3","gravatar_id":"","url":"https://api.github.com/users/y0rk1e","html_url":"https://github.com/y0rk1e","followers_url":"https://api.github.com/users/y0rk1e/followers","following_url":"https://api.github.com/users/y0rk1e/following{/other_user}","gists_url":"https://api.github.com/users/y0rk1e/gists{/gist_id}","starred_url":"https://api.github.com/users/y0rk1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0rk1e/subscriptions","organizations_url":"https://api.github.com/users/y0rk1e/orgs","repos_url":"https://api.github.com/users/y0rk1e/repos","events_url":"https://api.github.com/users/y0rk1e/events{/privacy}","received_events_url":"https://api.github.com/users/y0rk1e/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/milestones/9","html_url":"https://github.com/y0rk1e/Chrodie.WebApp/milestones/0.0.8","labels_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/milestones/9/labels","id":1939436,"number":9,"title":"0.0.8","description":"","creator":{"login":"MarkAPhillips","id":5224513,"avatar_url":"https://avatars.githubusercontent.com/u/5224513?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkAPhillips","html_url":"https://github.com/MarkAPhillips","followers_url":"https://api.github.com/users/MarkAPhillips/followers","following_url":"https://api.github.com/users/MarkAPhillips/following{/other_user}","gists_url":"https://api.github.com/users/MarkAPhillips/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkAPhillips/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkAPhillips/subscriptions","organizations_url":"https://api.github.com/users/MarkAPhillips/orgs","repos_url":"https://api.github.com/users/MarkAPhillips/repos","events_url":"https://api.github.com/users/MarkAPhillips/events{/privacy}","received_events_url":"https://api.github.com/users/MarkAPhillips/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":10,"state":"open","created_at":"2016-08-12T17:43:03Z","updated_at":"2016-08-17T21:19:19Z","due_on":"2016-08-19T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-08-15T22:00:36Z","updated_at":"2016-08-17T21:19:19Z","closed_at":"2016-08-17T21:19:19Z","body":"Extend Business API to support retrieval of 1 or more customers. When selecting a single customer, the API endpoint wiith an ID is used. Requesting all customers for a company can be done using the customers endpoint.\r\n\r\nEndpoint: api/company/4673ec8f-ba92-484d-8570-fbd48257fc4e/customers\r\nEndpoint: api/company/4673ec8f-ba92-484d-8570-fbd48257fc4e/customer/b7f32a7c-03f4-4bb6-99ec-126a7cab3ec4\r\nVerb: GET\r\n\r\n**Request Header**\r\nContent-Type application/json\r\nAccept application/json\r\nAuthorization Bearer <Token>\r\n\r\n**Response Body**\r\n [\r\n  {\r\n    \"id\": \"b7f32a7c-03f4-4bb6-99ec-126a7cab3ec4\",\r\n    \"name\": \"Awesome Ltd\",\r\n    \"contactName\": {\r\n      \"firstName\": \"Chris\",\r\n      \"lastName\": \"York\"\r\n    },\r\n    \"contactDetails\": {\r\n      \"addressLine1\": \"27 Some Other Street\",\r\n      \"addressLine2\": \"Village\",\r\n      \"addressLine3\": \"Guildford\",\r\n      \"postcode\": \"GU24 2GS\",\r\n      \"telephone\": \"01928 748273\",\r\n      \"email\": \"email1@email.com\",\r\n      \"email2\": \"email2@email.com\",\r\n      \"website\": \"www.TestCompany.com\"\r\n    },\r\n    \"defaultNominal\": 0,\r\n    \"defaultVat\": 0.2\r\n  },\r\n  {\r\n    \"id\": \"10b49774-0bd8-42c9-ade0-7e9bfc7866bc\",\r\n    \"name\": \"New Customer\",\r\n    \"contactName\": {\r\n      \"firstName\": \"FirstName\",\r\n      \"lastName\": \"LastName\"\r\n    },\r\n    \"contactDetails\": {\r\n      \"addressLine1\": \"27 Some Street\",\r\n      \"addressLine2\": \"SomeVillage\",\r\n      \"addressLine3\": \"SomeTown\",\r\n      \"postcode\": \"GU21 7PS\",\r\n      \"telephone\": \"01482 389281\",\r\n      \"email\": \"email1@email.com\",\r\n      \"email2\": \"email2@email.com\",\r\n      \"website\": \"www.TestCompany.com\"\r\n    },\r\n    \"defaultNominal\": 0,\r\n    \"defaultVat\": 0.2\r\n  }\r\n]"},"comment":{"url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/comments/240552030","html_url":"https://github.com/y0rk1e/Chrodie.WebApp/issues/71#issuecomment-240552030","issue_url":"https://api.github.com/repos/y0rk1e/Chrodie.WebApp/issues/71","id":240552030,"user":{"login":"y0rk1e","id":13914641,"avatar_url":"https://avatars.githubusercontent.com/u/13914641?v=3","gravatar_id":"","url":"https://api.github.com/users/y0rk1e","html_url":"https://github.com/y0rk1e","followers_url":"https://api.github.com/users/y0rk1e/followers","following_url":"https://api.github.com/users/y0rk1e/following{/other_user}","gists_url":"https://api.github.com/users/y0rk1e/gists{/gist_id}","starred_url":"https://api.github.com/users/y0rk1e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y0rk1e/subscriptions","organizations_url":"https://api.github.com/users/y0rk1e/orgs","repos_url":"https://api.github.com/users/y0rk1e/repos","events_url":"https://api.github.com/users/y0rk1e/events{/privacy}","received_events_url":"https://api.github.com/users/y0rk1e/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T21:19:19Z","updated_at":"2016-08-17T21:19:19Z","body":"This endpoint has been implemented and deployed to Azure."}}
{"actor":{"display_login":"y0rk1e"}}