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/gists/Client.swift
+51-1Lines changed: 51 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -580,6 +580,13 @@ public struct Client: APIProtocol {
580
580
}
581
581
/// Get a gist
582
582
///
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
+
///
583
590
/// - Remark: HTTP `GET /gists/{gist_id}`.
584
591
/// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`.
@@ -688,9 +695,17 @@ public struct Client: APIProtocol {
688
695
}
689
696
/// Update a gist
690
697
///
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
+
///
692
702
/// At least one of `description` or `files` is required.
693
703
///
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
+
///
694
709
/// - Remark: HTTP `PATCH /gists/{gist_id}`.
695
710
/// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`.
@@ -894,6 +909,13 @@ public struct Client: APIProtocol {
894
909
}
895
910
/// List gist comments
896
911
///
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.
@@ -1024,6 +1046,13 @@ public struct Client: APIProtocol {
1024
1046
}
1025
1047
/// Create a gist comment
1026
1048
///
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.
@@ -1149,6 +1178,13 @@ public struct Client: APIProtocol {
1149
1178
}
1150
1179
/// Get a gist comment
1151
1180
///
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.
@@ -1258,6 +1294,13 @@ public struct Client: APIProtocol {
1258
1294
}
1259
1295
/// Update a gist comment
1260
1296
///
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.
@@ -2105,6 +2148,13 @@ public struct Client: APIProtocol {
2105
2148
}
2106
2149
/// Get a gist revision
2107
2150
///
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
+
///
2108
2158
/// - Remark: HTTP `GET /gists/{gist_id}/{sha}`.
2109
2159
/// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`.
0 commit comments