{"action":"created","issue":{"url":"https://api.github.com/repos/OperationCode/resources_api/issues/25","repository_url":"https://api.github.com/repos/OperationCode/resources_api","labels_url":"https://api.github.com/repos/OperationCode/resources_api/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/OperationCode/resources_api/issues/25/comments","events_url":"https://api.github.com/repos/OperationCode/resources_api/issues/25/events","html_url":"https://github.com/OperationCode/resources_api/issues/25","id":371169166,"node_id":"MDU6SXNzdWUzNzExNjkxNjY=","number":25,"title":"Make API requests a little better","user":{"login":"wimo7083","id":10781353,"node_id":"MDQ6VXNlcjEwNzgxMzUz","avatar_url":"https://avatars2.githubusercontent.com/u/10781353?v=4","gravatar_id":"","url":"https://api.github.com/users/wimo7083","html_url":"https://github.com/wimo7083","followers_url":"https://api.github.com/users/wimo7083/followers","following_url":"https://api.github.com/users/wimo7083/following{/other_user}","gists_url":"https://api.github.com/users/wimo7083/gists{/gist_id}","starred_url":"https://api.github.com/users/wimo7083/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wimo7083/subscriptions","organizations_url":"https://api.github.com/users/wimo7083/orgs","repos_url":"https://api.github.com/users/wimo7083/repos","events_url":"https://api.github.com/users/wimo7083/events{/privacy}","received_events_url":"https://api.github.com/users/wimo7083/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-17T16:44:04Z","updated_at":"2018-10-20T22:18:28Z","closed_at":null,"author_association":"MEMBER","body":"In order to prevent spam we want to setup all routes to have an api limiter:\r\nhttps://flask-limiter.readthedocs.io/en/stable/\r\n\r\nWe also wish to start returning routes with more detailed information than the data in json format\r\n\r\nIf there's a style you prefer we can use it, here's one option. [google json ](https://google.github.io/styleguide/jsoncstyleguide.xml)\r\ngood response example:\r\n```json\r\n{\r\n  \"data\": {\r\n    \"id\": 1001,\r\n    \"name\": \"Wing\"\r\n  }\r\n}\r\n```\r\n\r\nerror response example:\r\n```json\r\n{\r\n  \"error\": {\r\n    \"code\": 404,\r\n    \"message\": \"ID not found\"\r\n  }\r\n}\r\n```\r\n\r\nSome examples include, returning a status for any modifications, returning an error code if something irrecoverable happens, return a page value and in the case of lists a number of resources. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/OperationCode/resources_api/issues/comments/431622297","html_url":"https://github.com/OperationCode/resources_api/issues/25#issuecomment-431622297","issue_url":"https://api.github.com/repos/OperationCode/resources_api/issues/25","id":431622297,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTYyMjI5Nw==","user":{"login":"heavysaturn","id":2098517,"node_id":"MDQ6VXNlcjIwOTg1MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/2098517?v=4","gravatar_id":"","url":"https://api.github.com/users/heavysaturn","html_url":"https://github.com/heavysaturn","followers_url":"https://api.github.com/users/heavysaturn/followers","following_url":"https://api.github.com/users/heavysaturn/following{/other_user}","gists_url":"https://api.github.com/users/heavysaturn/gists{/gist_id}","starred_url":"https://api.github.com/users/heavysaturn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heavysaturn/subscriptions","organizations_url":"https://api.github.com/users/heavysaturn/orgs","repos_url":"https://api.github.com/users/heavysaturn/repos","events_url":"https://api.github.com/users/heavysaturn/events{/privacy}","received_events_url":"https://api.github.com/users/heavysaturn/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T22:18:28Z","updated_at":"2018-10-20T22:18:28Z","author_association":"CONTRIBUTOR","body":"they can coexist. it might be a bit messy, though."}}
{"actor":{"display_login":"heavysaturn"}}