Skip to content

Commit 4d3c2a1

Browse files
Commit via running ake Sources/gists
1 parent e79dc29 commit 4d3c2a1

File tree

2 files changed

+204
-4
lines changed

2 files changed

+204
-4
lines changed

Sources/gists/Client.swift

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,13 @@ public struct Client: APIProtocol {
580580
}
581581
/// Get a gist
582582
///
583+
/// Gets a specified gist.
584+
///
585+
/// 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)."
586+
///
587+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
588+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
589+
///
583590
/// - Remark: HTTP `GET /gists/{gist_id}`.
584591
/// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`.
585592
public func gists_sol_get(_ input: Operations.gists_sol_get.Input) async throws -> Operations.gists_sol_get.Output {
@@ -688,9 +695,17 @@ public struct Client: APIProtocol {
688695
}
689696
/// Update a gist
690697
///
691-
/// Allows you to update a gist's description and to update, delete, or rename gist files. Files from the previous version of the gist that aren't explicitly changed during an edit are unchanged.
698+
/// Allows you to update a gist's description and to update, delete, or rename gist files. Files
699+
/// from the previous version of the gist that aren't explicitly changed during an edit
700+
/// are unchanged.
701+
///
692702
/// At least one of `description` or `files` is required.
693703
///
704+
/// 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)."
705+
///
706+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
707+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
708+
///
694709
/// - Remark: HTTP `PATCH /gists/{gist_id}`.
695710
/// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`.
696711
public func gists_sol_update(_ input: Operations.gists_sol_update.Input) async throws -> Operations.gists_sol_update.Output {
@@ -894,6 +909,13 @@ public struct Client: APIProtocol {
894909
}
895910
/// List gist comments
896911
///
912+
/// Lists the comments on a gist.
913+
///
914+
/// 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)."
915+
///
916+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
917+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
918+
///
897919
/// - Remark: HTTP `GET /gists/{gist_id}/comments`.
898920
/// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`.
899921
public func gists_sol_list_hyphen_comments(_ input: Operations.gists_sol_list_hyphen_comments.Input) async throws -> Operations.gists_sol_list_hyphen_comments.Output {
@@ -1024,6 +1046,13 @@ public struct Client: APIProtocol {
10241046
}
10251047
/// Create a gist comment
10261048
///
1049+
/// Creates a comment on a gist.
1050+
///
1051+
/// 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)."
1052+
///
1053+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
1054+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
1055+
///
10271056
/// - Remark: HTTP `POST /gists/{gist_id}/comments`.
10281057
/// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`.
10291058
public func gists_sol_create_hyphen_comment(_ input: Operations.gists_sol_create_hyphen_comment.Input) async throws -> Operations.gists_sol_create_hyphen_comment.Output {
@@ -1149,6 +1178,13 @@ public struct Client: APIProtocol {
11491178
}
11501179
/// Get a gist comment
11511180
///
1181+
/// Gets a comment on a gist.
1182+
///
1183+
/// 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)."
1184+
///
1185+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
1186+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
1187+
///
11521188
/// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`.
11531189
/// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`.
11541190
public func gists_sol_get_hyphen_comment(_ input: Operations.gists_sol_get_hyphen_comment.Input) async throws -> Operations.gists_sol_get_hyphen_comment.Output {
@@ -1258,6 +1294,13 @@ public struct Client: APIProtocol {
12581294
}
12591295
/// Update a gist comment
12601296
///
1297+
/// Updates a comment on a gist.
1298+
///
1299+
/// 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)."
1300+
///
1301+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
1302+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
1303+
///
12611304
/// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`.
12621305
/// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`.
12631306
public func gists_sol_update_hyphen_comment(_ input: Operations.gists_sol_update_hyphen_comment.Input) async throws -> Operations.gists_sol_update_hyphen_comment.Output {
@@ -2105,6 +2148,13 @@ public struct Client: APIProtocol {
21052148
}
21062149
/// Get a gist revision
21072150
///
2151+
/// Gets a specified gist revision.
2152+
///
2153+
/// 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)."
2154+
///
2155+
/// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type.
2156+
/// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences.
2157+
///
21082158
/// - Remark: HTTP `GET /gists/{gist_id}/{sha}`.
21092159
/// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`.
21102160
public func gists_sol_get_hyphen_revision(_ input: Operations.gists_sol_get_hyphen_revision.Input) async throws -> Operations.gists_sol_get_hyphen_revision.Output {

0 commit comments

Comments
 (0)