Skip to content

Commit 6a229b1

Browse files
Commit via running ake Sources/gitignore
1 parent 9a38b48 commit 6a229b1

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

Sources/gitignore/Client.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ public struct Client: APIProtocol {
104104
}
105105
/// Get a gitignore template
106106
///
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.
109112
///
110113
/// - Remark: HTTP `GET /gitignore/templates/{name}`.
111114
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.

Sources/gitignore/Types.swift

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ public protocol APIProtocol: Sendable {
2020
func gitignore_sol_get_hyphen_all_hyphen_templates(_ input: Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Input) async throws -> Operations.gitignore_sol_get_hyphen_all_hyphen_templates.Output
2121
/// Get a gitignore template
2222
///
23-
/// 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.
2528
///
2629
/// - Remark: HTTP `GET /gitignore/templates/{name}`.
2730
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.
@@ -41,8 +44,11 @@ extension APIProtocol {
4144
}
4245
/// Get a gitignore template
4346
///
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.
4652
///
4753
/// - Remark: HTTP `GET /gitignore/templates/{name}`.
4854
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.
@@ -251,8 +257,11 @@ public enum Operations {
251257
}
252258
/// Get a gitignore template
253259
///
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.
256265
///
257266
/// - Remark: HTTP `GET /gitignore/templates/{name}`.
258267
/// - Remark: Generated from `#/paths//gitignore/templates/{name}/get(gitignore/get-template)`.

0 commit comments

Comments
 (0)