{"action":"created","issue":{"url":"https://api.github.com/repos/Aidbox/documentation/issues/1","repository_url":"https://api.github.com/repos/Aidbox/documentation","labels_url":"https://api.github.com/repos/Aidbox/documentation/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Aidbox/documentation/issues/1/comments","events_url":"https://api.github.com/repos/Aidbox/documentation/issues/1/events","html_url":"https://github.com/Aidbox/documentation/issues/1","id":373552504,"node_id":"MDU6SXNzdWUzNzM1NTI1MDQ=","number":1,"title":"Aidbox `create` doesn't work like what the docs say","user":{"login":"orlandow","id":2000738,"node_id":"MDQ6VXNlcjIwMDA3Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/2000738?v=4","gravatar_id":"","url":"https://api.github.com/users/orlandow","html_url":"https://github.com/orlandow","followers_url":"https://api.github.com/users/orlandow/followers","following_url":"https://api.github.com/users/orlandow/following{/other_user}","gists_url":"https://api.github.com/users/orlandow/gists{/gist_id}","starred_url":"https://api.github.com/users/orlandow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlandow/subscriptions","organizations_url":"https://api.github.com/users/orlandow/orgs","repos_url":"https://api.github.com/users/orlandow/repos","events_url":"https://api.github.com/users/orlandow/events{/privacy}","received_events_url":"https://api.github.com/users/orlandow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-24T15:49:48Z","updated_at":"2018-10-24T16:16:57Z","closed_at":"2018-10-24T16:16:57Z","author_association":"NONE","body":"The documentation says:\r\n\r\n![image](https://user-images.githubusercontent.com/2000738/47443499-6da43b00-d782-11e8-80ed-c9f13dd5fd5c.png)\r\n\r\nBut `post`ing a resource with the same `id` twice only _recreates_ it:\r\n\r\n## First Post\r\n\r\n```\r\n  POST /Patient\r\n  Content-Type: text/yaml\r\n\r\n  id: foo\r\n  gender: male\r\n\r\n------------------------------------------\r\n\r\n{\r\n  \"gender\": \"male\",\r\n  \"id\": \"foo\",\r\n  \"resourceType\": \"Patient\",\r\n  \"meta\": {\r\n    \"lastUpdated\": \"2018-10-24T15:47:34.059Z\",\r\n    \"versionId\": \"18684\",\r\n    \"tag\": [\r\n      {\r\n        \"system\": \"https://aidbox.io\",\r\n        \"code\": \"created\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n## Second Post\r\n```\r\n  POST /Patient\r\n  Content-Type: text/yaml\r\n\r\n  id: foo\r\n  gender: male\r\n\r\n------------------------------------------\r\n\r\n{\r\n  \"gender\": \"male\",\r\n  \"id\": \"foo\",\r\n  \"resourceType\": \"Patient\",\r\n  \"meta\": {\r\n    \"lastUpdated\": \"2018-10-24T15:47:51.095Z\",\r\n    \"versionId\": \"18685\",\r\n    \"tag\": [\r\n      {\r\n        \"system\": \"https://aidbox.io\",\r\n        \"code\": \"recreated\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Aidbox/documentation/issues/comments/432725166","html_url":"https://github.com/Aidbox/documentation/issues/1#issuecomment-432725166","issue_url":"https://api.github.com/repos/Aidbox/documentation/issues/1","id":432725166,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjcyNTE2Ng==","user":{"login":"orlandow","id":2000738,"node_id":"MDQ6VXNlcjIwMDA3Mzg=","avatar_url":"https://avatars3.githubusercontent.com/u/2000738?v=4","gravatar_id":"","url":"https://api.github.com/users/orlandow","html_url":"https://github.com/orlandow","followers_url":"https://api.github.com/users/orlandow/followers","following_url":"https://api.github.com/users/orlandow/following{/other_user}","gists_url":"https://api.github.com/users/orlandow/gists{/gist_id}","starred_url":"https://api.github.com/users/orlandow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orlandow/subscriptions","organizations_url":"https://api.github.com/users/orlandow/orgs","repos_url":"https://api.github.com/users/orlandow/repos","events_url":"https://api.github.com/users/orlandow/events{/privacy}","received_events_url":"https://api.github.com/users/orlandow/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T16:16:57Z","updated_at":"2018-10-24T16:16:57Z","author_association":"NONE","body":"Oh, ok. I think that's going to break a code we have relying on the idempotence of `POST` operations... but I think we can replace it with `PUT`s"}}
{"actor":{"display_login":"orlandow"}}