{"action":"created","issue":{"url":"https://api.github.com/repos/monicahq/monica/issues/1932","repository_url":"https://api.github.com/repos/monicahq/monica","labels_url":"https://api.github.com/repos/monicahq/monica/issues/1932/labels{/name}","comments_url":"https://api.github.com/repos/monicahq/monica/issues/1932/comments","events_url":"https://api.github.com/repos/monicahq/monica/issues/1932/events","html_url":"https://github.com/monicahq/monica/pull/1932","id":372565700,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NzE1NDA5","number":1932,"title":"fix: fix api routes","user":{"login":"asbiin","id":25419741,"node_id":"MDQ6VXNlcjI1NDE5NzQx","avatar_url":"https://avatars3.githubusercontent.com/u/25419741?v=4","gravatar_id":"","url":"https://api.github.com/users/asbiin","html_url":"https://github.com/asbiin","followers_url":"https://api.github.com/users/asbiin/followers","following_url":"https://api.github.com/users/asbiin/following{/other_user}","gists_url":"https://api.github.com/users/asbiin/gists{/gist_id}","starred_url":"https://api.github.com/users/asbiin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asbiin/subscriptions","organizations_url":"https://api.github.com/users/asbiin/orgs","repos_url":"https://api.github.com/users/asbiin/repos","events_url":"https://api.github.com/users/asbiin/events{/privacy}","received_events_url":"https://api.github.com/users/asbiin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T15:19:42Z","updated_at":"2018-10-27T03:28:06Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/monicahq/monica/pulls/1932","html_url":"https://github.com/monicahq/monica/pull/1932","diff_url":"https://github.com/monicahq/monica/pull/1932.diff","patch_url":"https://github.com/monicahq/monica/pull/1932.patch"},"body":"Fixes:\r\n- `POST /activities/` and `PUT /activities/:id` now checks for ActivityType `activity_type_id` to be from the same account\r\n- `DELETE /activities/:id` now works\r\n- `GET /activitytypes/` is filtered to the account\r\n- `GET /lifeevents/:id` now works\r\n\r\nChanges:\r\n- `POST /contacts/{contact}/pets` is replaced with `POST /pets/`, with the use of `contact_id` (the route already exists)\r\n- `PUT /contacts/{contact}/pets/{pet}` is replaced with `PUT /pets/`, with the use of `contact_id` (the route already exists)\r\n- Every validator fails now send a HTTP 400 code (was 200) with the error 32\r\n- Every Invald Parameters errors  now send a HTTP 400 (was 500 or 200) code with the error 41\r\n- Every QueryException now send a HTTP 500 code with the error 40"},"comment":{"url":"https://api.github.com/repos/monicahq/monica/issues/comments/433586935","html_url":"https://github.com/monicahq/monica/pull/1932#issuecomment-433586935","issue_url":"https://api.github.com/repos/monicahq/monica/issues/1932","id":433586935,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzU4NjkzNQ==","user":{"login":"djaiss","id":61099,"node_id":"MDQ6VXNlcjYxMDk5","avatar_url":"https://avatars3.githubusercontent.com/u/61099?v=4","gravatar_id":"","url":"https://api.github.com/users/djaiss","html_url":"https://github.com/djaiss","followers_url":"https://api.github.com/users/djaiss/followers","following_url":"https://api.github.com/users/djaiss/following{/other_user}","gists_url":"https://api.github.com/users/djaiss/gists{/gist_id}","starred_url":"https://api.github.com/users/djaiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djaiss/subscriptions","organizations_url":"https://api.github.com/users/djaiss/orgs","repos_url":"https://api.github.com/users/djaiss/repos","events_url":"https://api.github.com/users/djaiss/events{/privacy}","received_events_url":"https://api.github.com/users/djaiss/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T03:28:06Z","updated_at":"2018-10-27T03:28:06Z","author_association":"MEMBER","body":"@asbiin don't forget the CHANGELOG though!"}}
{"actor":{"display_login":"djaiss"}}