{"action":"opened","issue":{"url":"https://api.github.com/repos/temenostech/IRIS/issues/452","repository_url":"https://api.github.com/repos/temenostech/IRIS","labels_url":"https://api.github.com/repos/temenostech/IRIS/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/temenostech/IRIS/issues/452/comments","events_url":"https://api.github.com/repos/temenostech/IRIS/issues/452/events","html_url":"https://github.com/temenostech/IRIS/issues/452","id":173639744,"number":452,"title":"Response handler is not able to communicate the correct status after POST or PUT processing","user":{"login":"aphethean","id":1204328,"avatar_url":"https://avatars.githubusercontent.com/u/1204328?v=3","gravatar_id":"","url":"https://api.github.com/users/aphethean","html_url":"https://github.com/aphethean","followers_url":"https://api.github.com/users/aphethean/followers","following_url":"https://api.github.com/users/aphethean/following{/other_user}","gists_url":"https://api.github.com/users/aphethean/gists{/gist_id}","starred_url":"https://api.github.com/users/aphethean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aphethean/subscriptions","organizations_url":"https://api.github.com/users/aphethean/orgs","repos_url":"https://api.github.com/users/aphethean/repos","events_url":"https://api.github.com/users/aphethean/events{/privacy}","received_events_url":"https://api.github.com/users/aphethean/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/temenostech/IRIS/labels/enhancement","name":"enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-28T10:28:39Z","updated_at":"2016-08-28T10:28:39Z","closed_at":null,"body":"We need to improve the response handler to be able to communicate the correct status when commands handle requests according to their own semantics.\r\n\r\nSee here:  https://tools.ietf.org/html/rfc7231#section-4.3.3\r\n\r\nSpecifically this means that the commands know when they have created the resource or not during the processing of a request (i.e. the POST or PUT request); we need the ability for this processing to respond with the appropriate 200 (if the request was just to update a resource) or 201 (if the request resulted in creation within the resource manager)\r\n\r\nSuggest we implement this by a new Result code of CREATED, and continue to use the existing Result code of SUCCESSFUL when the command has performed the request correctly, but did not create anything within the resource manager."}}
{"actor":{"display_login":"aphethean"}}