{"action":"created","comment":{"url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/comments/36788722","id":36788722,"diff_hunk":"@@ -1,4 +1,17 @@\n from datetime import datetime\n+import warnings\n+import functools\n+\n+\n+def deprecated(deprecated_func):\n+    message = deprecated_func.__name__ + ' is deprecated and is scheduled to be removed in the next major release of the library.'","path":"savory_pie/utils.py","position":null,"original_position":7,"commit_id":"cd362d99aee44ac2437246a92c7714b0b10b783f","original_commit_id":"16e369467e97996b1ffc7406eee7da011f51fe39","user":{"login":"rue-mishakorablin","id":11637532,"avatar_url":"https://avatars.githubusercontent.com/u/11637532?v=3","gravatar_id":"","url":"https://api.github.com/users/rue-mishakorablin","html_url":"https://github.com/rue-mishakorablin","followers_url":"https://api.github.com/users/rue-mishakorablin/followers","following_url":"https://api.github.com/users/rue-mishakorablin/following{/other_user}","gists_url":"https://api.github.com/users/rue-mishakorablin/gists{/gist_id}","starred_url":"https://api.github.com/users/rue-mishakorablin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rue-mishakorablin/subscriptions","organizations_url":"https://api.github.com/users/rue-mishakorablin/orgs","repos_url":"https://api.github.com/users/rue-mishakorablin/repos","events_url":"https://api.github.com/users/rue-mishakorablin/events{/privacy}","received_events_url":"https://api.github.com/users/rue-mishakorablin/received_events","type":"User","site_admin":false},"body":"Thanks, @shann0n ","created_at":"2015-08-11T19:38:13Z","updated_at":"2015-08-11T19:38:13Z","html_url":"https://github.com/RueLaLa/savory-pie/pull/158#discussion_r36788722","pull_request_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/comments/36788722"},"html":{"href":"https://github.com/RueLaLa/savory-pie/pull/158#discussion_r36788722"},"pull_request":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158","id":42154429,"html_url":"https://github.com/RueLaLa/savory-pie/pull/158","diff_url":"https://github.com/RueLaLa/savory-pie/pull/158.diff","patch_url":"https://github.com/RueLaLa/savory-pie/pull/158.patch","issue_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/158","number":158,"state":"open","locked":false,"title":"Updates to API","user":{"login":"rue-mishakorablin","id":11637532,"avatar_url":"https://avatars.githubusercontent.com/u/11637532?v=3","gravatar_id":"","url":"https://api.github.com/users/rue-mishakorablin","html_url":"https://github.com/rue-mishakorablin","followers_url":"https://api.github.com/users/rue-mishakorablin/followers","following_url":"https://api.github.com/users/rue-mishakorablin/following{/other_user}","gists_url":"https://api.github.com/users/rue-mishakorablin/gists{/gist_id}","starred_url":"https://api.github.com/users/rue-mishakorablin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rue-mishakorablin/subscriptions","organizations_url":"https://api.github.com/users/rue-mishakorablin/orgs","repos_url":"https://api.github.com/users/rue-mishakorablin/repos","events_url":"https://api.github.com/users/rue-mishakorablin/events{/privacy}","received_events_url":"https://api.github.com/users/rue-mishakorablin/received_events","type":"User","site_admin":false},"body":"# Better exception handling\r\n* Adding `ApiException` that clients can throw with the data needed to be written in the response body\r\n* Handling `ApiException` as handled error\r\n* Keep general `Exception` handling, but wrapping the message into ApiException for proper response to the client\r\n\r\n# Adding BasicResource\r\n* `BasicResource` deals with API endpoints that are not reliant on Django ORM\r\n* `BasicResource` wraps `dict` object and makes it behave as regular object\r\n* Keeps the same interface as `Resource` object\r\n* The goal is for `BasicResource` to become abstract `Resource` in the future. And `Resource` will become `DjangoResource`\r\n\r\n# Response body for `POST` requests\r\n* Using `JSONFormatter` to output the resource into the response body on `POST` requests.","created_at":"2015-08-11T17:21:59Z","updated_at":"2015-08-11T19:38:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51ac779c02e8f4f1e73ef2c89ef2a07af4dfd5c6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158/commits","review_comments_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158/comments","review_comment_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/158/comments","statuses_url":"https://api.github.com/repos/RueLaLa/savory-pie/statuses/cd362d99aee44ac2437246a92c7714b0b10b783f","head":{"label":"RueLaLa:extra_exceptions","ref":"extra_exceptions","sha":"cd362d99aee44ac2437246a92c7714b0b10b783f","user":{"login":"RueLaLa","id":1392762,"avatar_url":"https://avatars.githubusercontent.com/u/1392762?v=3","gravatar_id":"","url":"https://api.github.com/users/RueLaLa","html_url":"https://github.com/RueLaLa","followers_url":"https://api.github.com/users/RueLaLa/followers","following_url":"https://api.github.com/users/RueLaLa/following{/other_user}","gists_url":"https://api.github.com/users/RueLaLa/gists{/gist_id}","starred_url":"https://api.github.com/users/RueLaLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RueLaLa/subscriptions","organizations_url":"https://api.github.com/users/RueLaLa/orgs","repos_url":"https://api.github.com/users/RueLaLa/repos","events_url":"https://api.github.com/users/RueLaLa/events{/privacy}","received_events_url":"https://api.github.com/users/RueLaLa/received_events","type":"Organization","site_admin":false},"repo":{"id":8358643,"name":"savory-pie","full_name":"RueLaLa/savory-pie","owner":{"login":"RueLaLa","id":1392762,"avatar_url":"https://avatars.githubusercontent.com/u/1392762?v=3","gravatar_id":"","url":"https://api.github.com/users/RueLaLa","html_url":"https://github.com/RueLaLa","followers_url":"https://api.github.com/users/RueLaLa/followers","following_url":"https://api.github.com/users/RueLaLa/following{/other_user}","gists_url":"https://api.github.com/users/RueLaLa/gists{/gist_id}","starred_url":"https://api.github.com/users/RueLaLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RueLaLa/subscriptions","organizations_url":"https://api.github.com/users/RueLaLa/orgs","repos_url":"https://api.github.com/users/RueLaLa/repos","events_url":"https://api.github.com/users/RueLaLa/events{/privacy}","received_events_url":"https://api.github.com/users/RueLaLa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RueLaLa/savory-pie","description":"","fork":false,"url":"https://api.github.com/repos/RueLaLa/savory-pie","forks_url":"https://api.github.com/repos/RueLaLa/savory-pie/forks","keys_url":"https://api.github.com/repos/RueLaLa/savory-pie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RueLaLa/savory-pie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RueLaLa/savory-pie/teams","hooks_url":"https://api.github.com/repos/RueLaLa/savory-pie/hooks","issue_events_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/events{/number}","events_url":"https://api.github.com/repos/RueLaLa/savory-pie/events","assignees_url":"https://api.github.com/repos/RueLaLa/savory-pie/assignees{/user}","branches_url":"https://api.github.com/repos/RueLaLa/savory-pie/branches{/branch}","tags_url":"https://api.github.com/repos/RueLaLa/savory-pie/tags","blobs_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/refs{/sha}","trees_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RueLaLa/savory-pie/statuses/{sha}","languages_url":"https://api.github.com/repos/RueLaLa/savory-pie/languages","stargazers_url":"https://api.github.com/repos/RueLaLa/savory-pie/stargazers","contributors_url":"https://api.github.com/repos/RueLaLa/savory-pie/contributors","subscribers_url":"https://api.github.com/repos/RueLaLa/savory-pie/subscribers","subscription_url":"https://api.github.com/repos/RueLaLa/savory-pie/subscription","commits_url":"https://api.github.com/repos/RueLaLa/savory-pie/commits{/sha}","git_commits_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/commits{/sha}","comments_url":"https://api.github.com/repos/RueLaLa/savory-pie/comments{/number}","issue_comment_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/comments{/number}","contents_url":"https://api.github.com/repos/RueLaLa/savory-pie/contents/{+path}","compare_url":"https://api.github.com/repos/RueLaLa/savory-pie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RueLaLa/savory-pie/merges","archive_url":"https://api.github.com/repos/RueLaLa/savory-pie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RueLaLa/savory-pie/downloads","issues_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues{/number}","pulls_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls{/number}","milestones_url":"https://api.github.com/repos/RueLaLa/savory-pie/milestones{/number}","notifications_url":"https://api.github.com/repos/RueLaLa/savory-pie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RueLaLa/savory-pie/labels{/name}","releases_url":"https://api.github.com/repos/RueLaLa/savory-pie/releases{/id}","created_at":"2013-02-22T14:18:05Z","updated_at":"2015-07-20T09:32:47Z","pushed_at":"2015-08-11T19:38:01Z","git_url":"git://github.com/RueLaLa/savory-pie.git","ssh_url":"git@github.com:RueLaLa/savory-pie.git","clone_url":"https://github.com/RueLaLa/savory-pie.git","svn_url":"https://github.com/RueLaLa/savory-pie","homepage":null,"size":3255,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":5,"default_branch":"master"}},"base":{"label":"RueLaLa:master","ref":"master","sha":"d7ee98a1d9e32687eafea9b4d89d6f8ca08bb4a3","user":{"login":"RueLaLa","id":1392762,"avatar_url":"https://avatars.githubusercontent.com/u/1392762?v=3","gravatar_id":"","url":"https://api.github.com/users/RueLaLa","html_url":"https://github.com/RueLaLa","followers_url":"https://api.github.com/users/RueLaLa/followers","following_url":"https://api.github.com/users/RueLaLa/following{/other_user}","gists_url":"https://api.github.com/users/RueLaLa/gists{/gist_id}","starred_url":"https://api.github.com/users/RueLaLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RueLaLa/subscriptions","organizations_url":"https://api.github.com/users/RueLaLa/orgs","repos_url":"https://api.github.com/users/RueLaLa/repos","events_url":"https://api.github.com/users/RueLaLa/events{/privacy}","received_events_url":"https://api.github.com/users/RueLaLa/received_events","type":"Organization","site_admin":false},"repo":{"id":8358643,"name":"savory-pie","full_name":"RueLaLa/savory-pie","owner":{"login":"RueLaLa","id":1392762,"avatar_url":"https://avatars.githubusercontent.com/u/1392762?v=3","gravatar_id":"","url":"https://api.github.com/users/RueLaLa","html_url":"https://github.com/RueLaLa","followers_url":"https://api.github.com/users/RueLaLa/followers","following_url":"https://api.github.com/users/RueLaLa/following{/other_user}","gists_url":"https://api.github.com/users/RueLaLa/gists{/gist_id}","starred_url":"https://api.github.com/users/RueLaLa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RueLaLa/subscriptions","organizations_url":"https://api.github.com/users/RueLaLa/orgs","repos_url":"https://api.github.com/users/RueLaLa/repos","events_url":"https://api.github.com/users/RueLaLa/events{/privacy}","received_events_url":"https://api.github.com/users/RueLaLa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RueLaLa/savory-pie","description":"","fork":false,"url":"https://api.github.com/repos/RueLaLa/savory-pie","forks_url":"https://api.github.com/repos/RueLaLa/savory-pie/forks","keys_url":"https://api.github.com/repos/RueLaLa/savory-pie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RueLaLa/savory-pie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RueLaLa/savory-pie/teams","hooks_url":"https://api.github.com/repos/RueLaLa/savory-pie/hooks","issue_events_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/events{/number}","events_url":"https://api.github.com/repos/RueLaLa/savory-pie/events","assignees_url":"https://api.github.com/repos/RueLaLa/savory-pie/assignees{/user}","branches_url":"https://api.github.com/repos/RueLaLa/savory-pie/branches{/branch}","tags_url":"https://api.github.com/repos/RueLaLa/savory-pie/tags","blobs_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/refs{/sha}","trees_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RueLaLa/savory-pie/statuses/{sha}","languages_url":"https://api.github.com/repos/RueLaLa/savory-pie/languages","stargazers_url":"https://api.github.com/repos/RueLaLa/savory-pie/stargazers","contributors_url":"https://api.github.com/repos/RueLaLa/savory-pie/contributors","subscribers_url":"https://api.github.com/repos/RueLaLa/savory-pie/subscribers","subscription_url":"https://api.github.com/repos/RueLaLa/savory-pie/subscription","commits_url":"https://api.github.com/repos/RueLaLa/savory-pie/commits{/sha}","git_commits_url":"https://api.github.com/repos/RueLaLa/savory-pie/git/commits{/sha}","comments_url":"https://api.github.com/repos/RueLaLa/savory-pie/comments{/number}","issue_comment_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues/comments{/number}","contents_url":"https://api.github.com/repos/RueLaLa/savory-pie/contents/{+path}","compare_url":"https://api.github.com/repos/RueLaLa/savory-pie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RueLaLa/savory-pie/merges","archive_url":"https://api.github.com/repos/RueLaLa/savory-pie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RueLaLa/savory-pie/downloads","issues_url":"https://api.github.com/repos/RueLaLa/savory-pie/issues{/number}","pulls_url":"https://api.github.com/repos/RueLaLa/savory-pie/pulls{/number}","milestones_url":"https://api.github.com/repos/RueLaLa/savory-pie/milestones{/number}","notifications_url":"https://api.github.com/repos/RueLaLa/savory-pie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RueLaLa/savory-pie/labels{/name}","releases_url":"https://api.github.com/repos/RueLaLa/savory-pie/releases{/id}","created_at":"2013-02-22T14:18:05Z","updated_at":"2015-07-20T09:32:47Z","pushed_at":"2015-08-11T19:38:01Z","git_url":"git://github.com/RueLaLa/savory-pie.git","ssh_url":"git@github.com:RueLaLa/savory-pie.git","clone_url":"https://github.com/RueLaLa/savory-pie.git","svn_url":"https://github.com/RueLaLa/savory-pie","homepage":null,"size":3255,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158"},"html":{"href":"https://github.com/RueLaLa/savory-pie/pull/158"},"issue":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/issues/158"},"comments":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/RueLaLa/savory-pie/statuses/cd362d99aee44ac2437246a92c7714b0b10b783f"}}}}