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/gitignore/Client.swift
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -104,8 +104,11 @@ public struct Client: APIProtocol {
104
104
}
105
105
/// Get a gitignore template
106
106
///
107
-
/// The API also allows fetching the source of a single template.
108
-
/// Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.
107
+
/// Get the content of a gitignore template.
108
+
///
109
+
/// 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)."
110
+
///
111
+
/// - **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents.
/// The API also allows fetching the source of a single template.
24
-
/// Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.
23
+
/// Get the content of a gitignore template.
24
+
///
25
+
/// 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)."
26
+
///
27
+
/// - **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents.
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.
@@ -41,8 +44,11 @@ extension APIProtocol {
41
44
}
42
45
/// Get a gitignore template
43
46
///
44
-
/// The API also allows fetching the source of a single template.
45
-
/// Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.
47
+
/// Get the content of a gitignore template.
48
+
///
49
+
/// 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)."
50
+
///
51
+
/// - **`application/vnd.github.raw+json`**: Returns the raw .gitignore contents.
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.
@@ -251,8 +257,11 @@ public enum Operations {
251
257
}
252
258
/// Get a gitignore template
253
259
///
254
-
/// The API also allows fetching the source of a single template.
255
-
/// Use the raw [media type](https://docs.github.com/rest/overview/media-types/) to get the raw contents.
260
+
/// Get the content of a gitignore template.
261
+
///
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 .gitignore contents.
0 commit comments