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/licenses/Client.swift
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,10 @@ public struct Client: APIProtocol {
237
237
///
238
238
/// This method returns the contents of the repository's license file, if one is detected.
239
239
///
240
-
/// Similar to [Get repository content](https://docs.github.com/rest/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.
240
+
/// 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)."
241
+
///
242
+
/// - **`application/vnd.github.raw+json`**: Returns the raw contents of the license.
243
+
/// - **`application/vnd.github.html+json`**: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
Copy file name to clipboardExpand all lines: Sources/licenses/Types.swift
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,10 @@ public protocol APIProtocol: Sendable {
29
29
///
30
30
/// This method returns the contents of the repository's license file, if one is detected.
31
31
///
32
-
/// Similar to [Get repository content](https://docs.github.com/rest/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.
32
+
/// 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)."
33
+
///
34
+
/// - **`application/vnd.github.raw+json`**: Returns the raw contents of the license.
35
+
/// - **`application/vnd.github.html+json`**: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`.
@@ -72,7 +75,10 @@ extension APIProtocol {
72
75
///
73
76
/// This method returns the contents of the repository's license file, if one is detected.
74
77
///
75
-
/// Similar to [Get repository content](https://docs.github.com/rest/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.
78
+
/// 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)."
79
+
///
80
+
/// - **`application/vnd.github.raw+json`**: Returns the raw contents of the license.
81
+
/// - **`application/vnd.github.html+json`**: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
/// - Remark: Generated from `#/paths//repos/{owner}/{repo}/license/get(licenses/get-for-repo)`.
@@ -910,7 +916,10 @@ public enum Operations {
910
916
///
911
917
/// This method returns the contents of the repository's license file, if one is detected.
912
918
///
913
-
/// Similar to [Get repository content](https://docs.github.com/rest/repos/contents#get-repository-content), this method also supports [custom media types](https://docs.github.com/rest/overview/media-types) for retrieving the raw license content or rendered license HTML.
919
+
/// 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)."
920
+
///
921
+
/// - **`application/vnd.github.raw+json`**: Returns the raw contents of the license.
922
+
/// - **`application/vnd.github.html+json`**: Returns the license contents in HTML. Markup languages are rendered to HTML using GitHub's open-source [Markup library](https://github.com/github/markup).
0 commit comments