{"action":"created","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9621","repository_url":"https://api.github.com/repos/mattermost/mattermost-server","labels_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9621/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9621/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9621/events","html_url":"https://github.com/mattermost/mattermost-server/issues/9621","id":369520073,"node_id":"MDU6SXNzdWUzNjk1MjAwNzM=","number":9621,"title":"Add plugin API for GetFile method","user":{"login":"jasonblais","id":13119842,"node_id":"MDQ6VXNlcjEzMTE5ODQy","avatar_url":"https://avatars1.githubusercontent.com/u/13119842?v=4","gravatar_id":"","url":"https://api.github.com/users/jasonblais","html_url":"https://github.com/jasonblais","followers_url":"https://api.github.com/users/jasonblais/followers","following_url":"https://api.github.com/users/jasonblais/following{/other_user}","gists_url":"https://api.github.com/users/jasonblais/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonblais/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonblais/subscriptions","organizations_url":"https://api.github.com/users/jasonblais/orgs","repos_url":"https://api.github.com/users/jasonblais/repos","events_url":"https://api.github.com/users/jasonblais/events{/privacy}","received_events_url":"https://api.github.com/users/jasonblais/received_events","type":"User","site_admin":false},"labels":[{"id":472666592,"node_id":"MDU6TGFiZWw0NzI2NjY1OTI=","url":"https://api.github.com/repos/mattermost/mattermost-server/labels/Difficulty:%20Introductory","name":"Difficulty: Introductory","color":"c2e0c6","default":false},{"id":486848485,"node_id":"MDU6TGFiZWw0ODY4NDg0ODU=","url":"https://api.github.com/repos/mattermost/mattermost-server/labels/Go","name":"Go","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-12T11:56:11Z","updated_at":"2018-11-08T14:35:55Z","closed_at":null,"author_association":"MEMBER","body":"If you're interested please comment here and come [join our \"Contributors\" community channel](https://pre-release.mattermost.com/core/channels/tickets) on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please  [join our \"Developers\" community channel](https://pre-release.mattermost.com/core/channels/developers).\r\n\r\nNew contributors please see our [Developer's Guide](https://developers.mattermost.com/contribute/getting-started/).\r\n\r\n----\r\n\r\nThe method `GetFile(fileId string) ([]byte, *Response)` is available in `model/client4.go`, the Go REST API driver for Mattermost, but does not have an equivalent in the plugin API.\r\n\r\nNot having this method in the plugin API limits what plugins can do. Hence, we would like to add an equivalent plugin API for it.\r\n\r\nRead about adding to the plugin API here https://developers.mattermost.com/contribute/server/plugins/. Most of these methods should have fairly simple equivalents in the `app` package, making them trivial to implement.\r\n\r\nYou'll want to look at these files:\r\n* https://github.com/mattermost/mattermost-server/blob/master/plugin/api.go\r\n* https://github.com/mattermost/mattermost-server/blob/master/app/plugin_api.go\r\n\r\nIf you have any questions or would like feedback, feel free to ask in the [Developer Toolkit channel](https://pre-release.mattermost.com/core/channels/developer-toolkit) on our Mattermost community instance.\r\n\r\n----\r\n\r\nThis ticket is part of a larger campaign for adding plugin API methods. See here: https://github.com/mattermost/mattermost-server/issues/9458"},"comment":{"url":"https://api.github.com/repos/mattermost/mattermost-server/issues/comments/437014470","html_url":"https://github.com/mattermost/mattermost-server/issues/9621#issuecomment-437014470","issue_url":"https://api.github.com/repos/mattermost/mattermost-server/issues/9621","id":437014470,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzAxNDQ3MA==","user":{"login":"cpanato","id":4115580,"node_id":"MDQ6VXNlcjQxMTU1ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/4115580?v=4","gravatar_id":"","url":"https://api.github.com/users/cpanato","html_url":"https://github.com/cpanato","followers_url":"https://api.github.com/users/cpanato/followers","following_url":"https://api.github.com/users/cpanato/following{/other_user}","gists_url":"https://api.github.com/users/cpanato/gists{/gist_id}","starred_url":"https://api.github.com/users/cpanato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpanato/subscriptions","organizations_url":"https://api.github.com/users/cpanato/orgs","repos_url":"https://api.github.com/users/cpanato/repos","events_url":"https://api.github.com/users/cpanato/events{/privacy}","received_events_url":"https://api.github.com/users/cpanato/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T14:35:55Z","updated_at":"2018-11-08T14:35:55Z","author_association":"MEMBER","body":"@vaithak can be\r\n`GetFile(fileId string) ([]byte, *model.AppError)`"}}
{"actor":{"display_login":"cpanato"}}