{"action":"closed","issue":{"url":"https://api.github.com/repos/pbrandwijk/scalatra-shopping-web-app/issues/8","repository_url":"https://api.github.com/repos/pbrandwijk/scalatra-shopping-web-app","labels_url":"https://api.github.com/repos/pbrandwijk/scalatra-shopping-web-app/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/pbrandwijk/scalatra-shopping-web-app/issues/8/comments","events_url":"https://api.github.com/repos/pbrandwijk/scalatra-shopping-web-app/issues/8/events","html_url":"https://github.com/pbrandwijk/scalatra-shopping-web-app/issues/8","id":347723607,"node_id":"MDU6SXNzdWUzNDc3MjM2MDc=","number":8,"title":"Create REST endpoint for products","user":{"login":"pbrandwijk","id":3504029,"node_id":"MDQ6VXNlcjM1MDQwMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/3504029?v=4","gravatar_id":"","url":"https://api.github.com/users/pbrandwijk","html_url":"https://github.com/pbrandwijk","followers_url":"https://api.github.com/users/pbrandwijk/followers","following_url":"https://api.github.com/users/pbrandwijk/following{/other_user}","gists_url":"https://api.github.com/users/pbrandwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrandwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrandwijk/subscriptions","organizations_url":"https://api.github.com/users/pbrandwijk/orgs","repos_url":"https://api.github.com/users/pbrandwijk/repos","events_url":"https://api.github.com/users/pbrandwijk/events{/privacy}","received_events_url":"https://api.github.com/users/pbrandwijk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pbrandwijk","id":3504029,"node_id":"MDQ6VXNlcjM1MDQwMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/3504029?v=4","gravatar_id":"","url":"https://api.github.com/users/pbrandwijk","html_url":"https://github.com/pbrandwijk","followers_url":"https://api.github.com/users/pbrandwijk/followers","following_url":"https://api.github.com/users/pbrandwijk/following{/other_user}","gists_url":"https://api.github.com/users/pbrandwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrandwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrandwijk/subscriptions","organizations_url":"https://api.github.com/users/pbrandwijk/orgs","repos_url":"https://api.github.com/users/pbrandwijk/repos","events_url":"https://api.github.com/users/pbrandwijk/events{/privacy}","received_events_url":"https://api.github.com/users/pbrandwijk/received_events","type":"User","site_admin":false},"assignees":[{"login":"pbrandwijk","id":3504029,"node_id":"MDQ6VXNlcjM1MDQwMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/3504029?v=4","gravatar_id":"","url":"https://api.github.com/users/pbrandwijk","html_url":"https://github.com/pbrandwijk","followers_url":"https://api.github.com/users/pbrandwijk/followers","following_url":"https://api.github.com/users/pbrandwijk/following{/other_user}","gists_url":"https://api.github.com/users/pbrandwijk/gists{/gist_id}","starred_url":"https://api.github.com/users/pbrandwijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbrandwijk/subscriptions","organizations_url":"https://api.github.com/users/pbrandwijk/orgs","repos_url":"https://api.github.com/users/pbrandwijk/repos","events_url":"https://api.github.com/users/pbrandwijk/events{/privacy}","received_events_url":"https://api.github.com/users/pbrandwijk/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-05T19:18:07Z","updated_at":"2018-08-05T19:37:49Z","closed_at":"2018-08-05T19:37:49Z","author_association":"OWNER","body":"## Acceptance criteria\r\n- GET /products \r\n  - Actions\r\n    - Respond with all products in JSON format\r\n- POST /products/addProduct\r\n  - Parameters\r\n    - id\r\n    - description\r\n    - price\r\n    - stock\r\n  - Actions\r\n    - Add the product to the model\r\n    - Respond with product in JSON format in body\r\n    - Respond with key ACK in header\r\n  - Exceptions\r\n    - If request body cannot be parsed into JSON, respond with error message in header.\r\n    - If JSON cannot be mapped to product model, respond with error message in header.\r\n    - If given price or stock cannot be parsed, respond with error message in header.\r\n    - If product cannot be added by model, respond with error message in header.\r\n- Automated regression tests for all actions and exceptions\r\n"}}
{"actor":{"display_login":"pbrandwijk"}}