You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/git/Client.swift
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,12 @@ public struct Client: APIProtocol {
210
210
///
211
211
/// The `content` in the response will always be Base64 encoded.
212
212
///
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.
Copy file name to clipboardExpand all lines: Sources/git/Types.swift
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,12 @@ public protocol APIProtocol: Sendable {
20
20
///
21
21
/// The `content` in the response will always be Base64 encoded.
22
22
///
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.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.
@@ -254,7 +259,12 @@ extension APIProtocol {
254
259
///
255
260
/// The `content` in the response will always be Base64 encoded.
256
261
///
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.
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/git/blobs/{file_sha}/get(git/get-blob)`.
@@ -1833,7 +1843,12 @@ public enum Operations {
1833
1843
///
1834
1844
/// The `content` in the response will always be Base64 encoded.
1835
1845
///
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.
0 commit comments