github-tools / github-tools/github

Add support for multiple media types

未关闭
#218 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement priority 3 (medium) PRs welcome
主要语言
JavaScript
星标
3.8k
派生
809
PR 合并指标
30 天内没有已合并 PR

描述

repo.read() function should have option for choosing the format of the receiving data. (base64)
For example, if requested target is image file and if you are going to show it on browser then it could be much easier to download content as base64 image so the image url could be easily generated when there is no need to convert it to base64 anymore..

and for receiving / sending commits, pulls, etc.. it would be nice to have an option for choosing diff / patch media type.

https://developer.github.com/v3/media/

https://developer.github.com/changes/2012-12-10-Diff-and-patch-media-types/

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at the repo.read() entry point and trace how requests for images, commits, and pulls choose their response media types. Read the linked GitHub media-type documentation first, then define how callers select base64, diff, or patch responses and verify each requested format is returned.

由索引模型根据 Issue 内容生成。

评估

技术栈
github, javascript
领域
api
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。