Skip to content

Commit 9a38b48

Browse files
Commit via running ake Sources/git
1 parent 4d3c2a1 commit 9a38b48

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

Sources/git/Client.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,12 @@ public struct Client: APIProtocol {
210210
///
211211
/// The `content` in the response will always be Base64 encoded.
212212
///
213-
/// _Note_: This API supports blobs up to 100 megabytes in size.
213+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
214+
///
215+
/// - **`application/vnd.github.raw+json`**: Returns the raw blob data.
216+
/// - **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
217+
///
218+
/// **Note** This endpoint supports blobs up to 100 megabytes in size.
214219
///
215220
/// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`.
216221
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.

Sources/git/Types.swift

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public protocol APIProtocol: Sendable {
2020
///
2121
/// The `content` in the response will always be Base64 encoded.
2222
///
23-
/// _Note_: This API supports blobs up to 100 megabytes in size.
23+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
24+
///
25+
/// - **`application/vnd.github.raw+json`**: Returns the raw blob data.
26+
/// - **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
27+
///
28+
/// **Note** This endpoint supports blobs up to 100 megabytes in size.
2429
///
2530
/// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`.
2631
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.
@@ -254,7 +259,12 @@ extension APIProtocol {
254259
///
255260
/// The `content` in the response will always be Base64 encoded.
256261
///
257-
/// _Note_: This API supports blobs up to 100 megabytes in size.
262+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
263+
///
264+
/// - **`application/vnd.github.raw+json`**: Returns the raw blob data.
265+
/// - **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
266+
///
267+
/// **Note** This endpoint supports blobs up to 100 megabytes in size.
258268
///
259269
/// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`.
260270
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.
@@ -1833,7 +1843,12 @@ public enum Operations {
18331843
///
18341844
/// The `content` in the response will always be Base64 encoded.
18351845
///
1836-
/// _Note_: This API supports blobs up to 100 megabytes in size.
1846+
/// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
1847+
///
1848+
/// - **`application/vnd.github.raw+json`**: Returns the raw blob data.
1849+
/// - **`application/vnd.github+json`**: Returns a JSON representation of the blob with `content` as a base64 encoded string. This is the default if no media type is specified.
1850+
///
1851+
/// **Note** This endpoint supports blobs up to 100 megabytes in size.
18371852
///
18381853
/// - Remark: HTTP `GET /repos/{owner}/{repo}/git/blobs/{file_sha}`.
18391854
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.

0 commit comments

Comments
 (0)