diff --git a/.github/workflows/crowdin-cleanup.yml b/.github/workflows/crowdin-cleanup.yml index b241901968..ac98166bf1 100644 --- a/.github/workflows/crowdin-cleanup.yml +++ b/.github/workflows/crowdin-cleanup.yml @@ -31,3 +31,7 @@ jobs: # The message for the commit message: 'Run script/i18n/homogenize-frontmatter.js' + + env: + # Disable pre-commit hooks; they don't play nicely with add-and-commit + HUSKY: 0 diff --git a/.github/workflows/openapi-decorate.yml b/.github/workflows/openapi-decorate.yml index e894ae2b27..c0f40db23d 100644 --- a/.github/workflows/openapi-decorate.yml +++ b/.github/workflows/openapi-decorate.yml @@ -41,3 +41,7 @@ jobs: # The message for the commit message: 'Add decorated OpenAPI schema files' + + env: + # Disable pre-commit hooks; they don't play nicely with add-and-commit + HUSKY: 0 diff --git a/assets/images/help/repository/citation-link.png b/assets/images/help/repository/citation-link.png new file mode 100644 index 0000000000..c88be779db Binary files /dev/null and b/assets/images/help/repository/citation-link.png differ diff --git a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files.md b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files.md new file mode 100644 index 0000000000..0fea9efe48 --- /dev/null +++ b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files.md @@ -0,0 +1,43 @@ +--- +title: About CITATION files +intro: 'You can add a CITATION file to your repository to help users correctly cite your software.' +versions: + fpt: '*' + ghes: '>=3.3' + ghae: '>=M3' +topics: + - Repositories +--- +## About CITATION files + +You can add a `CITATION.cff` file to the root of a repository to let others know how you would like them to cite your work. The citation file format is plain text with human- and machine-readable citation information. + +Example CITATION.cff: +``` +cff-version: 1.2.0 +message: "If you use this software, please cite it as below." +authors: +- family-names: Lisa + given-names: Mona + orcid: https://orcid.org/0000-0000-0000-0000 +- family-names: Bot + given-names: Hew + orcid: https://orcid.org/0000-0000-0000-0000 +title: "My Research Software" +version: 2.0.4 +doi: 10.5281/zenodo.1234 +date-released: 2017-12-18 +url: https://github.com/github/linguist +``` + +For more information, see the [Citation File Format](https://citation-file-format.github.io/) website. + +When you add a `CITATION.cff` file to the default branch of your repository, it is automatically linked from the repository landing page. This makes it easy for other users to cite your software project, using the information you've provided. + + + +## Citation formats + +We currently support APA and BibTex file formats. + +Are you looking for additional citation formats? GitHub uses a Ruby library, to parse the `CITATION.cff` files. You can request additional formats in the [ruby-cff](https://github.com/citation-file-format/ruby-cff) repository, or contribute them yourself. diff --git a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md index 6eadb437c6..d220df38e6 100644 --- a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md +++ b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-readmes.md @@ -15,7 +15,7 @@ topics: --- ## About READMEs -You can add a README file to a repository to communicate important information about your project. A README, along with a repository license{% ifversion fpt %}, contribution guidelines, and a code of conduct{% elsif ghes %} and contribution guidelines{% endif %}, communicates expectations for your project and helps you manage contributions. +You can add a README file to a repository to communicate important information about your project. A README, along with a repository license{% ifversion fpt or ghes > 3.1 or ghae-issue-4651 %}, citation file{% endif %}{% ifversion fpt %}, contribution guidelines, and a code of conduct{% elsif ghes %} and contribution guidelines{% endif %}, communicates expectations for your project and helps you manage contributions. For more information about providing guidelines for your project, see {% ifversion fpt %}"[Adding a code of conduct to your project](/communities/setting-up-your-project-for-healthy-contributions/adding-a-code-of-conduct-to-your-project)" and {% endif %}"[Setting up your project for healthy contributions](/communities/setting-up-your-project-for-healthy-contributions)." diff --git a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/index.md b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/index.md index f9755c07be..eed653820b 100644 --- a/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/index.md +++ b/content/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/index.md @@ -18,6 +18,7 @@ children: - /about-code-owners - /about-repository-languages - /licensing-a-repository + - /about-citation-files - /creating-a-template-repository - /creating-an-issues-only-repository - /limits-for-viewing-content-and-diffs-in-a-repository diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json index 3030fd5ab5..a40ab1bcc6 100644 --- a/lib/rest/static/decorated/api.github.com.json +++ b/lib/rest/static/decorated/api.github.com.json @@ -34413,6 +34413,16 @@ "default": 1 }, "descriptionHTML": "
Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -36734,6 +36744,16 @@ "default": 1 }, "descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -47485,7 +47505,7 @@ "httpStatusCode": "200", "httpStatusMessage": "OK", "description": "Response", - "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
},
{
"httpStatusCode": "403",
@@ -47658,7 +47678,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
},
{
"httpStatusCode": "403",
@@ -74560,6 +74580,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -74582,8 +74603,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-2.18.json b/lib/rest/static/decorated/ghes-2.18.json
index 625379f018..3e4379f134 100644
--- a/lib/rest/static/decorated/ghes-2.18.json
+++ b/lib/rest/static/decorated/ghes-2.18.json
@@ -52549,6 +52549,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -52571,8 +52572,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-2.19.json b/lib/rest/static/decorated/ghes-2.19.json
index dd2dbb0f19..1ffa0c2298 100644
--- a/lib/rest/static/decorated/ghes-2.19.json
+++ b/lib/rest/static/decorated/ghes-2.19.json
@@ -53385,6 +53385,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -53407,8 +53408,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-2.20.json b/lib/rest/static/decorated/ghes-2.20.json
index 35d5c4c1b2..a18bd81da6 100644
--- a/lib/rest/static/decorated/ghes-2.20.json
+++ b/lib/rest/static/decorated/ghes-2.20.json
@@ -54045,6 +54045,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -54067,8 +54068,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-2.21.json b/lib/rest/static/decorated/ghes-2.21.json
index 7819085c9d..292efc2784 100644
--- a/lib/rest/static/decorated/ghes-2.21.json
+++ b/lib/rest/static/decorated/ghes-2.21.json
@@ -58110,6 +58110,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -58132,8 +58133,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-2.22.json b/lib/rest/static/decorated/ghes-2.22.json
index 8f6bb7c0aa..9bf73baaf5 100644
--- a/lib/rest/static/decorated/ghes-2.22.json
+++ b/lib/rest/static/decorated/ghes-2.22.json
@@ -29373,6 +29373,16 @@
"default": 1
},
"descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -31013,6 +31023,16 @@ "default": 1 }, "descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -41459,7 +41479,7 @@ "httpStatusCode": "200", "httpStatusMessage": "OK", "description": "Response", - "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"instances\": [\n {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/badcode.js\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n {\n \"ref\": \"refs/pull/3740/head\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"42cb832f6839406e3daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/badcode.js\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n }\n ]\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"instances\": [\n {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/badcode.js\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n {\n \"ref\": \"refs/pull/3740/head\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"42cb832f6839406e3daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/badcode.js\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n }\n ]\n}\n"
},
{
"httpStatusCode": "403",
@@ -41632,7 +41652,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"instances\": [\n {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"4ed4204b0e16480197a64500c4b5848ddfda9561\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/zipslip.js\",\n \"start_line\": 20,\n \"end_line\": 20,\n \"start_column\": 37,\n \"end_column\": 45\n },\n \"classifications\": [\n \"test\"\n ]\n },\n {\n \"ref\": \"refs/pull/3740/head\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"fdc19ddaf04649b910b7267b82c0997a4bbe165e\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/zipslip.js\",\n \"start_line\": 20,\n \"end_line\": 20,\n \"start_column\": 37,\n \"end_column\": 45\n },\n \"classifications\": [\n \"test\"\n ]\n }\n ]\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"instances\": [\n {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"4ed4204b0e16480197a64500c4b5848ddfda9561\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/zipslip.js\",\n \"start_line\": 20,\n \"end_line\": 20,\n \"start_column\": 37,\n \"end_column\": 45\n },\n \"classifications\": [\n \"test\"\n ]\n },\n {\n \"ref\": \"refs/pull/3740/head\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:analyze\",\n \"environment\": \"{\\\"language\\\":\\\"javascript\\\"}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"fdc19ddaf04649b910b7267b82c0997a4bbe165e\",\n \"message\": {\n \"text\": \"Unsanitized zip archive item path, which may contain '..', is used in a file system operation.\"\n },\n \"location\": {\n \"path\": \"src/zipslip.js\",\n \"start_line\": 20,\n \"end_line\": 20,\n \"start_column\": 37,\n \"end_column\": 45\n },\n \"classifications\": [\n \"test\"\n ]\n }\n ]\n}\n"
},
{
"httpStatusCode": "403",
@@ -65829,6 +65849,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -65851,8 +65872,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-3.0.json b/lib/rest/static/decorated/ghes-3.0.json
index f25b15deb9..4de5856d21 100644
--- a/lib/rest/static/decorated/ghes-3.0.json
+++ b/lib/rest/static/decorated/ghes-3.0.json
@@ -33799,6 +33799,16 @@
"default": 1
},
"descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -35611,6 +35621,16 @@ "default": 1 }, "descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -45994,7 +46014,7 @@ "httpStatusCode": "200", "httpStatusMessage": "OK", "description": "Response", - "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
},
{
"httpStatusCode": "403",
@@ -46167,7 +46187,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
},
{
"httpStatusCode": "403",
@@ -70624,6 +70644,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -70646,8 +70667,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/decorated/ghes-3.1.json b/lib/rest/static/decorated/ghes-3.1.json
index c04dcfdbd4..595c9883cd 100644
--- a/lib/rest/static/decorated/ghes-3.1.json
+++ b/lib/rest/static/decorated/ghes-3.1.json
@@ -2,13 +2,13 @@
{
"verb": "get",
"requestPath": "/",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/"
},
{
"lang": "JavaScript",
@@ -49,7 +49,7 @@
{
"verb": "get",
"requestPath": "/admin/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -86,8 +86,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks"
},
{
"lang": "JavaScript",
@@ -139,7 +139,7 @@
{
"verb": "post",
"requestPath": "/admin/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -156,8 +156,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
},
{
"lang": "JavaScript",
@@ -488,7 +488,7 @@
{
"verb": "get",
"requestPath": "/admin/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -514,8 +514,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42"
},
{
"lang": "JavaScript",
@@ -567,7 +567,7 @@
{
"verb": "patch",
"requestPath": "/admin/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -593,8 +593,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
},
{
"lang": "JavaScript",
@@ -899,7 +899,7 @@
{
"verb": "delete",
"requestPath": "/admin/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -925,8 +925,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42"
},
{
"lang": "JavaScript",
@@ -977,7 +977,7 @@
{
"verb": "post",
"requestPath": "/admin/hooks/{hook_id}/pings",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "accept",
@@ -1003,8 +1003,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42/pings",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/admin/hooks/42/pings"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42/pings",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.superpro-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/hooks/42/pings"
},
{
"lang": "JavaScript",
@@ -1055,7 +1055,7 @@
{
"verb": "get",
"requestPath": "/admin/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -1121,8 +1121,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/keys"
},
{
"lang": "JavaScript",
@@ -1167,7 +1167,7 @@
{
"verb": "delete",
"requestPath": "/admin/keys/{key_ids}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "key_ids",
@@ -1182,8 +1182,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/keys/KEY_IDS",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/keys/KEY_IDS"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/keys/KEY_IDS",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/keys/KEY_IDS"
},
{
"lang": "JavaScript",
@@ -1227,7 +1227,7 @@
{
"verb": "patch",
"requestPath": "/admin/ldap/teams/{team_id}/mapping",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -1242,8 +1242,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/teams/42/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/teams/42/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/teams/42/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/teams/42/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'"
},
{
"lang": "JavaScript",
@@ -1329,7 +1329,7 @@
{
"verb": "post",
"requestPath": "/admin/ldap/teams/{team_id}/sync",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -1344,8 +1344,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/teams/42/sync",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/teams/42/sync"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/teams/42/sync",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/teams/42/sync"
},
{
"lang": "JavaScript",
@@ -1390,7 +1390,7 @@
{
"verb": "patch",
"requestPath": "/admin/ldap/users/{username}/mapping",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -1405,8 +1405,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/users/USERNAME/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/users/USERNAME/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/users/USERNAME/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/users/USERNAME/mapping \\\n -d '{\"ldap_dn\":\"ldap_dn\"}'"
},
{
"lang": "JavaScript",
@@ -1485,7 +1485,7 @@
{
"verb": "post",
"requestPath": "/admin/ldap/users/{username}/sync",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -1500,8 +1500,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/users/USERNAME/sync",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/ldap/users/USERNAME/sync"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/users/USERNAME/sync",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/ldap/users/USERNAME/sync"
},
{
"lang": "JavaScript",
@@ -1546,13 +1546,13 @@
{
"verb": "post",
"requestPath": "/admin/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/organizations \\\n -d '{\"login\":\"login\",\"admin\":\"admin\"}'"
},
{
"lang": "JavaScript",
@@ -1673,7 +1673,7 @@
{
"verb": "patch",
"requestPath": "/admin/organizations/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -1688,8 +1688,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/organizations/ORG \\\n -d '{\"login\":\"login\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/organizations/ORG \\\n -d '{\"login\":\"login\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/organizations/ORG \\\n -d '{\"login\":\"login\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/organizations/ORG \\\n -d '{\"login\":\"login\"}'"
},
{
"lang": "JavaScript",
@@ -1771,7 +1771,7 @@
{
"verb": "get",
"requestPath": "/admin/pre-receive-environments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -1827,8 +1827,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments"
},
{
"lang": "JavaScript",
@@ -1880,13 +1880,13 @@
{
"verb": "post",
"requestPath": "/admin/pre-receive-environments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments \\\n -d '{\"name\":\"name\",\"image_url\":\"image_url\"}'"
},
{
"lang": "JavaScript",
@@ -1995,7 +1995,7 @@
{
"verb": "get",
"requestPath": "/admin/pre-receive-environments/{pre_receive_environment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_environment_id",
@@ -2010,8 +2010,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42"
},
{
"lang": "JavaScript",
@@ -2063,7 +2063,7 @@
{
"verb": "patch",
"requestPath": "/admin/pre-receive-environments/{pre_receive_environment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_environment_id",
@@ -2078,8 +2078,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -2186,7 +2186,7 @@
{
"verb": "delete",
"requestPath": "/admin/pre-receive-environments/{pre_receive_environment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_environment_id",
@@ -2201,8 +2201,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42"
},
{
"lang": "JavaScript",
@@ -2259,7 +2259,7 @@
{
"verb": "post",
"requestPath": "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_environment_id",
@@ -2274,8 +2274,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42/downloads",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42/downloads"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42/downloads",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42/downloads"
},
{
"lang": "JavaScript",
@@ -2333,7 +2333,7 @@
{
"verb": "get",
"requestPath": "/admin/pre-receive-environments/{pre_receive_environment_id}/downloads/latest",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_environment_id",
@@ -2348,8 +2348,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42/downloads/latest",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-environments/42/downloads/latest"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42/downloads/latest",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-environments/42/downloads/latest"
},
{
"lang": "JavaScript",
@@ -2401,7 +2401,7 @@
{
"verb": "get",
"requestPath": "/admin/pre-receive-hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -2458,8 +2458,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks"
},
{
"lang": "JavaScript",
@@ -2511,13 +2511,13 @@
{
"verb": "post",
"requestPath": "/admin/pre-receive-hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":{},\"environment\":{}}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":{},\"environment\":{}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":{},\"environment\":{}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks \\\n -d '{\"name\":\"name\",\"script\":\"script\",\"script_repository\":{},\"environment\":{}}'"
},
{
"lang": "JavaScript",
@@ -2716,7 +2716,7 @@
{
"verb": "get",
"requestPath": "/admin/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_hook_id",
@@ -2732,8 +2732,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -2785,7 +2785,7 @@
{
"verb": "patch",
"requestPath": "/admin/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_hook_id",
@@ -2801,8 +2801,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -2990,7 +2990,7 @@
{
"verb": "delete",
"requestPath": "/admin/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "pre_receive_hook_id",
@@ -3006,8 +3006,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/admin/pre-receive-hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/admin/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -3058,7 +3058,7 @@
{
"verb": "get",
"requestPath": "/admin/tokens",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -3084,8 +3084,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/tokens",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/tokens"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/tokens",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/tokens"
},
{
"lang": "JavaScript",
@@ -3130,7 +3130,7 @@
{
"verb": "delete",
"requestPath": "/admin/tokens/{token_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "token_id",
@@ -3145,8 +3145,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/tokens/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/tokens/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/tokens/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/tokens/42"
},
{
"lang": "JavaScript",
@@ -3190,13 +3190,13 @@
{
"verb": "post",
"requestPath": "/admin/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users \\\n -d '{\"login\":\"login\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users \\\n -d '{\"login\":\"login\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users \\\n -d '{\"login\":\"login\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users \\\n -d '{\"login\":\"login\"}'"
},
{
"lang": "JavaScript",
@@ -3297,7 +3297,7 @@
{
"verb": "patch",
"requestPath": "/admin/users/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -3312,8 +3312,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME \\\n -d '{\"login\":\"login\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME \\\n -d '{\"login\":\"login\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME \\\n -d '{\"login\":\"login\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME \\\n -d '{\"login\":\"login\"}'"
},
{
"lang": "JavaScript",
@@ -3395,7 +3395,7 @@
{
"verb": "delete",
"requestPath": "/admin/users/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -3410,8 +3410,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME"
},
{
"lang": "JavaScript",
@@ -3455,7 +3455,7 @@
{
"verb": "post",
"requestPath": "/admin/users/{username}/authorizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -3470,8 +3470,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'"
},
{
"lang": "JavaScript",
@@ -3553,7 +3553,7 @@
{
"verb": "delete",
"requestPath": "/admin/users/{username}/authorizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -3568,8 +3568,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME/authorizations",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/admin/users/USERNAME/authorizations"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME/authorizations",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/admin/users/USERNAME/authorizations"
},
{
"lang": "JavaScript",
@@ -3613,13 +3613,13 @@
{
"verb": "get",
"requestPath": "/app",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app"
},
{
"lang": "JavaScript",
@@ -3662,7 +3662,7 @@
{
"verb": "post",
"requestPath": "/app-manifests/{code}/conversions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "code",
@@ -3677,8 +3677,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app-manifests/CODE/conversions",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app-manifests/CODE/conversions"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app-manifests/CODE/conversions",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app-manifests/CODE/conversions"
},
{
"lang": "JavaScript",
@@ -3742,13 +3742,13 @@
{
"verb": "get",
"requestPath": "/app/hook/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/hook/config",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/hook/config"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/hook/config",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/hook/config"
},
{
"lang": "JavaScript",
@@ -3793,13 +3793,13 @@
{
"verb": "patch",
"requestPath": "/app/hook/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/hook/config \\\n -d '{\"url\":\"url\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/hook/config \\\n -d '{\"url\":\"url\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/hook/config \\\n -d '{\"url\":\"url\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/hook/config \\\n -d '{\"url\":\"url\"}'"
},
{
"lang": "JavaScript",
@@ -3959,7 +3959,7 @@
{
"verb": "get",
"requestPath": "/app/installations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -4005,8 +4005,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations"
},
{
"lang": "JavaScript",
@@ -4049,7 +4049,7 @@
{
"verb": "get",
"requestPath": "/app/installations/{installation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -4065,8 +4065,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42"
},
{
"lang": "JavaScript",
@@ -4119,7 +4119,7 @@
{
"verb": "delete",
"requestPath": "/app/installations/{installation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -4135,8 +4135,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42"
},
{
"lang": "JavaScript",
@@ -4183,7 +4183,7 @@
{
"verb": "post",
"requestPath": "/app/installations/{installation_id}/access_tokens",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -4199,8 +4199,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/access_tokens \\\n -d '{\"repositories\":[\"repositories\"]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/access_tokens \\\n -d '{\"repositories\":[\"repositories\"]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/access_tokens \\\n -d '{\"repositories\":[\"repositories\"]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/access_tokens \\\n -d '{\"repositories\":[\"repositories\"]}'"
},
{
"lang": "JavaScript",
@@ -5997,7 +5997,7 @@
{
"verb": "put",
"requestPath": "/app/installations/{installation_id}/suspended",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -6013,8 +6013,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/suspended",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/suspended"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/suspended",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/suspended"
},
{
"lang": "JavaScript",
@@ -6061,7 +6061,7 @@
{
"verb": "delete",
"requestPath": "/app/installations/{installation_id}/suspended",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -6077,8 +6077,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/suspended",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/app/installations/42/suspended"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/suspended",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/app/installations/42/suspended"
},
{
"lang": "JavaScript",
@@ -6125,7 +6125,7 @@
{
"verb": "get",
"requestPath": "/applications/grants",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -6161,8 +6161,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants"
},
{
"lang": "JavaScript",
@@ -6228,7 +6228,7 @@
{
"verb": "get",
"requestPath": "/applications/grants/{grant_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "grant_id",
@@ -6244,8 +6244,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants/42"
},
{
"lang": "JavaScript",
@@ -6306,7 +6306,7 @@
{
"verb": "delete",
"requestPath": "/applications/grants/{grant_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "grant_id",
@@ -6322,8 +6322,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/grants/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/grants/42"
},
{
"lang": "JavaScript",
@@ -6383,7 +6383,7 @@
{
"verb": "delete",
"requestPath": "/applications/{client_id}/grant",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6399,8 +6399,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/grant \\\n -d '{\"access_token\":\"access_token\"}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/grant \\\n -d '{\"access_token\":\"access_token\"}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/grant \\\n -d '{\"access_token\":\"access_token\"}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/grant \\\n -d '{\"access_token\":\"access_token\"}'"
},
{
"lang": "JavaScript",
@@ -6483,7 +6483,7 @@
{
"verb": "delete",
"requestPath": "/applications/{client_id}/grants/{access_token}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6508,8 +6508,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/grants/ACCESS_TOKEN",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/grants/ACCESS_TOKEN"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/grants/ACCESS_TOKEN",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/grants/ACCESS_TOKEN"
},
{
"lang": "JavaScript",
@@ -6556,7 +6556,7 @@
{
"verb": "post",
"requestPath": "/applications/{client_id}/token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6572,8 +6572,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
},
{
"lang": "JavaScript",
@@ -6662,7 +6662,7 @@
{
"verb": "patch",
"requestPath": "/applications/{client_id}/token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6678,8 +6678,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
},
{
"lang": "JavaScript",
@@ -6763,7 +6763,7 @@
{
"verb": "delete",
"requestPath": "/applications/{client_id}/token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6779,8 +6779,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token \\\n -d '{\"access_token\":\"access_token\"}'"
},
{
"lang": "JavaScript",
@@ -6866,7 +6866,7 @@
{
"verb": "post",
"requestPath": "/applications/{client_id}/token/scoped",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -6882,8 +6882,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token/scoped \\\n -d '{\"access_token\":\"access_token\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/token/scoped \\\n -d '{\"access_token\":\"access_token\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token/scoped \\\n -d '{\"access_token\":\"access_token\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/token/scoped \\\n -d '{\"access_token\":\"access_token\"}'"
},
{
"lang": "JavaScript",
@@ -8740,7 +8740,7 @@
{
"verb": "get",
"requestPath": "/applications/{client_id}/tokens/{access_token}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -8765,8 +8765,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
},
{
"lang": "JavaScript",
@@ -8819,7 +8819,7 @@
{
"verb": "post",
"requestPath": "/applications/{client_id}/tokens/{access_token}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -8844,8 +8844,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
},
{
"lang": "JavaScript",
@@ -8893,7 +8893,7 @@
{
"verb": "delete",
"requestPath": "/applications/{client_id}/tokens/{access_token}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -8918,8 +8918,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/applications/CLIENT_ID/tokens/ACCESS_TOKEN"
},
{
"lang": "JavaScript",
@@ -8966,7 +8966,7 @@
{
"verb": "get",
"requestPath": "/apps/{app_slug}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "app_slug",
@@ -8981,8 +8981,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/apps/APP_SLUG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/apps/APP_SLUG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/apps/APP_SLUG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/apps/APP_SLUG"
},
{
"lang": "JavaScript",
@@ -9040,7 +9040,7 @@
{
"verb": "get",
"requestPath": "/authorizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -9076,8 +9076,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations"
},
{
"lang": "JavaScript",
@@ -9143,13 +9143,13 @@
{
"verb": "post",
"requestPath": "/authorizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations \\\n -d '{\"scopes\":[\"scopes\"]}'"
},
{
"lang": "JavaScript",
@@ -9363,7 +9363,7 @@
{
"verb": "put",
"requestPath": "/authorizations/clients/{client_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -9379,8 +9379,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/clients/CLIENT_ID \\\n -d '{\"client_secret\":\"client_secret\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/clients/CLIENT_ID \\\n -d '{\"client_secret\":\"client_secret\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/clients/CLIENT_ID \\\n -d '{\"client_secret\":\"client_secret\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/clients/CLIENT_ID \\\n -d '{\"client_secret\":\"client_secret\"}'"
},
{
"lang": "JavaScript",
@@ -9578,7 +9578,7 @@
{
"verb": "put",
"requestPath": "/authorizations/clients/{client_id}/{fingerprint}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "client_id",
@@ -9603,8 +9603,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/clients/CLIENT_ID/FINGERPRINT \\\n -d '{\"client_secret\":\"client_secret\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/clients/CLIENT_ID/FINGERPRINT \\\n -d '{\"client_secret\":\"client_secret\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/clients/CLIENT_ID/FINGERPRINT \\\n -d '{\"client_secret\":\"client_secret\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/clients/CLIENT_ID/FINGERPRINT \\\n -d '{\"client_secret\":\"client_secret\"}'"
},
{
"lang": "JavaScript",
@@ -9769,7 +9769,7 @@
{
"verb": "get",
"requestPath": "/authorizations/{authorization_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "authorization_id",
@@ -9785,8 +9785,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42"
},
{
"lang": "JavaScript",
@@ -9847,7 +9847,7 @@
{
"verb": "patch",
"requestPath": "/authorizations/{authorization_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "authorization_id",
@@ -9863,8 +9863,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42 \\\n -d '{\"scopes\":[\"scopes\"]}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42 \\\n -d '{\"scopes\":[\"scopes\"]}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42 \\\n -d '{\"scopes\":[\"scopes\"]}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42 \\\n -d '{\"scopes\":[\"scopes\"]}'"
},
{
"lang": "JavaScript",
@@ -10066,7 +10066,7 @@
{
"verb": "delete",
"requestPath": "/authorizations/{authorization_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "authorization_id",
@@ -10082,8 +10082,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/authorizations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/authorizations/42"
},
{
"lang": "JavaScript",
@@ -10143,13 +10143,13 @@
{
"verb": "get",
"requestPath": "/codes_of_conduct",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/codes_of_conduct",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/codes_of_conduct"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/codes_of_conduct",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/codes_of_conduct"
},
{
"lang": "JavaScript",
@@ -10196,7 +10196,7 @@
{
"verb": "get",
"requestPath": "/codes_of_conduct/{key}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "key",
@@ -10211,8 +10211,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/codes_of_conduct/KEY",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/codes_of_conduct/KEY"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/codes_of_conduct/KEY",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/codes_of_conduct/KEY"
},
{
"lang": "JavaScript",
@@ -10264,13 +10264,13 @@
{
"verb": "get",
"requestPath": "/emojis",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/emojis",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/emojis"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/emojis",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/emojis"
},
{
"lang": "JavaScript",
@@ -10317,13 +10317,13 @@
{
"verb": "get",
"requestPath": "/enterprise/announcement",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement"
},
{
"lang": "JavaScript",
@@ -10364,13 +10364,13 @@
{
"verb": "patch",
"requestPath": "/enterprise/announcement",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement \\\n -d '{\"announcement\":\"announcement\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement \\\n -d '{\"announcement\":\"announcement\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement \\\n -d '{\"announcement\":\"announcement\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement \\\n -d '{\"announcement\":\"announcement\"}'"
},
{
"lang": "JavaScript",
@@ -10473,13 +10473,13 @@
{
"verb": "delete",
"requestPath": "/enterprise/announcement",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/announcement"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/announcement"
},
{
"lang": "JavaScript",
@@ -10519,13 +10519,13 @@
{
"verb": "get",
"requestPath": "/enterprise/settings/license",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/settings/license",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/settings/license"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/settings/license",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/settings/license"
},
{
"lang": "JavaScript",
@@ -10570,13 +10570,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/all",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/all",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/all"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/all",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/all"
},
{
"lang": "JavaScript",
@@ -10621,13 +10621,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/comments"
},
{
"lang": "JavaScript",
@@ -10671,13 +10671,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/gists",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/gists",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/gists"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/gists",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/gists"
},
{
"lang": "JavaScript",
@@ -10721,13 +10721,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/hooks"
},
{
"lang": "JavaScript",
@@ -10770,13 +10770,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/issues"
},
{
"lang": "JavaScript",
@@ -10820,13 +10820,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/milestones",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/milestones",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/milestones"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/milestones",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/milestones"
},
{
"lang": "JavaScript",
@@ -10870,13 +10870,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/orgs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/orgs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/orgs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/orgs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/orgs"
},
{
"lang": "JavaScript",
@@ -10920,13 +10920,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/pages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/pages",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/pages"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/pages",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/pages"
},
{
"lang": "JavaScript",
@@ -10970,13 +10970,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/pulls",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/pulls",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/pulls"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/pulls",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/pulls"
},
{
"lang": "JavaScript",
@@ -11020,13 +11020,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/repos"
},
{
"lang": "JavaScript",
@@ -11069,13 +11069,13 @@
{
"verb": "get",
"requestPath": "/enterprise/stats/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/users",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprise/stats/users"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/users",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprise/stats/users"
},
{
"lang": "JavaScript",
@@ -11119,7 +11119,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11135,8 +11135,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions"
},
{
"lang": "JavaScript",
@@ -11181,7 +11181,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11197,8 +11197,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions \\\n -d '{\"enabled_organizations\":\"enabled_organizations\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions \\\n -d '{\"enabled_organizations\":\"enabled_organizations\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions \\\n -d '{\"enabled_organizations\":\"enabled_organizations\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions \\\n -d '{\"enabled_organizations\":\"enabled_organizations\"}'"
},
{
"lang": "JavaScript",
@@ -11318,7 +11318,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/permissions/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11354,8 +11354,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations"
},
{
"lang": "JavaScript",
@@ -11400,7 +11400,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/permissions/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11416,8 +11416,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations \\\n -d '{\"selected_organization_ids\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations \\\n -d '{\"selected_organization_ids\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations \\\n -d '{\"selected_organization_ids\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations \\\n -d '{\"selected_organization_ids\":[42]}'"
},
{
"lang": "JavaScript",
@@ -11509,7 +11509,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/permissions/organizations/{org_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11535,8 +11535,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations/42"
},
{
"lang": "JavaScript",
@@ -11580,7 +11580,7 @@
{
"verb": "delete",
"requestPath": "/enterprises/{enterprise}/actions/permissions/organizations/{org_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11606,8 +11606,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/organizations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/organizations/42"
},
{
"lang": "JavaScript",
@@ -11651,7 +11651,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11667,8 +11667,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/selected-actions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/selected-actions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/selected-actions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/selected-actions"
},
{
"lang": "JavaScript",
@@ -11713,7 +11713,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11729,8 +11729,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
},
{
"lang": "JavaScript",
@@ -11845,7 +11845,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11881,8 +11881,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups"
},
{
"lang": "JavaScript",
@@ -11927,7 +11927,7 @@
{
"verb": "post",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -11943,8 +11943,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -12113,7 +12113,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12139,8 +12139,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42"
},
{
"lang": "JavaScript",
@@ -12185,7 +12185,7 @@
{
"verb": "patch",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12211,8 +12211,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -12320,7 +12320,7 @@
{
"verb": "delete",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12346,8 +12346,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42"
},
{
"lang": "JavaScript",
@@ -12391,7 +12391,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12437,8 +12437,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations"
},
{
"lang": "JavaScript",
@@ -12483,7 +12483,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12509,8 +12509,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations \\\n -d '{\"selected_organization_ids\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations \\\n -d '{\"selected_organization_ids\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations \\\n -d '{\"selected_organization_ids\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations \\\n -d '{\"selected_organization_ids\":[42]}'"
},
{
"lang": "JavaScript",
@@ -12602,7 +12602,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12638,8 +12638,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42"
},
{
"lang": "JavaScript",
@@ -12683,7 +12683,7 @@
{
"verb": "delete",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations/{org_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12719,8 +12719,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/organizations/42"
},
{
"lang": "JavaScript",
@@ -12764,7 +12764,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12810,8 +12810,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners"
},
{
"lang": "JavaScript",
@@ -12856,7 +12856,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -12882,8 +12882,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'"
},
{
"lang": "JavaScript",
@@ -12975,7 +12975,7 @@
{
"verb": "put",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13011,8 +13011,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42"
},
{
"lang": "JavaScript",
@@ -13056,7 +13056,7 @@
{
"verb": "delete",
"requestPath": "/enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13092,8 +13092,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runner-groups/42/runners/42"
},
{
"lang": "JavaScript",
@@ -13137,7 +13137,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13173,8 +13173,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners"
},
{
"lang": "JavaScript",
@@ -13219,7 +13219,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runners/downloads",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13235,8 +13235,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/downloads",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/downloads"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/downloads",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/downloads"
},
{
"lang": "JavaScript",
@@ -13281,7 +13281,7 @@
{
"verb": "post",
"requestPath": "/enterprises/{enterprise}/actions/runners/registration-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13297,8 +13297,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/registration-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/registration-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/registration-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/registration-token"
},
{
"lang": "JavaScript",
@@ -13343,7 +13343,7 @@
{
"verb": "post",
"requestPath": "/enterprises/{enterprise}/actions/runners/remove-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13359,8 +13359,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/remove-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/remove-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/remove-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/remove-token"
},
{
"lang": "JavaScript",
@@ -13405,7 +13405,7 @@
{
"verb": "get",
"requestPath": "/enterprises/{enterprise}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13431,8 +13431,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -13477,7 +13477,7 @@
{
"verb": "delete",
"requestPath": "/enterprises/{enterprise}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "enterprise",
@@ -13503,8 +13503,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/enterprises/ENTERPRISE/actions/runners/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/enterprises/ENTERPRISE/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -13548,7 +13548,7 @@
{
"verb": "get",
"requestPath": "/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -13574,8 +13574,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/events"
},
{
"lang": "JavaScript",
@@ -13634,13 +13634,13 @@
{
"verb": "get",
"requestPath": "/feeds",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/feeds",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/feeds"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/feeds",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/feeds"
},
{
"lang": "JavaScript",
@@ -13685,7 +13685,7 @@
{
"verb": "get",
"requestPath": "/gists",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -13722,8 +13722,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists"
},
{
"lang": "JavaScript",
@@ -13776,13 +13776,13 @@
{
"verb": "post",
"requestPath": "/gists",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists \\\n -d '{\"files\":{}}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists \\\n -d '{\"files\":{}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists \\\n -d '{\"files\":{}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists \\\n -d '{\"files\":{}}'"
},
{
"lang": "JavaScript",
@@ -13983,7 +13983,7 @@
{
"verb": "get",
"requestPath": "/gists/public",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -14020,8 +14020,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/public",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/public"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/public",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/public"
},
{
"lang": "JavaScript",
@@ -14079,7 +14079,7 @@
{
"verb": "get",
"requestPath": "/gists/starred",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -14116,8 +14116,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/starred",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/starred"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/starred",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/starred"
},
{
"lang": "JavaScript",
@@ -14175,7 +14175,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14191,8 +14191,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID"
},
{
"lang": "JavaScript",
@@ -14250,7 +14250,7 @@
{
"verb": "patch",
"requestPath": "/gists/{gist_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14266,8 +14266,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID \\\n -d '{\"description\":\"description\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID \\\n -d '{\"description\":\"description\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID \\\n -d '{\"description\":\"description\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID \\\n -d '{\"description\":\"description\"}'"
},
{
"lang": "JavaScript",
@@ -14458,7 +14458,7 @@
{
"verb": "delete",
"requestPath": "/gists/{gist_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14474,8 +14474,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID"
},
{
"lang": "JavaScript",
@@ -14532,7 +14532,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14568,8 +14568,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments"
},
{
"lang": "JavaScript",
@@ -14629,7 +14629,7 @@
{
"verb": "post",
"requestPath": "/gists/{gist_id}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14645,8 +14645,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -14744,7 +14744,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14770,8 +14770,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42"
},
{
"lang": "JavaScript",
@@ -14831,7 +14831,7 @@
{
"verb": "patch",
"requestPath": "/gists/{gist_id}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14857,8 +14857,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -14946,7 +14946,7 @@
{
"verb": "delete",
"requestPath": "/gists/{gist_id}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -14972,8 +14972,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/comments/42"
},
{
"lang": "JavaScript",
@@ -15032,7 +15032,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/commits",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15068,8 +15068,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/commits",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/commits"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/commits",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/commits"
},
{
"lang": "JavaScript",
@@ -15127,7 +15127,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/forks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15163,8 +15163,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/forks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/forks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/forks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/forks"
},
{
"lang": "JavaScript",
@@ -15222,7 +15222,7 @@
{
"verb": "post",
"requestPath": "/gists/{gist_id}/forks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15238,8 +15238,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/forks",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/forks"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/forks",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/forks"
},
{
"lang": "JavaScript",
@@ -15302,7 +15302,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/star",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15318,8 +15318,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star"
},
{
"lang": "JavaScript",
@@ -15376,7 +15376,7 @@
{
"verb": "put",
"requestPath": "/gists/{gist_id}/star",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15392,8 +15392,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star"
},
{
"lang": "JavaScript",
@@ -15450,7 +15450,7 @@
{
"verb": "delete",
"requestPath": "/gists/{gist_id}/star",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15466,8 +15466,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/star"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/star"
},
{
"lang": "JavaScript",
@@ -15524,7 +15524,7 @@
{
"verb": "get",
"requestPath": "/gists/{gist_id}/{sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gist_id",
@@ -15549,8 +15549,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/SHA",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gists/GIST_ID/SHA"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/SHA",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gists/GIST_ID/SHA"
},
{
"lang": "JavaScript",
@@ -15608,13 +15608,13 @@
{
"verb": "get",
"requestPath": "/gitignore/templates",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gitignore/templates",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gitignore/templates"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gitignore/templates",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gitignore/templates"
},
{
"lang": "JavaScript",
@@ -15662,7 +15662,7 @@
{
"verb": "get",
"requestPath": "/gitignore/templates/{name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "name",
@@ -15677,8 +15677,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gitignore/templates/NAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/gitignore/templates/NAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gitignore/templates/NAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/gitignore/templates/NAME"
},
{
"lang": "JavaScript",
@@ -15726,7 +15726,7 @@
{
"verb": "get",
"requestPath": "/installation/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -15752,8 +15752,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/installation/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/installation/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/installation/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/installation/repositories"
},
{
"lang": "JavaScript",
@@ -15820,13 +15820,13 @@
{
"verb": "delete",
"requestPath": "/installation/token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/installation/token",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/installation/token"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/installation/token",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/installation/token"
},
{
"lang": "JavaScript",
@@ -15870,7 +15870,7 @@
{
"verb": "get",
"requestPath": "/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "filter",
@@ -16019,8 +16019,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/issues"
},
{
"lang": "JavaScript",
@@ -16085,7 +16085,7 @@
{
"verb": "get",
"requestPath": "/licenses",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "featured",
@@ -16120,8 +16120,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/licenses",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/licenses"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/licenses",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/licenses"
},
{
"lang": "JavaScript",
@@ -16169,7 +16169,7 @@
{
"verb": "get",
"requestPath": "/licenses/{license}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "license",
@@ -16184,8 +16184,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/licenses/LICENSE",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/licenses/LICENSE"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/licenses/LICENSE",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/licenses/LICENSE"
},
{
"lang": "JavaScript",
@@ -16243,13 +16243,13 @@
{
"verb": "post",
"requestPath": "/markdown",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/markdown \\\n -d '{\"text\":\"text\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/markdown \\\n -d '{\"text\":\"text\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/markdown \\\n -d '{\"text\":\"text\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/markdown \\\n -d '{\"text\":\"text\"}'"
},
{
"lang": "JavaScript",
@@ -16378,13 +16378,13 @@
{
"verb": "post",
"requestPath": "/markdown/raw",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/markdown/raw",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/markdown/raw"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/markdown/raw",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/markdown/raw"
},
{
"lang": "JavaScript",
@@ -16446,13 +16446,13 @@
{
"verb": "get",
"requestPath": "/meta",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/meta",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/meta"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/meta",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/meta"
},
{
"lang": "JavaScript",
@@ -16500,7 +16500,7 @@
{
"verb": "get",
"requestPath": "/networks/{owner}/{repo}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -16544,8 +16544,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/networks/octocat/hello-world/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/networks/octocat/hello-world/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/networks/octocat/hello-world/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/networks/octocat/hello-world/events"
},
{
"lang": "JavaScript",
@@ -16609,7 +16609,7 @@
{
"verb": "get",
"requestPath": "/notifications",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "all",
@@ -16679,8 +16679,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications"
},
{
"lang": "JavaScript",
@@ -16745,13 +16745,13 @@
{
"verb": "put",
"requestPath": "/notifications",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'"
},
{
"lang": "JavaScript",
@@ -16866,7 +16866,7 @@
{
"verb": "get",
"requestPath": "/notifications/threads/{thread_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "thread_id",
@@ -16882,8 +16882,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42"
},
{
"lang": "JavaScript",
@@ -16943,7 +16943,7 @@
{
"verb": "patch",
"requestPath": "/notifications/threads/{thread_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "thread_id",
@@ -16959,8 +16959,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42"
},
{
"lang": "JavaScript",
@@ -17014,7 +17014,7 @@
{
"verb": "get",
"requestPath": "/notifications/threads/{thread_id}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "thread_id",
@@ -17030,8 +17030,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription"
},
{
"lang": "JavaScript",
@@ -17091,7 +17091,7 @@
{
"verb": "put",
"requestPath": "/notifications/threads/{thread_id}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "thread_id",
@@ -17107,8 +17107,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription \\\n -d '{\"ignored\":true}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription \\\n -d '{\"ignored\":true}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription \\\n -d '{\"ignored\":true}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription \\\n -d '{\"ignored\":true}'"
},
{
"lang": "JavaScript",
@@ -17201,7 +17201,7 @@
{
"verb": "delete",
"requestPath": "/notifications/threads/{thread_id}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "thread_id",
@@ -17217,8 +17217,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/notifications/threads/42/subscription"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/notifications/threads/42/subscription"
},
{
"lang": "JavaScript",
@@ -17277,7 +17277,7 @@
{
"verb": "get",
"requestPath": "/octocat",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "s",
@@ -17293,8 +17293,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/octocat",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/octocat"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/octocat",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/octocat"
},
{
"lang": "JavaScript",
@@ -17335,7 +17335,7 @@
{
"verb": "get",
"requestPath": "/organizations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -17361,8 +17361,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/organizations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/organizations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/organizations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/organizations"
},
{
"lang": "JavaScript",
@@ -17410,7 +17410,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -17425,8 +17425,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG"
},
{
"lang": "JavaScript",
@@ -17481,7 +17481,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -17496,8 +17496,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG \\\n -d '{\"billing_email\":\"billing_email\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG \\\n -d '{\"billing_email\":\"billing_email\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG \\\n -d '{\"billing_email\":\"billing_email\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG \\\n -d '{\"billing_email\":\"billing_email\"}'"
},
{
"lang": "JavaScript",
@@ -17921,7 +17921,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -17936,8 +17936,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions"
},
{
"lang": "JavaScript",
@@ -17982,7 +17982,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -17997,8 +17997,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions \\\n -d '{\"enabled_repositories\":\"enabled_repositories\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions \\\n -d '{\"enabled_repositories\":\"enabled_repositories\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions \\\n -d '{\"enabled_repositories\":\"enabled_repositories\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions \\\n -d '{\"enabled_repositories\":\"enabled_repositories\"}'"
},
{
"lang": "JavaScript",
@@ -18118,7 +18118,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/permissions/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18153,8 +18153,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories"
},
{
"lang": "JavaScript",
@@ -18199,7 +18199,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18214,8 +18214,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
},
{
"lang": "JavaScript",
@@ -18307,7 +18307,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18331,8 +18331,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories/42"
},
{
"lang": "JavaScript",
@@ -18376,7 +18376,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/permissions/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18400,8 +18400,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/repositories/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/repositories/42"
},
{
"lang": "JavaScript",
@@ -18445,7 +18445,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18460,8 +18460,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/selected-actions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/selected-actions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/selected-actions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/selected-actions"
},
{
"lang": "JavaScript",
@@ -18506,7 +18506,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18521,8 +18521,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
},
{
"lang": "JavaScript",
@@ -18637,7 +18637,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runner-groups",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18672,8 +18672,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups"
},
{
"lang": "JavaScript",
@@ -18718,7 +18718,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/actions/runner-groups",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18733,8 +18733,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -18907,7 +18907,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -18932,8 +18932,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42"
},
{
"lang": "JavaScript",
@@ -18978,7 +18978,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19003,8 +19003,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -19112,7 +19112,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19137,8 +19137,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42"
},
{
"lang": "JavaScript",
@@ -19182,7 +19182,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19227,8 +19227,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories"
},
{
"lang": "JavaScript",
@@ -19273,7 +19273,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19298,8 +19298,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
},
{
"lang": "JavaScript",
@@ -19391,7 +19391,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19425,8 +19425,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories/42"
},
{
"lang": "JavaScript",
@@ -19470,7 +19470,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19504,8 +19504,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/repositories/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/repositories/42"
},
{
"lang": "JavaScript",
@@ -19549,7 +19549,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19594,8 +19594,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners"
},
{
"lang": "JavaScript",
@@ -19640,7 +19640,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19665,8 +19665,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners \\\n -d '{\"runners\":[42]}'"
},
{
"lang": "JavaScript",
@@ -19758,7 +19758,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19793,8 +19793,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners/42"
},
{
"lang": "JavaScript",
@@ -19838,7 +19838,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19873,8 +19873,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runner-groups/42/runners/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runner-groups/42/runners/42"
},
{
"lang": "JavaScript",
@@ -19918,7 +19918,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -19953,8 +19953,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners"
},
{
"lang": "JavaScript",
@@ -19999,7 +19999,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runners/downloads",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20014,8 +20014,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/downloads",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/downloads"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/downloads",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/downloads"
},
{
"lang": "JavaScript",
@@ -20060,7 +20060,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/actions/runners/registration-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20075,8 +20075,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/registration-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/registration-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/registration-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/registration-token"
},
{
"lang": "JavaScript",
@@ -20121,7 +20121,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/actions/runners/remove-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20136,8 +20136,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/remove-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/remove-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/remove-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/remove-token"
},
{
"lang": "JavaScript",
@@ -20182,7 +20182,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20207,8 +20207,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -20253,7 +20253,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20278,8 +20278,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/runners/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -20323,7 +20323,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/secrets",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20358,8 +20358,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets"
},
{
"lang": "JavaScript",
@@ -20404,7 +20404,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/secrets/public-key",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20419,8 +20419,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/public-key",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/public-key"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/public-key",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/public-key"
},
{
"lang": "JavaScript",
@@ -20465,7 +20465,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20490,8 +20490,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME"
},
{
"lang": "JavaScript",
@@ -20536,7 +20536,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20561,8 +20561,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME \\\n -d '{\"visibility\":\"visibility\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME \\\n -d '{\"visibility\":\"visibility\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME \\\n -d '{\"visibility\":\"visibility\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME \\\n -d '{\"visibility\":\"visibility\"}'"
},
{
"lang": "JavaScript",
@@ -20726,7 +20726,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20751,8 +20751,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME"
},
{
"lang": "JavaScript",
@@ -20796,7 +20796,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20841,8 +20841,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories"
},
{
"lang": "JavaScript",
@@ -20887,7 +20887,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -20912,8 +20912,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories \\\n -d '{\"selected_repository_ids\":[42]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories \\\n -d '{\"selected_repository_ids\":[42]}'"
},
{
"lang": "JavaScript",
@@ -20999,7 +20999,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21033,8 +21033,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42"
},
{
"lang": "JavaScript",
@@ -21083,7 +21083,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21117,8 +21117,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/actions/secrets/SECRET_NAME/repositories/42"
},
{
"lang": "JavaScript",
@@ -21167,7 +21167,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/audit-log",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21261,8 +21261,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/audit-log",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/audit-log"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/audit-log",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/audit-log"
},
{
"lang": "JavaScript",
@@ -21305,7 +21305,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21340,8 +21340,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/events"
},
{
"lang": "JavaScript",
@@ -21385,7 +21385,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21420,8 +21420,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks"
},
{
"lang": "JavaScript",
@@ -21471,7 +21471,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21486,8 +21486,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"username\":\"username\",\"password\":\"password\"}}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"username\":\"username\",\"password\":\"password\"}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"username\":\"username\",\"password\":\"password\"}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks \\\n -d '{\"name\":\"name\",\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"username\":\"username\",\"password\":\"password\"}}'"
},
{
"lang": "JavaScript",
@@ -21947,7 +21947,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -21971,8 +21971,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42"
},
{
"lang": "JavaScript",
@@ -22022,7 +22022,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22046,8 +22046,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\"}}'"
},
{
"lang": "JavaScript",
@@ -22425,7 +22425,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22449,8 +22449,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42"
},
{
"lang": "JavaScript",
@@ -22499,7 +22499,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/hooks/{hook_id}/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22523,8 +22523,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/config",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/config"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/config",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/config"
},
{
"lang": "JavaScript",
@@ -22569,7 +22569,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/hooks/{hook_id}/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22593,8 +22593,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/config \\\n -d '{\"url\":\"url\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/config \\\n -d '{\"url\":\"url\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/config \\\n -d '{\"url\":\"url\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/config \\\n -d '{\"url\":\"url\"}'"
},
{
"lang": "JavaScript",
@@ -22755,7 +22755,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/hooks/{hook_id}/pings",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22779,8 +22779,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/pings",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/hooks/42/pings"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/pings",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/hooks/42/pings"
},
{
"lang": "JavaScript",
@@ -22829,7 +22829,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/installation",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22844,8 +22844,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/installation",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/installation"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/installation",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/installation"
},
{
"lang": "JavaScript",
@@ -22888,7 +22888,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/installations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -22923,8 +22923,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/installations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/installations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/installations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/installations"
},
{
"lang": "JavaScript",
@@ -22967,7 +22967,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23089,8 +23089,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/issues"
},
{
"lang": "JavaScript",
@@ -23145,7 +23145,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/members",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23211,8 +23211,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members"
},
{
"lang": "JavaScript",
@@ -23267,7 +23267,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23291,8 +23291,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members/USERNAME"
},
{
"lang": "JavaScript",
@@ -23346,7 +23346,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23370,8 +23370,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/members/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/members/USERNAME"
},
{
"lang": "JavaScript",
@@ -23420,7 +23420,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23444,8 +23444,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -23500,7 +23500,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23524,8 +23524,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
},
{
"lang": "JavaScript",
@@ -23621,7 +23621,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23645,8 +23645,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/memberships/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -23700,7 +23700,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/outside_collaborators",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23750,8 +23750,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators"
},
{
"lang": "JavaScript",
@@ -23796,7 +23796,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/outside_collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23820,8 +23820,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators/USERNAME",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators/USERNAME"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators/USERNAME",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators/USERNAME"
},
{
"lang": "JavaScript",
@@ -23880,7 +23880,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/outside_collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -23904,8 +23904,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/outside_collaborators/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/outside_collaborators/USERNAME"
},
{
"lang": "JavaScript",
@@ -23955,7 +23955,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/pre-receive-hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24021,8 +24021,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks"
},
{
"lang": "JavaScript",
@@ -24074,7 +24074,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24099,8 +24099,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -24152,7 +24152,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24177,8 +24177,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'"
},
{
"lang": "JavaScript",
@@ -24283,7 +24283,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24308,8 +24308,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/pre-receive-hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -24361,7 +24361,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24412,8 +24412,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/projects",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/projects"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/projects",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/projects"
},
{
"lang": "JavaScript",
@@ -24468,7 +24468,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24483,8 +24483,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/projects \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/projects \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/projects \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/projects \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -24615,7 +24615,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/public_members",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24650,8 +24650,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members"
},
{
"lang": "JavaScript",
@@ -24696,7 +24696,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/public_members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24720,8 +24720,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME"
},
{
"lang": "JavaScript",
@@ -24770,7 +24770,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/public_members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24794,8 +24794,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME"
},
{
"lang": "JavaScript",
@@ -24844,7 +24844,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/public_members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24868,8 +24868,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/public_members/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/public_members/USERNAME"
},
{
"lang": "JavaScript",
@@ -24913,7 +24913,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -24998,8 +24998,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/repos"
},
{
"lang": "JavaScript",
@@ -25055,7 +25055,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -25070,8 +25070,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/repos \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/repos \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/repos \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/repos \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -25500,7 +25500,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -25535,8 +25535,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams"
},
{
"lang": "JavaScript",
@@ -25584,7 +25584,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -25599,8 +25599,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -25833,7 +25833,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -25858,8 +25858,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG"
},
{
"lang": "JavaScript",
@@ -25907,7 +25907,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/teams/{team_slug}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -25932,8 +25932,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -26106,7 +26106,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26131,8 +26131,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG"
},
{
"lang": "JavaScript",
@@ -26174,7 +26174,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26244,8 +26244,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions"
},
{
"lang": "JavaScript",
@@ -26297,7 +26297,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26322,8 +26322,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -26453,7 +26453,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26487,8 +26487,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42"
},
{
"lang": "JavaScript",
@@ -26540,7 +26540,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26574,8 +26574,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42 \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42 \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42 \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42 \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -26679,7 +26679,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26713,8 +26713,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42"
},
{
"lang": "JavaScript",
@@ -26758,7 +26758,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26827,8 +26827,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments"
},
{
"lang": "JavaScript",
@@ -26880,7 +26880,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -26914,8 +26914,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -27005,7 +27005,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27048,8 +27048,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42"
},
{
"lang": "JavaScript",
@@ -27101,7 +27101,7 @@
{
"verb": "patch",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27144,8 +27144,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -27234,7 +27234,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27277,8 +27277,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42"
},
{
"lang": "JavaScript",
@@ -27322,7 +27322,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27405,8 +27405,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions"
},
{
"lang": "JavaScript",
@@ -27456,7 +27456,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27499,8 +27499,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -27613,7 +27613,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27665,8 +27665,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/comments/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -27715,7 +27715,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27789,8 +27789,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions"
},
{
"lang": "JavaScript",
@@ -27840,7 +27840,7 @@
{
"verb": "post",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -27874,8 +27874,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -27988,7 +27988,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28031,8 +28031,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/discussions/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -28081,7 +28081,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/members",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28142,8 +28142,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/members",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/members"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/members",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/members"
},
{
"lang": "JavaScript",
@@ -28188,7 +28188,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28222,8 +28222,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -28273,7 +28273,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28307,8 +28307,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
},
{
"lang": "JavaScript",
@@ -28404,7 +28404,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28438,8 +28438,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -28488,7 +28488,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28533,8 +28533,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects"
},
{
"lang": "JavaScript",
@@ -28584,7 +28584,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28618,8 +28618,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42"
},
{
"lang": "JavaScript",
@@ -28674,7 +28674,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28708,8 +28708,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42 \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42 \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42 \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42 \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -28806,7 +28806,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28840,8 +28840,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/projects/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/projects/42"
},
{
"lang": "JavaScript",
@@ -28883,7 +28883,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -28928,8 +28928,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos"
},
{
"lang": "JavaScript",
@@ -28972,7 +28972,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -29015,8 +29015,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -29069,7 +29069,7 @@
{
"verb": "put",
"requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -29112,8 +29112,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -29200,7 +29200,7 @@
{
"verb": "delete",
"requestPath": "/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -29243,8 +29243,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -29286,7 +29286,7 @@
{
"verb": "get",
"requestPath": "/orgs/{org}/teams/{team_slug}/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -29331,8 +29331,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/orgs/ORG/teams/TEAM_SLUG/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/orgs/ORG/teams/TEAM_SLUG/teams"
},
{
"lang": "JavaScript",
@@ -29375,7 +29375,7 @@
{
"verb": "get",
"requestPath": "/projects/columns/cards/{card_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "card_id",
@@ -29391,8 +29391,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42"
},
{
"lang": "JavaScript",
@@ -29464,7 +29464,7 @@
{
"verb": "patch",
"requestPath": "/projects/columns/cards/{card_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "card_id",
@@ -29480,8 +29480,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42 \\\n -d '{\"note\":\"note\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42 \\\n -d '{\"note\":\"note\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42 \\\n -d '{\"note\":\"note\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42 \\\n -d '{\"note\":\"note\"}'"
},
{
"lang": "JavaScript",
@@ -29613,7 +29613,7 @@
{
"verb": "delete",
"requestPath": "/projects/columns/cards/{card_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "card_id",
@@ -29629,8 +29629,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42"
},
{
"lang": "JavaScript",
@@ -29701,7 +29701,7 @@
{
"verb": "post",
"requestPath": "/projects/columns/cards/{card_id}/moves",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "card_id",
@@ -29717,8 +29717,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42/moves \\\n -d '{\"position\":\"position\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/cards/42/moves \\\n -d '{\"position\":\"position\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42/moves \\\n -d '{\"position\":\"position\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/cards/42/moves \\\n -d '{\"position\":\"position\"}'"
},
{
"lang": "JavaScript",
@@ -29852,7 +29852,7 @@
{
"verb": "get",
"requestPath": "/projects/columns/{column_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -29868,8 +29868,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42"
},
{
"lang": "JavaScript",
@@ -29941,7 +29941,7 @@
{
"verb": "patch",
"requestPath": "/projects/columns/{column_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -29957,8 +29957,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -30061,7 +30061,7 @@
{
"verb": "delete",
"requestPath": "/projects/columns/{column_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -30077,8 +30077,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42"
},
{
"lang": "JavaScript",
@@ -30144,7 +30144,7 @@
{
"verb": "get",
"requestPath": "/projects/columns/{column_id}/cards",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -30196,8 +30196,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/cards",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/cards"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/cards",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/cards"
},
{
"lang": "JavaScript",
@@ -30264,7 +30264,7 @@
{
"verb": "post",
"requestPath": "/projects/columns/{column_id}/cards",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -30280,8 +30280,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/cards",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/cards"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/cards",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/cards"
},
{
"lang": "JavaScript",
@@ -30469,7 +30469,7 @@
{
"verb": "post",
"requestPath": "/projects/columns/{column_id}/moves",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "column_id",
@@ -30485,8 +30485,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/moves \\\n -d '{\"position\":\"position\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/columns/42/moves \\\n -d '{\"position\":\"position\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/moves \\\n -d '{\"position\":\"position\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/columns/42/moves \\\n -d '{\"position\":\"position\"}'"
},
{
"lang": "JavaScript",
@@ -30595,7 +30595,7 @@
{
"verb": "get",
"requestPath": "/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -30610,8 +30610,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42"
},
{
"lang": "JavaScript",
@@ -30676,7 +30676,7 @@
{
"verb": "patch",
"requestPath": "/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -30691,8 +30691,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -30895,7 +30895,7 @@
{
"verb": "delete",
"requestPath": "/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -30910,8 +30910,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42"
},
{
"lang": "JavaScript",
@@ -30985,7 +30985,7 @@
{
"verb": "get",
"requestPath": "/projects/{project_id}/collaborators",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31036,8 +31036,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators"
},
{
"lang": "JavaScript",
@@ -31119,7 +31119,7 @@
{
"verb": "put",
"requestPath": "/projects/{project_id}/collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31143,8 +31143,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -31271,7 +31271,7 @@
{
"verb": "delete",
"requestPath": "/projects/{project_id}/collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31295,8 +31295,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME"
},
{
"lang": "JavaScript",
@@ -31377,7 +31377,7 @@
{
"verb": "get",
"requestPath": "/projects/{project_id}/collaborators/{username}/permission",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31401,8 +31401,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME/permission",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/collaborators/USERNAME/permission"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME/permission",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/collaborators/USERNAME/permission"
},
{
"lang": "JavaScript",
@@ -31484,7 +31484,7 @@
{
"verb": "get",
"requestPath": "/projects/{project_id}/columns",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31519,8 +31519,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/columns",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/columns"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/columns",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/columns"
},
{
"lang": "JavaScript",
@@ -31587,7 +31587,7 @@
{
"verb": "post",
"requestPath": "/projects/{project_id}/columns",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "project_id",
@@ -31602,8 +31602,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/columns \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/projects/42/columns \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/columns \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/projects/42/columns \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -31711,13 +31711,13 @@
{
"verb": "get",
"requestPath": "/rate_limit",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/rate_limit",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/rate_limit"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/rate_limit",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/rate_limit"
},
{
"lang": "JavaScript",
@@ -31770,7 +31770,7 @@
{
"verb": "delete",
"requestPath": "/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "reaction_id",
@@ -31785,8 +31785,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/reactions/42"
},
{
"lang": "JavaScript",
@@ -31863,7 +31863,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -31887,8 +31887,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -31965,7 +31965,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -31989,8 +31989,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -32390,7 +32390,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32414,8 +32414,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -32473,7 +32473,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/artifacts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32517,8 +32517,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts"
},
{
"lang": "JavaScript",
@@ -32563,7 +32563,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32597,8 +32597,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42"
},
{
"lang": "JavaScript",
@@ -32643,7 +32643,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32677,8 +32677,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42"
},
{
"lang": "JavaScript",
@@ -32722,7 +32722,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32765,8 +32765,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42/ARCHIVE_FORMAT",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/artifacts/42/ARCHIVE_FORMAT"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42/ARCHIVE_FORMAT",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/artifacts/42/ARCHIVE_FORMAT"
},
{
"lang": "JavaScript",
@@ -32810,7 +32810,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/jobs/{job_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32844,8 +32844,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/jobs/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/jobs/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/jobs/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/jobs/42"
},
{
"lang": "JavaScript",
@@ -32890,7 +32890,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/jobs/{job_id}/logs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32924,8 +32924,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/jobs/42/logs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/jobs/42/logs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/jobs/42/logs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/jobs/42/logs"
},
{
"lang": "JavaScript",
@@ -32969,7 +32969,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -32993,8 +32993,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions"
},
{
"lang": "JavaScript",
@@ -33039,7 +33039,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/permissions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33063,8 +33063,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions \\\n -d '{\"enabled\":true}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions \\\n -d '{\"enabled\":true}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions \\\n -d '{\"enabled\":true}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions \\\n -d '{\"enabled\":true}'"
},
{
"lang": "JavaScript",
@@ -33174,7 +33174,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33198,8 +33198,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions/selected-actions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions/selected-actions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions/selected-actions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions/selected-actions"
},
{
"lang": "JavaScript",
@@ -33244,7 +33244,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/permissions/selected-actions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33268,8 +33268,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/permissions/selected-actions \\\n -d '{\"github_owned_allowed\":true,\"patterns_allowed\":[\"patterns_allowed\"]}'"
},
{
"lang": "JavaScript",
@@ -33384,7 +33384,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runners",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33428,8 +33428,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners"
},
{
"lang": "JavaScript",
@@ -33474,7 +33474,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runners/downloads",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33498,8 +33498,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/downloads",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/downloads"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/downloads",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/downloads"
},
{
"lang": "JavaScript",
@@ -33544,7 +33544,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runners/registration-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33568,8 +33568,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/registration-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/registration-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/registration-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/registration-token"
},
{
"lang": "JavaScript",
@@ -33614,7 +33614,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runners/remove-token",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33638,8 +33638,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/remove-token",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/remove-token"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/remove-token",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/remove-token"
},
{
"lang": "JavaScript",
@@ -33684,7 +33684,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33718,8 +33718,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -33764,7 +33764,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/actions/runners/{runner_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33798,8 +33798,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runners/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runners/42"
},
{
"lang": "JavaScript",
@@ -33843,7 +33843,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -33937,13 +33937,23 @@
"default": 1
},
"descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ { "lang": "Shell", - "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs", - "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs"
},
{
"lang": "JavaScript",
@@ -33988,7 +33998,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34022,8 +34032,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42"
},
{
"lang": "JavaScript",
@@ -34068,7 +34078,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34102,8 +34112,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42"
},
{
"lang": "JavaScript",
@@ -34147,7 +34157,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34201,8 +34211,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/artifacts",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/artifacts"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/artifacts",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/artifacts"
},
{
"lang": "JavaScript",
@@ -34247,7 +34257,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/cancel",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34281,8 +34291,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/cancel",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/cancel"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/cancel",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/cancel"
},
{
"lang": "JavaScript",
@@ -34326,7 +34336,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34395,8 +34405,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/jobs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/jobs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/jobs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/jobs"
},
{
"lang": "JavaScript",
@@ -34441,7 +34451,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/logs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34475,8 +34485,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/logs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/logs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/logs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/logs"
},
{
"lang": "JavaScript",
@@ -34520,7 +34530,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/logs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34554,8 +34564,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/logs",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/logs"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/logs",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/logs"
},
{
"lang": "JavaScript",
@@ -34599,7 +34609,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/runs/{run_id}/rerun",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34633,8 +34643,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/rerun",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/runs/42/rerun"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/rerun",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/runs/42/rerun"
},
{
"lang": "JavaScript",
@@ -34678,7 +34688,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/secrets",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34722,8 +34732,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets"
},
{
"lang": "JavaScript",
@@ -34768,7 +34778,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/secrets/public-key",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34792,8 +34802,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/public-key",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/public-key"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/public-key",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/public-key"
},
{
"lang": "JavaScript",
@@ -34838,7 +34848,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34872,8 +34882,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME"
},
{
"lang": "JavaScript",
@@ -34918,7 +34928,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -34952,8 +34962,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME \\\n -d '{\"encrypted_value\":\"encrypted_value\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME \\\n -d '{\"encrypted_value\":\"encrypted_value\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME \\\n -d '{\"encrypted_value\":\"encrypted_value\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME \\\n -d '{\"encrypted_value\":\"encrypted_value\"}'"
},
{
"lang": "JavaScript",
@@ -35057,7 +35067,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/actions/secrets/{secret_name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35091,8 +35101,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/secrets/SECRET_NAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/secrets/SECRET_NAME"
},
{
"lang": "JavaScript",
@@ -35136,7 +35146,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/workflows",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35180,8 +35190,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows"
},
{
"lang": "JavaScript",
@@ -35226,7 +35236,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/workflows/{workflow_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35267,8 +35277,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42"
},
{
"lang": "JavaScript",
@@ -35313,7 +35323,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35354,8 +35364,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/disable",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/disable"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/disable",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/disable"
},
{
"lang": "JavaScript",
@@ -35399,7 +35409,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35440,8 +35450,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/dispatches \\\n -d '{\"ref\":\"ref\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/dispatches \\\n -d '{\"ref\":\"ref\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/dispatches \\\n -d '{\"ref\":\"ref\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/dispatches \\\n -d '{\"ref\":\"ref\"}'"
},
{
"lang": "JavaScript",
@@ -35552,7 +35562,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35593,8 +35603,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/enable",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/enable"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/enable",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/enable"
},
{
"lang": "JavaScript",
@@ -35638,7 +35648,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35749,13 +35759,23 @@
"default": 1
},
"descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ { "lang": "Shell", - "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/runs", - "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/actions/workflows/42/runs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/runs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/actions/workflows/42/runs"
},
{
"lang": "JavaScript",
@@ -35800,7 +35820,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/assignees",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35844,8 +35864,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/assignees",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/assignees"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/assignees",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/assignees"
},
{
"lang": "JavaScript",
@@ -35895,7 +35915,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/assignees/{assignee}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -35928,8 +35948,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/assignees/ASSIGNEE",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/assignees/ASSIGNEE"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/assignees/ASSIGNEE",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/assignees/ASSIGNEE"
},
{
"lang": "JavaScript",
@@ -35978,7 +35998,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -36032,8 +36052,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches"
},
{
"lang": "JavaScript",
@@ -36083,7 +36103,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -36118,8 +36138,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH"
},
{
"lang": "JavaScript",
@@ -36178,7 +36198,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -36213,8 +36233,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection"
},
{
"lang": "JavaScript",
@@ -36271,7 +36291,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -36306,8 +36326,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection \\\n -d '{\"required_status_checks\":{\"strict\":true,\"contexts\":[\"contexts\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":42},\"restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"],\"apps\":[\"apps\"]}}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection \\\n -d '{\"required_status_checks\":{\"strict\":true,\"contexts\":[\"contexts\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":42},\"restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"],\"apps\":[\"apps\"]}}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection \\\n -d '{\"required_status_checks\":{\"strict\":true,\"contexts\":[\"contexts\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":42},\"restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"],\"apps\":[\"apps\"]}}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection \\\n -d '{\"required_status_checks\":{\"strict\":true,\"contexts\":[\"contexts\"]},\"enforce_admins\":true,\"required_pull_request_reviews\":{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]},\"dismiss_stale_reviews\":true,\"require_code_owner_reviews\":true,\"required_approving_review_count\":42},\"restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"],\"apps\":[\"apps\"]}}'"
},
{
"lang": "JavaScript",
@@ -37330,7 +37350,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37365,8 +37385,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection"
},
{
"lang": "JavaScript",
@@ -37415,7 +37435,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37450,8 +37470,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
},
{
"lang": "JavaScript",
@@ -37496,7 +37516,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37531,8 +37551,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
},
{
"lang": "JavaScript",
@@ -37577,7 +37597,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37612,8 +37632,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/enforce_admins"
},
{
"lang": "JavaScript",
@@ -37662,7 +37682,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37697,8 +37717,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews"
},
{
"lang": "JavaScript",
@@ -37750,7 +37770,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -37785,8 +37805,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews \\\n -d '{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]}}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews \\\n -d '{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]}}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews \\\n -d '{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]}}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews \\\n -d '{\"dismissal_restrictions\":{\"users\":[\"users\"],\"teams\":[\"teams\"]}}'"
},
{
"lang": "JavaScript",
@@ -38057,7 +38077,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38092,8 +38112,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_pull_request_reviews"
},
{
"lang": "JavaScript",
@@ -38142,7 +38162,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38177,8 +38197,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
- "html": "curl \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
},
{
"lang": "JavaScript",
@@ -38235,7 +38255,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38270,8 +38290,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
},
{
"lang": "JavaScript",
@@ -38328,7 +38348,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_signatures",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38363,8 +38383,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.zzzax-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_signatures"
},
{
"lang": "JavaScript",
@@ -38420,7 +38440,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38455,8 +38475,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks"
},
{
"lang": "JavaScript",
@@ -38506,7 +38526,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38541,8 +38561,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks \\\n -d '{\"strict\":true}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks \\\n -d '{\"strict\":true}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks \\\n -d '{\"strict\":true}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks \\\n -d '{\"strict\":true}'"
},
{
"lang": "JavaScript",
@@ -38658,7 +38678,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38693,8 +38713,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks"
},
{
"lang": "JavaScript",
@@ -38738,7 +38758,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38773,8 +38793,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
},
{
"lang": "JavaScript",
@@ -38824,7 +38844,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -38859,8 +38879,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
},
{
"lang": "JavaScript",
@@ -38977,7 +38997,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39012,8 +39032,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
},
{
"lang": "JavaScript",
@@ -39125,7 +39145,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39160,8 +39180,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/required_status_checks/contexts"
},
{
"lang": "JavaScript",
@@ -39273,7 +39293,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39308,8 +39328,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions"
},
{
"lang": "JavaScript",
@@ -39359,7 +39379,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39394,8 +39414,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions"
},
{
"lang": "JavaScript",
@@ -39439,7 +39459,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39474,8 +39494,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
},
{
"lang": "JavaScript",
@@ -39525,7 +39545,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39560,8 +39580,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
},
{
"lang": "JavaScript",
@@ -39667,7 +39687,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39702,8 +39722,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
},
{
"lang": "JavaScript",
@@ -39809,7 +39829,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39844,8 +39864,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/apps"
},
{
"lang": "JavaScript",
@@ -39951,7 +39971,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -39986,8 +40006,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
},
{
"lang": "JavaScript",
@@ -40037,7 +40057,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40072,8 +40092,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
},
{
"lang": "JavaScript",
@@ -40180,7 +40200,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40215,8 +40235,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
},
{
"lang": "JavaScript",
@@ -40323,7 +40343,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40358,8 +40378,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/teams"
},
{
"lang": "JavaScript",
@@ -40466,7 +40486,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40501,8 +40521,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
},
{
"lang": "JavaScript",
@@ -40552,7 +40572,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40587,8 +40607,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
},
{
"lang": "JavaScript",
@@ -40694,7 +40714,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40729,8 +40749,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
},
{
"lang": "JavaScript",
@@ -40836,7 +40856,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -40871,8 +40891,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/protection/restrictions/users"
},
{
"lang": "JavaScript",
@@ -40978,7 +40998,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/branches/{branch}/rename",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -41013,8 +41033,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/branches/BRANCH/rename \\\n -d '{\"new_name\":\"new_name\"}'"
},
{
"lang": "JavaScript",
@@ -41111,7 +41131,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/check-runs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -41135,8 +41155,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs \\\n -d '{\"name\":\"name\",\"head_sha\":\"head_sha\"}'"
},
{
"lang": "JavaScript",
@@ -43191,7 +43211,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/check-runs/{check_run_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -43225,8 +43245,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42"
},
{
"lang": "JavaScript",
@@ -43271,7 +43291,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/check-runs/{check_run_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -43305,8 +43325,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -45306,7 +45326,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45360,8 +45380,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42/annotations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-runs/42/annotations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/annotations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-runs/42/annotations"
},
{
"lang": "JavaScript",
@@ -45406,7 +45426,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/check-suites",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45430,8 +45450,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites \\\n -d '{\"head_sha\":\"head_sha\"}'"
},
{
"lang": "JavaScript",
@@ -45519,7 +45539,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/check-suites/preferences",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45543,8 +45563,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/preferences \\\n -d '{\"auto_trigger_checks\":[{\"app_id\":42,\"setting\":true}]}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/preferences \\\n -d '{\"auto_trigger_checks\":[{\"app_id\":42,\"setting\":true}]}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/preferences \\\n -d '{\"auto_trigger_checks\":[{\"app_id\":42,\"setting\":true}]}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/preferences \\\n -d '{\"auto_trigger_checks\":[{\"app_id\":42,\"setting\":true}]}'"
},
{
"lang": "JavaScript",
@@ -45738,7 +45758,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/check-suites/{check_suite_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45772,8 +45792,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42"
},
{
"lang": "JavaScript",
@@ -45818,7 +45838,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45912,8 +45932,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42/check-runs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42/check-runs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42/check-runs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42/check-runs"
},
{
"lang": "JavaScript",
@@ -45958,7 +45978,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -45992,8 +46012,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42/rerequest",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/check-suites/42/rerequest"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42/rerequest",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/check-suites/42/rerequest"
},
{
"lang": "JavaScript",
@@ -46037,7 +46057,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/alerts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46132,8 +46152,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts"
},
{
"lang": "JavaScript",
@@ -46191,7 +46211,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46228,8 +46248,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42"
},
{
"lang": "JavaScript",
@@ -46265,7 +46285,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
},
{
"httpStatusCode": "403",
@@ -46287,7 +46307,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46324,8 +46344,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42 \\\n -d '{\"state\":\"state\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42 \\\n -d '{\"state\":\"state\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42 \\\n -d '{\"state\":\"state\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42 \\\n -d '{\"state\":\"state\"}'"
},
{
"lang": "JavaScript",
@@ -46438,7 +46458,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
},
{
"httpStatusCode": "403",
@@ -46460,7 +46480,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46528,8 +46548,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42/instances",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/alerts/42/instances"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42/instances",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/alerts/42/instances"
},
{
"lang": "JavaScript",
@@ -46587,7 +46607,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/analyses",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46678,8 +46698,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses"
},
{
"lang": "JavaScript",
@@ -46736,7 +46756,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46770,8 +46790,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses/42"
},
{
"lang": "JavaScript",
@@ -46828,7 +46848,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46873,8 +46893,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/analyses/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/analyses/42"
},
{
"lang": "JavaScript",
@@ -46936,7 +46956,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/code-scanning/sarifs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -46960,8 +46980,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/sarifs \\\n -d '{\"commit_sha\":\"commit_sha\",\"ref\":\"ref\",\"sarif\":\"sarif\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/sarifs \\\n -d '{\"commit_sha\":\"commit_sha\",\"ref\":\"ref\",\"sarif\":\"sarif\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/sarifs \\\n -d '{\"commit_sha\":\"commit_sha\",\"ref\":\"ref\",\"sarif\":\"sarif\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/sarifs \\\n -d '{\"commit_sha\":\"commit_sha\",\"ref\":\"ref\",\"sarif\":\"sarif\"}'"
},
{
"lang": "JavaScript",
@@ -47166,7 +47186,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47200,8 +47220,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/sarifs/SARIF_ID",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/code-scanning/sarifs/SARIF_ID"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/sarifs/SARIF_ID",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/code-scanning/sarifs/SARIF_ID"
},
{
"lang": "JavaScript",
@@ -47258,7 +47278,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/collaborators",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47318,8 +47338,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators"
},
{
"lang": "JavaScript",
@@ -47369,7 +47389,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47402,8 +47422,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME"
},
{
"lang": "JavaScript",
@@ -47452,7 +47472,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47485,8 +47505,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -47612,7 +47632,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/collaborators/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47645,8 +47665,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME"
},
{
"lang": "JavaScript",
@@ -47690,7 +47710,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/collaborators/{username}/permission",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47723,8 +47743,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME/permission",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/collaborators/USERNAME/permission"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME/permission",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/collaborators/USERNAME/permission"
},
{
"lang": "JavaScript",
@@ -47774,7 +47794,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47818,8 +47838,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments"
},
{
"lang": "JavaScript",
@@ -47871,7 +47891,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47905,8 +47925,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42"
},
{
"lang": "JavaScript",
@@ -47963,7 +47983,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -47997,8 +48017,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -48085,7 +48105,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48119,8 +48139,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42"
},
{
"lang": "JavaScript",
@@ -48169,7 +48189,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48243,8 +48263,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions"
},
{
"lang": "JavaScript",
@@ -48304,7 +48324,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48338,8 +48358,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -48462,7 +48482,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48505,8 +48525,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/comments/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/comments/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -48555,7 +48575,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48651,8 +48671,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits"
},
{
"lang": "JavaScript",
@@ -48717,7 +48737,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48752,8 +48772,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/branches-where-head",
- "html": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/branches-where-head"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/branches-where-head",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/branches-where-head"
},
{
"lang": "JavaScript",
@@ -48815,7 +48835,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{commit_sha}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48870,8 +48890,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/comments"
},
{
"lang": "JavaScript",
@@ -48923,7 +48943,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/commits/{commit_sha}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -48958,8 +48978,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -49109,7 +49129,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{commit_sha}/pulls",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49164,8 +49184,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/pulls",
- "html": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/COMMIT_SHA/pulls"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/pulls",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.groot-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/COMMIT_SHA/pulls"
},
{
"lang": "JavaScript",
@@ -49222,7 +49242,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49277,8 +49297,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF"
},
{
"lang": "JavaScript",
@@ -49338,7 +49358,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{ref}/check-runs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49442,8 +49462,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/check-runs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/check-runs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/check-runs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/check-runs"
},
{
"lang": "JavaScript",
@@ -49488,7 +49508,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{ref}/check-suites",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49564,8 +49584,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/check-suites",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/check-suites"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/check-suites",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/check-suites"
},
{
"lang": "JavaScript",
@@ -49610,7 +49630,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{ref}/status",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49665,8 +49685,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/status",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/status"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/status",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/status"
},
{
"lang": "JavaScript",
@@ -49716,7 +49736,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/commits/{ref}/statuses",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49771,8 +49791,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/statuses",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/commits/REF/statuses"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/statuses",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/commits/REF/statuses"
},
{
"lang": "JavaScript",
@@ -49822,7 +49842,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/compare/{basehead}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49856,8 +49876,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/compare/BASEHEAD",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/compare/BASEHEAD"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/compare/BASEHEAD",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/compare/BASEHEAD"
},
{
"lang": "JavaScript",
@@ -49912,7 +49932,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/content_references/{content_reference_id}/attachments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -49948,8 +49968,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.corsair-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/content_references/42/attachments \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -50092,7 +50112,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -50137,8 +50157,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH"
},
{
"lang": "JavaScript",
@@ -50216,7 +50236,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -50251,8 +50271,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"content\":\"content\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"content\":\"content\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"content\":\"content\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -50740,7 +50760,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/contents/{path}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -50775,8 +50795,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contents/PATH \\\n -d '{\"message\":\"message\",\"sha\":\"sha\"}'"
},
{
"lang": "JavaScript",
@@ -51140,7 +51160,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/contributors",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51194,8 +51214,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contributors",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/contributors"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contributors",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/contributors"
},
{
"lang": "JavaScript",
@@ -51253,7 +51273,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/deployments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51342,8 +51362,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments"
},
{
"lang": "JavaScript",
@@ -51395,7 +51415,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/deployments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51419,8 +51439,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments \\\n -d '{\"ref\":\"ref\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments \\\n -d '{\"ref\":\"ref\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments \\\n -d '{\"ref\":\"ref\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments \\\n -d '{\"ref\":\"ref\"}'"
},
{
"lang": "JavaScript",
@@ -51725,7 +51745,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/deployments/{deployment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51759,8 +51779,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42"
},
{
"lang": "JavaScript",
@@ -51817,7 +51837,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/deployments/{deployment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51851,8 +51871,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42"
},
{
"lang": "JavaScript",
@@ -51906,7 +51926,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -51960,8 +51980,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses"
},
{
"lang": "JavaScript",
@@ -52024,7 +52044,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52058,8 +52078,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses \\\n -d '{\"state\":\"state\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses \\\n -d '{\"state\":\"state\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses \\\n -d '{\"state\":\"state\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses \\\n -d '{\"state\":\"state\"}'"
},
{
"lang": "JavaScript",
@@ -52306,7 +52326,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52349,8 +52369,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/deployments/42/statuses/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/deployments/42/statuses/42"
},
{
"lang": "JavaScript",
@@ -52418,7 +52438,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/dispatches",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52442,8 +52462,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/dispatches \\\n -d '{\"event_type\":\"event_type\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/dispatches \\\n -d '{\"event_type\":\"event_type\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/dispatches \\\n -d '{\"event_type\":\"event_type\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/dispatches \\\n -d '{\"event_type\":\"event_type\"}'"
},
{
"lang": "JavaScript",
@@ -52557,7 +52577,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52601,8 +52621,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/events"
},
{
"lang": "JavaScript",
@@ -52646,7 +52666,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/forks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52707,8 +52727,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/forks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/forks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/forks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/forks"
},
{
"lang": "JavaScript",
@@ -52758,7 +52778,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/forks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52782,8 +52802,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/forks \\\n -d '{\"organization\":\"organization\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/forks \\\n -d '{\"organization\":\"organization\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/forks \\\n -d '{\"organization\":\"organization\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/forks \\\n -d '{\"organization\":\"organization\"}'"
},
{
"lang": "JavaScript",
@@ -52880,7 +52900,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/git/blobs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -52904,8 +52924,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/blobs \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/blobs \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/blobs \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/blobs \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -53028,7 +53048,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/blobs/{file_sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53061,8 +53081,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/blobs/FILE_SHA",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/blobs/FILE_SHA"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/blobs/FILE_SHA",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/blobs/FILE_SHA"
},
{
"lang": "JavaScript",
@@ -53122,7 +53142,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/git/commits",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53146,8 +53166,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/commits \\\n -d '{\"message\":\"message\",\"tree\":\"tree\"}'"
},
{
"lang": "JavaScript",
@@ -53618,7 +53638,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/commits/{commit_sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53653,8 +53673,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/commits/COMMIT_SHA",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/commits/COMMIT_SHA"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/commits/COMMIT_SHA",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/commits/COMMIT_SHA"
},
{
"lang": "JavaScript",
@@ -53704,7 +53724,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/matching-refs/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53759,8 +53779,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/matching-refs/REF",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/matching-refs/REF"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/matching-refs/REF",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/matching-refs/REF"
},
{
"lang": "JavaScript",
@@ -53805,7 +53825,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/ref/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53840,8 +53860,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/ref/REF",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/ref/REF"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/ref/REF",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/ref/REF"
},
{
"lang": "JavaScript",
@@ -53891,7 +53911,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/git/refs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -53915,8 +53935,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs \\\n -d '{\"ref\":\"ref\",\"sha\":\"sha\"}'"
},
{
"lang": "JavaScript",
@@ -54041,7 +54061,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/git/refs/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -54076,8 +54096,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs/REF \\\n -d '{\"sha\":\"sha\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs/REF \\\n -d '{\"sha\":\"sha\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs/REF \\\n -d '{\"sha\":\"sha\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs/REF \\\n -d '{\"sha\":\"sha\"}'"
},
{
"lang": "JavaScript",
@@ -54185,7 +54205,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/git/refs/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -54220,8 +54240,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs/REF",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/refs/REF"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs/REF",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/refs/REF"
},
{
"lang": "JavaScript",
@@ -54270,7 +54290,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/git/tags",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -54294,8 +54314,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/tags \\\n -d '{\"tag\":\"tag\",\"message\":\"message\",\"object\":\"object\",\"type\":\"type\"}'"
},
{
"lang": "JavaScript",
@@ -54615,7 +54635,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/tags/{tag_sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -54648,8 +54668,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/tags/TAG_SHA",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/tags/TAG_SHA"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/tags/TAG_SHA",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/tags/TAG_SHA"
},
{
"lang": "JavaScript",
@@ -54699,7 +54719,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/git/trees",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -54723,8 +54743,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/trees \\\n -d '{\"tree\":[{\"path\":\"path\",\"mode\":\"mode\",\"type\":\"type\",\"sha\":\"sha\",\"content\":\"content\"}]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/trees \\\n -d '{\"tree\":[{\"path\":\"path\",\"mode\":\"mode\",\"type\":\"type\",\"sha\":\"sha\",\"content\":\"content\"}]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/trees \\\n -d '{\"tree\":[{\"path\":\"path\",\"mode\":\"mode\",\"type\":\"type\",\"sha\":\"sha\",\"content\":\"content\"}]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/trees \\\n -d '{\"tree\":[{\"path\":\"path\",\"mode\":\"mode\",\"type\":\"type\",\"sha\":\"sha\",\"content\":\"content\"}]}'"
},
{
"lang": "JavaScript",
@@ -55105,7 +55125,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/git/trees/{tree_sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -55149,8 +55169,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/trees/TREE_SHA",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/git/trees/TREE_SHA"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/trees/TREE_SHA",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/git/trees/TREE_SHA"
},
{
"lang": "JavaScript",
@@ -55211,7 +55231,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -55255,8 +55275,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks"
},
{
"lang": "JavaScript",
@@ -55306,7 +55326,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -55330,8 +55350,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -55789,7 +55809,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -55822,8 +55842,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42"
},
{
"lang": "JavaScript",
@@ -55873,7 +55893,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -55906,8 +55926,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"address\":\"address\",\"room\":\"room\"}}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"address\":\"address\",\"room\":\"room\"}}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"address\":\"address\",\"room\":\"room\"}}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42 \\\n -d '{\"config\":{\"url\":\"url\",\"content_type\":\"content_type\",\"secret\":\"secret\",\"insecure_ssl\":\"insecure_ssl\",\"address\":\"address\",\"room\":\"room\"}}'"
},
{
"lang": "JavaScript",
@@ -56387,7 +56407,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56420,8 +56440,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42"
},
{
"lang": "JavaScript",
@@ -56470,7 +56490,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56503,8 +56523,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/config",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/config"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/config",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/config"
},
{
"lang": "JavaScript",
@@ -56549,7 +56569,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/config",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56582,8 +56602,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/config \\\n -d '{\"url\":\"url\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/config \\\n -d '{\"url\":\"url\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/config \\\n -d '{\"url\":\"url\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/config \\\n -d '{\"url\":\"url\"}'"
},
{
"lang": "JavaScript",
@@ -56744,7 +56764,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/pings",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56777,8 +56797,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/pings",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/pings"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/pings",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/pings"
},
{
"lang": "JavaScript",
@@ -56827,7 +56847,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/hooks/{hook_id}/tests",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56860,8 +56880,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/tests",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/hooks/42/tests"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/tests",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/hooks/42/tests"
},
{
"lang": "JavaScript",
@@ -56910,7 +56930,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/installation",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -56934,8 +56954,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/installation",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/installation"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/installation",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/installation"
},
{
"lang": "JavaScript",
@@ -56988,7 +57008,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/invitations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57032,8 +57052,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations"
},
{
"lang": "JavaScript",
@@ -57078,7 +57098,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/invitations/{invitation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57112,8 +57132,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations/42 \\\n -d '{\"permissions\":\"permissions\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations/42 \\\n -d '{\"permissions\":\"permissions\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations/42 \\\n -d '{\"permissions\":\"permissions\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations/42 \\\n -d '{\"permissions\":\"permissions\"}'"
},
{
"lang": "JavaScript",
@@ -57203,7 +57223,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/invitations/{invitation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57237,8 +57257,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/invitations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/invitations/42"
},
{
"lang": "JavaScript",
@@ -57282,7 +57302,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57434,8 +57454,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues"
},
{
"lang": "JavaScript",
@@ -57500,7 +57520,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57524,8 +57544,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -57819,7 +57839,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -57903,8 +57923,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments"
},
{
"lang": "JavaScript",
@@ -57966,7 +57986,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58000,8 +58020,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42"
},
{
"lang": "JavaScript",
@@ -58058,7 +58078,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58092,8 +58112,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -58180,7 +58200,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58214,8 +58234,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42"
},
{
"lang": "JavaScript",
@@ -58259,7 +58279,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58333,8 +58353,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions"
},
{
"lang": "JavaScript",
@@ -58394,7 +58414,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58428,8 +58448,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -58552,7 +58572,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58595,8 +58615,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/comments/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/comments/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -58645,7 +58665,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58689,8 +58709,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/events"
},
{
"lang": "JavaScript",
@@ -58747,7 +58767,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/events/{event_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58780,8 +58800,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/events/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/events/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/events/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/events/42"
},
{
"lang": "JavaScript",
@@ -58848,7 +58868,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58882,8 +58902,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42"
},
{
"lang": "JavaScript",
@@ -58953,7 +58973,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -58987,8 +59007,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42 \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42 \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42 \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42 \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -59314,7 +59334,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/assignees",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59348,8 +59368,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'"
},
{
"lang": "JavaScript",
@@ -59437,7 +59457,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/assignees",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59471,8 +59491,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/assignees \\\n -d '{\"assignees\":[\"assignees\"]}'"
},
{
"lang": "JavaScript",
@@ -59560,7 +59580,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59625,8 +59645,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/comments"
},
{
"lang": "JavaScript",
@@ -59688,7 +59708,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59722,8 +59742,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -59826,7 +59846,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59880,8 +59900,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/events"
},
{
"lang": "JavaScript",
@@ -59938,7 +59958,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -59992,8 +60012,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels"
},
{
"lang": "JavaScript",
@@ -60043,7 +60063,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60077,8 +60097,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels"
},
{
"lang": "JavaScript",
@@ -60227,7 +60247,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60261,8 +60281,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels"
},
{
"lang": "JavaScript",
@@ -60388,7 +60408,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60422,8 +60442,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels"
},
{
"lang": "JavaScript",
@@ -60472,7 +60492,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60515,8 +60535,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels/NAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/labels/NAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels/NAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/labels/NAME"
},
{
"lang": "JavaScript",
@@ -60571,7 +60591,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/lock",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60605,8 +60625,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/lock \\\n -d '{\"lock_reason\":\"lock_reason\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/lock \\\n -d '{\"lock_reason\":\"lock_reason\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/lock \\\n -d '{\"lock_reason\":\"lock_reason\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/lock \\\n -d '{\"lock_reason\":\"lock_reason\"}'"
},
{
"lang": "JavaScript",
@@ -60712,7 +60732,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/lock",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60746,8 +60766,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/lock",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/lock"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/lock",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/lock"
},
{
"lang": "JavaScript",
@@ -60799,7 +60819,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60873,8 +60893,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions"
},
{
"lang": "JavaScript",
@@ -60939,7 +60959,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -60973,8 +60993,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -61097,7 +61117,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61140,8 +61160,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -61190,7 +61210,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/issues/{issue_number}/timeline",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61244,8 +61264,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.mockingbird-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/timeline",
- "html": "curl \\\n -H \"Accept: application/vnd.github.mockingbird-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/issues/42/timeline"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.mockingbird-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/timeline",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.mockingbird-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/issues/42/timeline"
},
{
"lang": "JavaScript",
@@ -61317,7 +61337,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61361,8 +61381,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys"
},
{
"lang": "JavaScript",
@@ -61407,7 +61427,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61431,8 +61451,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys \\\n -d '{\"key\":\"key\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys \\\n -d '{\"key\":\"key\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys \\\n -d '{\"key\":\"key\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys \\\n -d '{\"key\":\"key\"}'"
},
{
"lang": "JavaScript",
@@ -61557,7 +61577,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/keys/{key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61591,8 +61611,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys/42"
},
{
"lang": "JavaScript",
@@ -61642,7 +61662,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/keys/{key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61676,8 +61696,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/keys/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/keys/42"
},
{
"lang": "JavaScript",
@@ -61721,7 +61741,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61765,8 +61785,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels"
},
{
"lang": "JavaScript",
@@ -61816,7 +61836,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -61840,8 +61860,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -61971,7 +61991,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/labels/{name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62004,8 +62024,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME"
},
{
"lang": "JavaScript",
@@ -62055,7 +62075,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/labels/{name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62088,8 +62108,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME \\\n -d '{\"new_name\":\"new_name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME \\\n -d '{\"new_name\":\"new_name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME \\\n -d '{\"new_name\":\"new_name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME \\\n -d '{\"new_name\":\"new_name\"}'"
},
{
"lang": "JavaScript",
@@ -62206,7 +62226,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/labels/{name}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62239,8 +62259,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/labels/NAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/labels/NAME"
},
{
"lang": "JavaScript",
@@ -62284,7 +62304,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/languages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62308,8 +62328,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/languages",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/languages"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/languages",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/languages"
},
{
"lang": "JavaScript",
@@ -62352,7 +62372,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/license",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62376,8 +62396,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/license",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/license"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/license",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/license"
},
{
"lang": "JavaScript",
@@ -62420,7 +62440,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/merges",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62444,8 +62464,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/merges \\\n -d '{\"base\":\"base\",\"head\":\"head\"}'"
},
{
"lang": "JavaScript",
@@ -62591,7 +62611,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/milestones",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62681,8 +62701,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones"
},
{
"lang": "JavaScript",
@@ -62732,7 +62752,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/milestones",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62756,8 +62776,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -62918,7 +62938,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/milestones/{milestone_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -62952,8 +62972,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42"
},
{
"lang": "JavaScript",
@@ -63003,7 +63023,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/milestones/{milestone_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63037,8 +63057,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42 \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42 \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42 \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42 \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -63186,7 +63206,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/milestones/{milestone_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63220,8 +63240,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42"
},
{
"lang": "JavaScript",
@@ -63270,7 +63290,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/milestones/{milestone_number}/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63324,8 +63344,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42/labels",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/milestones/42/labels"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42/labels",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/milestones/42/labels"
},
{
"lang": "JavaScript",
@@ -63370,7 +63390,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/notifications",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63458,8 +63478,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/notifications",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/notifications"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/notifications",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/notifications"
},
{
"lang": "JavaScript",
@@ -63504,7 +63524,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/notifications",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63528,8 +63548,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/notifications \\\n -d '{\"last_read_at\":\"last_read_at\"}'"
},
{
"lang": "JavaScript",
@@ -63611,7 +63631,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63635,8 +63655,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages"
},
{
"lang": "JavaScript",
@@ -63686,7 +63706,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63710,8 +63730,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"source\":{\"branch\":\"branch\",\"path\":\"path\"}}'"
},
{
"lang": "JavaScript",
@@ -63938,7 +63958,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -63962,8 +63982,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages \\\n -d '{\"cname\":\"cname\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages \\\n -d '{\"cname\":\"cname\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"cname\":\"cname\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages \\\n -d '{\"cname\":\"cname\"}'"
},
{
"lang": "JavaScript",
@@ -64195,7 +64215,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pages",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64219,8 +64239,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.switcheroo-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages"
},
{
"lang": "JavaScript",
@@ -64286,7 +64306,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pages/builds",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64330,8 +64350,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds"
},
{
"lang": "JavaScript",
@@ -64376,7 +64396,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pages/builds",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64400,8 +64420,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds"
},
{
"lang": "JavaScript",
@@ -64446,7 +64466,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pages/builds/latest",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64470,8 +64490,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds/latest",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds/latest"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds/latest",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds/latest"
},
{
"lang": "JavaScript",
@@ -64516,7 +64536,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pages/builds/{build_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64549,8 +64569,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pages/builds/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pages/builds/42"
},
{
"lang": "JavaScript",
@@ -64595,7 +64615,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pre-receive-hooks",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64669,8 +64689,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks"
},
{
"lang": "JavaScript",
@@ -64722,7 +64742,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64756,8 +64776,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -64809,7 +64829,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64843,8 +64863,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42 \\\n -d '{\"enforcement\":\"enforcement\"}'"
},
{
"lang": "JavaScript",
@@ -64940,7 +64960,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pre-receive-hooks/{pre_receive_hook_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -64974,8 +64994,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pre-receive-hooks/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.eye-scream-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pre-receive-hooks/42"
},
{
"lang": "JavaScript",
@@ -65027,7 +65047,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65087,8 +65107,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/projects",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/projects"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/projects",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/projects"
},
{
"lang": "JavaScript",
@@ -65163,7 +65183,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65187,8 +65207,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/projects \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/projects \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/projects \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/projects \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -65319,7 +65339,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65430,8 +65450,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls"
},
{
"lang": "JavaScript",
@@ -65484,7 +65504,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65508,8 +65528,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls \\\n -d '{\"head\":\"head\",\"base\":\"base\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls \\\n -d '{\"head\":\"head\",\"base\":\"base\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls \\\n -d '{\"head\":\"head\",\"base\":\"base\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls \\\n -d '{\"head\":\"head\",\"base\":\"base\"}'"
},
{
"lang": "JavaScript",
@@ -65712,7 +65732,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65795,8 +65815,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments"
},
{
"lang": "JavaScript",
@@ -65854,7 +65874,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65888,8 +65908,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42"
},
{
"lang": "JavaScript",
@@ -65952,7 +65972,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -65986,8 +66006,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -66076,7 +66096,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66110,8 +66130,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42"
},
{
"lang": "JavaScript",
@@ -66160,7 +66180,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66234,8 +66254,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions"
},
{
"lang": "JavaScript",
@@ -66295,7 +66315,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66329,8 +66349,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -66453,7 +66473,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66496,8 +66516,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/comments/42/reactions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/comments/42/reactions/42"
},
{
"lang": "JavaScript",
@@ -66546,7 +66566,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66579,8 +66599,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42"
},
{
"lang": "JavaScript",
@@ -66638,7 +66658,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66671,8 +66691,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42 \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42 \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42 \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42 \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -66842,7 +66862,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -66935,8 +66955,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments"
},
{
"lang": "JavaScript",
@@ -66994,7 +67014,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67027,8 +67047,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -67311,7 +67331,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67354,8 +67374,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments/42/replies \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/comments/42/replies \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments/42/replies \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/comments/42/replies \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -67443,7 +67463,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/commits",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67496,8 +67516,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/commits",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/commits"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/commits",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/commits"
},
{
"lang": "JavaScript",
@@ -67540,7 +67560,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/files",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67593,8 +67613,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/files",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/files"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/files",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/files"
},
{
"lang": "JavaScript",
@@ -67647,7 +67667,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67680,8 +67700,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/merge",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/merge"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/merge",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/merge"
},
{
"lang": "JavaScript",
@@ -67728,7 +67748,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/merge",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67761,8 +67781,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/merge \\\n -d '{\"commit_title\":\"commit_title\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/merge \\\n -d '{\"commit_title\":\"commit_title\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/merge \\\n -d '{\"commit_title\":\"commit_title\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/merge \\\n -d '{\"commit_title\":\"commit_title\"}'"
},
{
"lang": "JavaScript",
@@ -67929,7 +67949,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -67982,8 +68002,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers"
},
{
"lang": "JavaScript",
@@ -68028,7 +68048,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -68061,8 +68081,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'"
},
{
"lang": "JavaScript",
@@ -68201,7 +68221,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -68234,8 +68254,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/requested_reviewers \\\n -d '{\"reviewers\":[\"reviewers\"]}'"
},
{
"lang": "JavaScript",
@@ -68358,7 +68378,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -68411,8 +68431,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews"
},
{
"lang": "JavaScript",
@@ -68457,7 +68477,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -68490,8 +68510,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews \\\n -d '{\"commit_id\":\"commit_id\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews \\\n -d '{\"commit_id\":\"commit_id\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews \\\n -d '{\"commit_id\":\"commit_id\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews \\\n -d '{\"commit_id\":\"commit_id\"}'"
},
{
"lang": "JavaScript",
@@ -68940,7 +68960,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -68983,8 +69003,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42"
},
{
"lang": "JavaScript",
@@ -69034,7 +69054,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69077,8 +69097,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -69165,7 +69185,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69208,8 +69228,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42"
},
{
"lang": "JavaScript",
@@ -69264,7 +69284,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69327,8 +69347,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/comments"
},
{
"lang": "JavaScript",
@@ -69378,7 +69398,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69421,8 +69441,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/dismissals \\\n -d '{\"message\":\"message\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/dismissals \\\n -d '{\"message\":\"message\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/dismissals \\\n -d '{\"message\":\"message\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/dismissals \\\n -d '{\"message\":\"message\"}'"
},
{
"lang": "JavaScript",
@@ -69529,7 +69549,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69572,8 +69592,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/events \\\n -d '{\"event\":\"event\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/reviews/42/events \\\n -d '{\"event\":\"event\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/events \\\n -d '{\"event\":\"event\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/reviews/42/events \\\n -d '{\"event\":\"event\"}'"
},
{
"lang": "JavaScript",
@@ -69695,7 +69715,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/pulls/{pull_number}/update-branch",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69728,8 +69748,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.lydian-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/update-branch \\\n -d '{\"expected_head_sha\":\"expected_head_sha\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.lydian-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/pulls/42/update-branch \\\n -d '{\"expected_head_sha\":\"expected_head_sha\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.lydian-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/update-branch \\\n -d '{\"expected_head_sha\":\"expected_head_sha\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.lydian-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/pulls/42/update-branch \\\n -d '{\"expected_head_sha\":\"expected_head_sha\"}'"
},
{
"lang": "JavaScript",
@@ -69829,7 +69849,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/readme",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69863,8 +69883,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/readme",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/readme"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/readme",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/readme"
},
{
"lang": "JavaScript",
@@ -69919,7 +69939,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/readme/{dir}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -69964,8 +69984,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/readme/DIR",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/readme/DIR"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/readme/DIR",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/readme/DIR"
},
{
"lang": "JavaScript",
@@ -70020,7 +70040,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70064,8 +70084,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases"
},
{
"lang": "JavaScript",
@@ -70115,7 +70135,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/releases",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70139,8 +70159,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases \\\n -d '{\"tag_name\":\"tag_name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases \\\n -d '{\"tag_name\":\"tag_name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases \\\n -d '{\"tag_name\":\"tag_name\"}'"
},
{
"lang": "JavaScript",
@@ -70327,7 +70347,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70361,8 +70381,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42"
},
{
"lang": "JavaScript",
@@ -70422,7 +70442,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70456,8 +70476,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -70573,7 +70593,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/releases/assets/{asset_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70607,8 +70627,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/assets/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/assets/42"
},
{
"lang": "JavaScript",
@@ -70652,7 +70672,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases/latest",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70676,8 +70696,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/latest",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/latest"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/latest",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/latest"
},
{
"lang": "JavaScript",
@@ -70722,7 +70742,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases/tags/{tag}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70757,8 +70777,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/tags/TAG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/tags/TAG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/tags/TAG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/tags/TAG"
},
{
"lang": "JavaScript",
@@ -70808,7 +70828,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70842,8 +70862,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42"
},
{
"lang": "JavaScript",
@@ -70893,7 +70913,7 @@
{
"verb": "patch",
"requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -70927,8 +70947,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42 \\\n -d '{\"tag_name\":\"tag_name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42 \\\n -d '{\"tag_name\":\"tag_name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42 \\\n -d '{\"tag_name\":\"tag_name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42 \\\n -d '{\"tag_name\":\"tag_name\"}'"
},
{
"lang": "JavaScript",
@@ -71102,7 +71122,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/releases/{release_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71136,8 +71156,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42"
},
{
"lang": "JavaScript",
@@ -71181,7 +71201,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71235,8 +71255,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42/assets",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42/assets"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42/assets",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42/assets"
},
{
"lang": "JavaScript",
@@ -71281,7 +71301,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/releases/{release_id}/assets",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71314,6 +71334,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -71331,13 +71352,13 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42/assets",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/releases/42/assets"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42/assets",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/releases/42/assets"
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
@@ -71399,7 +71420,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71467,8 +71488,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/secret-scanning/alerts",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/secret-scanning/alerts"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/secret-scanning/alerts",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/secret-scanning/alerts"
},
{
"lang": "JavaScript",
@@ -71521,7 +71542,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71558,8 +71579,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/secret-scanning/alerts/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/secret-scanning/alerts/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/secret-scanning/alerts/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/secret-scanning/alerts/42"
},
{
"lang": "JavaScript",
@@ -71612,7 +71633,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stargazers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71656,8 +71677,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stargazers",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stargazers"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stargazers",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stargazers"
},
{
"lang": "JavaScript",
@@ -71713,7 +71734,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stats/code_frequency",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71737,8 +71758,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/code_frequency",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/code_frequency"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/code_frequency",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/code_frequency"
},
{
"lang": "JavaScript",
@@ -71793,7 +71814,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stats/commit_activity",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71817,8 +71838,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/commit_activity",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/commit_activity"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/commit_activity",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/commit_activity"
},
{
"lang": "JavaScript",
@@ -71873,7 +71894,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stats/contributors",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71897,8 +71918,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/contributors",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/contributors"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/contributors",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/contributors"
},
{
"lang": "JavaScript",
@@ -71953,7 +71974,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stats/participation",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -71977,8 +71998,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/participation",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/participation"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/participation",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/participation"
},
{
"lang": "JavaScript",
@@ -72028,7 +72049,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/stats/punch_card",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72052,8 +72073,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/punch_card",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/stats/punch_card"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/punch_card",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/stats/punch_card"
},
{
"lang": "JavaScript",
@@ -72103,7 +72124,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/statuses/{sha}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72137,8 +72158,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/statuses/SHA \\\n -d '{\"state\":\"state\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/statuses/SHA \\\n -d '{\"state\":\"state\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/statuses/SHA \\\n -d '{\"state\":\"state\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/statuses/SHA \\\n -d '{\"state\":\"state\"}'"
},
{
"lang": "JavaScript",
@@ -72291,7 +72312,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/subscribers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72335,8 +72356,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscribers",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscribers"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscribers",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscribers"
},
{
"lang": "JavaScript",
@@ -72381,7 +72402,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72405,8 +72426,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription"
},
{
"lang": "JavaScript",
@@ -72461,7 +72482,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72485,8 +72506,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription \\\n -d '{\"subscribed\":true}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription \\\n -d '{\"subscribed\":true}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription \\\n -d '{\"subscribed\":true}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription \\\n -d '{\"subscribed\":true}'"
},
{
"lang": "JavaScript",
@@ -72580,7 +72601,7 @@
{
"verb": "delete",
"requestPath": "/repos/{owner}/{repo}/subscription",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72604,8 +72625,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/subscription"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/subscription"
},
{
"lang": "JavaScript",
@@ -72649,7 +72670,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/tags",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72693,8 +72714,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/tags",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/tags"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/tags",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/tags"
},
{
"lang": "JavaScript",
@@ -72737,7 +72758,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/tarball/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72770,8 +72791,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/tarball/REF",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/tarball/REF"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/tarball/REF",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/tarball/REF"
},
{
"lang": "JavaScript",
@@ -72815,7 +72836,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72859,8 +72880,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/teams"
},
{
"lang": "JavaScript",
@@ -72903,7 +72924,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/topics",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -72947,8 +72968,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/topics",
- "html": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/topics"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/topics",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/topics"
},
{
"lang": "JavaScript",
@@ -73008,7 +73029,7 @@
{
"verb": "put",
"requestPath": "/repos/{owner}/{repo}/topics",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -73032,8 +73053,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/topics \\\n -d '{\"names\":[\"names\"]}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/topics \\\n -d '{\"names\":[\"names\"]}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/topics \\\n -d '{\"names\":[\"names\"]}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/topics \\\n -d '{\"names\":[\"names\"]}'"
},
{
"lang": "JavaScript",
@@ -73146,7 +73167,7 @@
{
"verb": "post",
"requestPath": "/repos/{owner}/{repo}/transfer",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -73170,8 +73191,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/transfer \\\n -d '{\"new_owner\":\"new_owner\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/transfer \\\n -d '{\"new_owner\":\"new_owner\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/transfer \\\n -d '{\"new_owner\":\"new_owner\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/transfer \\\n -d '{\"new_owner\":\"new_owner\"}'"
},
{
"lang": "JavaScript",
@@ -73279,7 +73300,7 @@
{
"verb": "get",
"requestPath": "/repos/{owner}/{repo}/zipball/{ref}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -73312,8 +73333,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/zipball/REF",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repos/octocat/hello-world/zipball/REF"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/zipball/REF",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repos/octocat/hello-world/zipball/REF"
},
{
"lang": "JavaScript",
@@ -73357,7 +73378,7 @@
{
"verb": "post",
"requestPath": "/repos/{template_owner}/{template_repo}/generate",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "template_owner",
@@ -73381,8 +73402,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.baptiste-preview+json\" \\\n http(s)://{hostname}/api/v3/repos/TEMPLATE_OWNER/TEMPLATE_REPO/generate \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -73549,7 +73570,7 @@
{
"verb": "get",
"requestPath": "/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -73581,8 +73602,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/repositories"
},
{
"lang": "JavaScript",
@@ -73635,7 +73656,7 @@
{
"verb": "get",
"requestPath": "/search/code",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -73699,8 +73720,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/code",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/code"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/code",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/code"
},
{
"lang": "JavaScript",
@@ -73763,7 +73784,7 @@
{
"verb": "get",
"requestPath": "/search/commits",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -73828,8 +73849,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.cloak-preview+json\" \\\n http(s)://{hostname}/search/commits",
- "html": "curl \\\n -H \"Accept: application/vnd.github.cloak-preview+json\" \\\n http(s)://{hostname}/search/commits"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.cloak-preview+json\" \\\n http(s)://{hostname}/api/v3/search/commits",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.cloak-preview+json\" \\\n http(s)://{hostname}/api/v3/search/commits"
},
{
"lang": "JavaScript",
@@ -73889,7 +73910,7 @@
{
"verb": "get",
"requestPath": "/search/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -73963,8 +73984,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/issues"
},
{
"lang": "JavaScript",
@@ -74027,7 +74048,7 @@
{
"verb": "get",
"requestPath": "/search/labels",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "repository_id",
@@ -74102,8 +74123,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/labels",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/labels"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/labels",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/labels"
},
{
"lang": "JavaScript",
@@ -74166,7 +74187,7 @@
{
"verb": "get",
"requestPath": "/search/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -74233,8 +74254,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/repositories"
},
{
"lang": "JavaScript",
@@ -74299,7 +74320,7 @@
{
"verb": "get",
"requestPath": "/search/topics",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -74335,8 +74356,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/search/topics",
- "html": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/search/topics"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/search/topics",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.mercy-preview+json\" \\\n http(s)://{hostname}/api/v3/search/topics"
},
{
"lang": "JavaScript",
@@ -74396,7 +74417,7 @@
{
"verb": "get",
"requestPath": "/search/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "q",
@@ -74462,8 +74483,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/users",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/search/users"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/users",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/search/users"
},
{
"lang": "JavaScript",
@@ -74521,13 +74542,13 @@
{
"verb": "get",
"requestPath": "/setup/api/configcheck",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/configcheck",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/configcheck"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/configcheck",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/configcheck"
},
{
"lang": "JavaScript",
@@ -74572,13 +74593,13 @@
{
"verb": "post",
"requestPath": "/setup/api/configure",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/configure",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/configure"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/configure",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/configure"
},
{
"lang": "JavaScript",
@@ -74622,13 +74643,13 @@
{
"verb": "get",
"requestPath": "/setup/api/maintenance",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/maintenance",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/maintenance"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/maintenance",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/maintenance"
},
{
"lang": "JavaScript",
@@ -74673,13 +74694,13 @@
{
"verb": "post",
"requestPath": "/setup/api/maintenance",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/maintenance \\\n --data-urlencode maintenance=maintenance",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/maintenance \\\n --data-urlencode maintenance=maintenance"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/maintenance \\\n --data-urlencode maintenance=maintenance",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/maintenance \\\n --data-urlencode maintenance=maintenance"
},
{
"lang": "JavaScript",
@@ -74761,13 +74782,13 @@
{
"verb": "get",
"requestPath": "/setup/api/settings",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings"
},
{
"lang": "JavaScript",
@@ -74812,13 +74833,13 @@
{
"verb": "put",
"requestPath": "/setup/api/settings",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings \\\n --data-urlencode settings=settings",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings \\\n --data-urlencode settings=settings"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings \\\n --data-urlencode settings=settings",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings \\\n --data-urlencode settings=settings"
},
{
"lang": "JavaScript",
@@ -74899,13 +74920,13 @@
{
"verb": "get",
"requestPath": "/setup/api/settings/authorized-keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys"
},
{
"lang": "JavaScript",
@@ -74950,13 +74971,13 @@
{
"verb": "post",
"requestPath": "/setup/api/settings/authorized-keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key"
},
{
"lang": "JavaScript",
@@ -75038,13 +75059,13 @@
{
"verb": "delete",
"requestPath": "/setup/api/settings/authorized-keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/settings/authorized-keys \\\n --data-urlencode authorized_key=authorized_key"
},
{
"lang": "JavaScript",
@@ -75126,13 +75147,13 @@
{
"verb": "post",
"requestPath": "/setup/api/start",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/start \\\n --data-urlencode license=license",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/start \\\n --data-urlencode license=license"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/start \\\n --data-urlencode license=license",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/start \\\n --data-urlencode license=license"
},
{
"lang": "JavaScript",
@@ -75246,13 +75267,13 @@
{
"verb": "post",
"requestPath": "/setup/api/upgrade",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/upgrade \\\n --data-urlencode license=license",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/setup/api/upgrade \\\n --data-urlencode license=license"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/upgrade \\\n --data-urlencode license=license",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/setup/api/upgrade \\\n --data-urlencode license=license"
},
{
"lang": "JavaScript",
@@ -75327,7 +75348,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75342,8 +75363,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42"
},
{
"lang": "JavaScript",
@@ -75394,7 +75415,7 @@
{
"verb": "patch",
"requestPath": "/teams/{team_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75409,8 +75430,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42 \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42 \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42 \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42 \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -75610,7 +75631,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75625,8 +75646,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42"
},
{
"lang": "JavaScript",
@@ -75681,7 +75702,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75731,8 +75752,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions"
},
{
"lang": "JavaScript",
@@ -75787,7 +75808,7 @@
{
"verb": "post",
"requestPath": "/teams/{team_id}/discussions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75802,8 +75823,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions \\\n -d '{\"title\":\"title\",\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -75936,7 +75957,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -75960,8 +75981,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42"
},
{
"lang": "JavaScript",
@@ -76016,7 +76037,7 @@
{
"verb": "patch",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76040,8 +76061,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42 \\\n -d '{\"title\":\"title\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42 \\\n -d '{\"title\":\"title\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42 \\\n -d '{\"title\":\"title\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42 \\\n -d '{\"title\":\"title\"}'"
},
{
"lang": "JavaScript",
@@ -76148,7 +76169,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76172,8 +76193,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42"
},
{
"lang": "JavaScript",
@@ -76220,7 +76241,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76279,8 +76300,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments"
},
{
"lang": "JavaScript",
@@ -76335,7 +76356,7 @@
{
"verb": "post",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76359,8 +76380,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -76453,7 +76474,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76486,8 +76507,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42"
},
{
"lang": "JavaScript",
@@ -76542,7 +76563,7 @@
{
"verb": "patch",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76575,8 +76596,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42 \\\n -d '{\"body\":\"body\"}'"
},
{
"lang": "JavaScript",
@@ -76668,7 +76689,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76701,8 +76722,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42"
},
{
"lang": "JavaScript",
@@ -76749,7 +76770,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76822,8 +76843,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42/reactions"
},
{
"lang": "JavaScript",
@@ -76876,7 +76897,7 @@
{
"verb": "post",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -76909,8 +76930,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/comments/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -77020,7 +77041,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77084,8 +77105,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/reactions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/reactions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/reactions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/reactions"
},
{
"lang": "JavaScript",
@@ -77138,7 +77159,7 @@
{
"verb": "post",
"requestPath": "/teams/{team_id}/discussions/{discussion_number}/reactions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77162,8 +77183,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/teams/42/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.squirrel-girl-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/discussions/42/reactions \\\n -d '{\"content\":\"content\"}'"
},
{
"lang": "JavaScript",
@@ -77273,7 +77294,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/members",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77324,8 +77345,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members"
},
{
"lang": "JavaScript",
@@ -77378,7 +77399,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77402,8 +77423,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME"
},
{
"lang": "JavaScript",
@@ -77455,7 +77476,7 @@
{
"verb": "put",
"requestPath": "/teams/{team_id}/members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77479,8 +77500,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME"
},
{
"lang": "JavaScript",
@@ -77542,7 +77563,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/members/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77566,8 +77587,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/members/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/members/USERNAME"
},
{
"lang": "JavaScript",
@@ -77619,7 +77640,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77643,8 +77664,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -77697,7 +77718,7 @@
{
"verb": "put",
"requestPath": "/teams/{team_id}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77721,8 +77742,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME \\\n -d '{\"role\":\"role\"}'"
},
{
"lang": "JavaScript",
@@ -77826,7 +77847,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/memberships/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77850,8 +77871,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/memberships/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/memberships/USERNAME"
},
{
"lang": "JavaScript",
@@ -77903,7 +77924,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -77938,8 +77959,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects"
},
{
"lang": "JavaScript",
@@ -78002,7 +78023,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78026,8 +78047,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42"
},
{
"lang": "JavaScript",
@@ -78090,7 +78111,7 @@
{
"verb": "put",
"requestPath": "/teams/{team_id}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78114,8 +78135,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects/42 \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/teams/42/projects/42 \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42 \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42 \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -78229,7 +78250,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/projects/{project_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78253,8 +78274,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/projects/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/projects/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/projects/42"
},
{
"lang": "JavaScript",
@@ -78314,7 +78335,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78349,8 +78370,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos"
},
{
"lang": "JavaScript",
@@ -78401,7 +78422,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78434,8 +78455,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -78491,7 +78512,7 @@
{
"verb": "put",
"requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78524,8 +78545,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world \\\n -d '{\"permission\":\"permission\"}'"
},
{
"lang": "JavaScript",
@@ -78621,7 +78642,7 @@
{
"verb": "delete",
"requestPath": "/teams/{team_id}/repos/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78654,8 +78675,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/repos/octocat/hello-world"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/repos/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -78700,7 +78721,7 @@
{
"verb": "get",
"requestPath": "/teams/{team_id}/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "team_id",
@@ -78735,8 +78756,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/teams/42/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/teams/42/teams"
},
{
"lang": "JavaScript",
@@ -78797,13 +78818,13 @@
{
"verb": "get",
"requestPath": "/user",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user"
},
{
"lang": "JavaScript",
@@ -78867,13 +78888,13 @@
{
"verb": "patch",
"requestPath": "/user",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -79112,7 +79133,7 @@
{
"verb": "get",
"requestPath": "/user/emails",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -79138,8 +79159,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails"
},
{
"lang": "JavaScript",
@@ -79204,13 +79225,13 @@
{
"verb": "post",
"requestPath": "/user/emails",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails"
},
{
"lang": "JavaScript",
@@ -79347,13 +79368,13 @@
{
"verb": "delete",
"requestPath": "/user/emails",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/emails"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/emails"
},
{
"lang": "JavaScript",
@@ -79488,7 +79509,7 @@
{
"verb": "get",
"requestPath": "/user/followers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -79514,8 +79535,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/followers",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/followers"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/followers",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/followers"
},
{
"lang": "JavaScript",
@@ -79575,7 +79596,7 @@
{
"verb": "get",
"requestPath": "/user/following",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -79601,8 +79622,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following"
},
{
"lang": "JavaScript",
@@ -79662,7 +79683,7 @@
{
"verb": "get",
"requestPath": "/user/following/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -79677,8 +79698,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME"
},
{
"lang": "JavaScript",
@@ -79742,7 +79763,7 @@
{
"verb": "put",
"requestPath": "/user/following/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -79757,8 +79778,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME"
},
{
"lang": "JavaScript",
@@ -79822,7 +79843,7 @@
{
"verb": "delete",
"requestPath": "/user/following/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -79837,8 +79858,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/following/USERNAME"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/following/USERNAME"
},
{
"lang": "JavaScript",
@@ -79902,7 +79923,7 @@
{
"verb": "get",
"requestPath": "/user/gpg_keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -79928,8 +79949,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys"
},
{
"lang": "JavaScript",
@@ -79994,13 +80015,13 @@
{
"verb": "post",
"requestPath": "/user/gpg_keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys \\\n -d '{\"armored_public_key\":\"armored_public_key\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys \\\n -d '{\"armored_public_key\":\"armored_public_key\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys \\\n -d '{\"armored_public_key\":\"armored_public_key\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys \\\n -d '{\"armored_public_key\":\"armored_public_key\"}'"
},
{
"lang": "JavaScript",
@@ -80104,7 +80125,7 @@
{
"verb": "get",
"requestPath": "/user/gpg_keys/{gpg_key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gpg_key_id",
@@ -80120,8 +80141,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys/42"
},
{
"lang": "JavaScript",
@@ -80186,7 +80207,7 @@
{
"verb": "delete",
"requestPath": "/user/gpg_keys/{gpg_key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "gpg_key_id",
@@ -80202,8 +80223,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/gpg_keys/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/gpg_keys/42"
},
{
"lang": "JavaScript",
@@ -80272,7 +80293,7 @@
{
"verb": "get",
"requestPath": "/user/installations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -80298,8 +80319,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations"
},
{
"lang": "JavaScript",
@@ -80364,7 +80385,7 @@
{
"verb": "get",
"requestPath": "/user/installations/{installation_id}/repositories",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -80400,8 +80421,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories"
},
{
"lang": "JavaScript",
@@ -80468,7 +80489,7 @@
{
"verb": "put",
"requestPath": "/user/installations/{installation_id}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -80493,8 +80514,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories/42",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories/42"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories/42",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories/42"
},
{
"lang": "JavaScript",
@@ -80553,7 +80574,7 @@
{
"verb": "delete",
"requestPath": "/user/installations/{installation_id}/repositories/{repository_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "installation_id",
@@ -80578,8 +80599,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/installations/42/repositories/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/installations/42/repositories/42"
},
{
"lang": "JavaScript",
@@ -80638,7 +80659,7 @@
{
"verb": "get",
"requestPath": "/user/issues",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "filter",
@@ -80751,8 +80772,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/issues",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/issues"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/issues",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/issues"
},
{
"lang": "JavaScript",
@@ -80812,7 +80833,7 @@
{
"verb": "get",
"requestPath": "/user/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -80838,8 +80859,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys"
},
{
"lang": "JavaScript",
@@ -80904,13 +80925,13 @@
{
"verb": "post",
"requestPath": "/user/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys \\\n -d '{\"key\":\"key\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys \\\n -d '{\"key\":\"key\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys \\\n -d '{\"key\":\"key\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys \\\n -d '{\"key\":\"key\"}'"
},
{
"lang": "JavaScript",
@@ -81036,7 +81057,7 @@
{
"verb": "get",
"requestPath": "/user/keys/{key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "key_id",
@@ -81052,8 +81073,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys/42",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys/42"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys/42",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys/42"
},
{
"lang": "JavaScript",
@@ -81118,7 +81139,7 @@
{
"verb": "delete",
"requestPath": "/user/keys/{key_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "key_id",
@@ -81134,8 +81155,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/keys/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/keys/42"
},
{
"lang": "JavaScript",
@@ -81199,7 +81220,7 @@
{
"verb": "get",
"requestPath": "/user/memberships/orgs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "state",
@@ -81239,8 +81260,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs"
},
{
"lang": "JavaScript",
@@ -81305,7 +81326,7 @@
{
"verb": "get",
"requestPath": "/user/memberships/orgs/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -81320,8 +81341,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs/ORG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs/ORG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs/ORG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs/ORG"
},
{
"lang": "JavaScript",
@@ -81376,7 +81397,7 @@
{
"verb": "patch",
"requestPath": "/user/memberships/orgs/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "org",
@@ -81391,8 +81412,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs/ORG \\\n -d '{\"state\":\"state\"}'",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/memberships/orgs/ORG \\\n -d '{\"state\":\"state\"}'"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs/ORG \\\n -d '{\"state\":\"state\"}'",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/memberships/orgs/ORG \\\n -d '{\"state\":\"state\"}'"
},
{
"lang": "JavaScript",
@@ -81495,7 +81516,7 @@
{
"verb": "get",
"requestPath": "/user/orgs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -81521,8 +81542,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/orgs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/orgs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/orgs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/orgs"
},
{
"lang": "JavaScript",
@@ -81580,13 +81601,13 @@
{
"verb": "post",
"requestPath": "/user/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/user/projects \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/user/projects \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/user/projects \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/user/projects \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -81719,7 +81740,7 @@
{
"verb": "get",
"requestPath": "/user/public_emails",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -81745,8 +81766,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/public_emails",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/public_emails"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/public_emails",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/public_emails"
},
{
"lang": "JavaScript",
@@ -81811,7 +81832,7 @@
{
"verb": "get",
"requestPath": "/user/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "visibility",
@@ -81935,8 +81956,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repos"
},
{
"lang": "JavaScript",
@@ -81999,13 +82020,13 @@
{
"verb": "post",
"requestPath": "/user/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repos \\\n -d '{\"name\":\"name\"}'",
- "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repos \\\n -d '{\"name\":\"name\"}'"
+ "source": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repos \\\n -d '{\"name\":\"name\"}'",
+ "html": "curl \\\n -X POST \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repos \\\n -d '{\"name\":\"name\"}'"
},
{
"lang": "JavaScript",
@@ -82459,7 +82480,7 @@
{
"verb": "get",
"requestPath": "/user/repository_invitations",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -82485,8 +82506,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations"
},
{
"lang": "JavaScript",
@@ -82551,7 +82572,7 @@
{
"verb": "patch",
"requestPath": "/user/repository_invitations/{invitation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "invitation_id",
@@ -82567,8 +82588,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations/42",
- "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations/42"
+ "source": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations/42",
+ "html": "curl \\\n -X PATCH \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations/42"
},
{
"lang": "JavaScript",
@@ -82632,7 +82653,7 @@
{
"verb": "delete",
"requestPath": "/user/repository_invitations/{invitation_id}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "invitation_id",
@@ -82648,8 +82669,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations/42",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/repository_invitations/42"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations/42",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/repository_invitations/42"
},
{
"lang": "JavaScript",
@@ -82713,7 +82734,7 @@
{
"verb": "get",
"requestPath": "/user/starred",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "sort",
@@ -82769,8 +82790,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred"
},
{
"lang": "JavaScript",
@@ -82830,7 +82851,7 @@
{
"verb": "get",
"requestPath": "/user/starred/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -82854,8 +82875,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -82919,7 +82940,7 @@
{
"verb": "put",
"requestPath": "/user/starred/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -82943,8 +82964,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -83008,7 +83029,7 @@
{
"verb": "delete",
"requestPath": "/user/starred/{owner}/{repo}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "owner",
@@ -83032,8 +83053,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/starred/octocat/hello-world"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/starred/octocat/hello-world"
},
{
"lang": "JavaScript",
@@ -83097,7 +83118,7 @@
{
"verb": "get",
"requestPath": "/user/subscriptions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -83123,8 +83144,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/subscriptions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/subscriptions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/subscriptions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/subscriptions"
},
{
"lang": "JavaScript",
@@ -83184,7 +83205,7 @@
{
"verb": "get",
"requestPath": "/user/teams",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "per_page",
@@ -83210,8 +83231,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/teams",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/user/teams"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/teams",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/user/teams"
},
{
"lang": "JavaScript",
@@ -83269,7 +83290,7 @@
{
"verb": "get",
"requestPath": "/users",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "since",
@@ -83295,8 +83316,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users"
},
{
"lang": "JavaScript",
@@ -83344,7 +83365,7 @@
{
"verb": "get",
"requestPath": "/users/{username}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83359,8 +83380,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME"
},
{
"lang": "JavaScript",
@@ -83419,7 +83440,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83454,8 +83475,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events"
},
{
"lang": "JavaScript",
@@ -83499,7 +83520,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/events/orgs/{org}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83543,8 +83564,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events/orgs/ORG",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events/orgs/ORG"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events/orgs/ORG",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events/orgs/ORG"
},
{
"lang": "JavaScript",
@@ -83588,7 +83609,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/events/public",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83623,8 +83644,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events/public",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/events/public"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events/public",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/events/public"
},
{
"lang": "JavaScript",
@@ -83668,7 +83689,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/followers",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83703,8 +83724,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/followers",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/followers"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/followers",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/followers"
},
{
"lang": "JavaScript",
@@ -83749,7 +83770,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/following",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83784,8 +83805,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/following",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/following"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/following",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/following"
},
{
"lang": "JavaScript",
@@ -83830,7 +83851,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/following/{target_user}",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83854,8 +83875,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/following/TARGET_USER",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/following/TARGET_USER"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/following/TARGET_USER",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/following/TARGET_USER"
},
{
"lang": "JavaScript",
@@ -83904,7 +83925,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/gists",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -83950,8 +83971,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/gists",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/gists"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/gists",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/gists"
},
{
"lang": "JavaScript",
@@ -83999,7 +84020,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/gpg_keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84034,8 +84055,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/gpg_keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/gpg_keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/gpg_keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/gpg_keys"
},
{
"lang": "JavaScript",
@@ -84080,7 +84101,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/hovercard",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84121,8 +84142,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/hovercard",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/hovercard"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/hovercard",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/hovercard"
},
{
"lang": "JavaScript",
@@ -84175,7 +84196,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/installation",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84190,8 +84211,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/installation",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/installation"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/installation",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/installation"
},
{
"lang": "JavaScript",
@@ -84234,7 +84255,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/keys",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84269,8 +84290,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/keys",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/keys"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/keys",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/keys"
},
{
"lang": "JavaScript",
@@ -84315,7 +84336,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/orgs",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84350,8 +84371,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/orgs",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/orgs"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/orgs",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/orgs"
},
{
"lang": "JavaScript",
@@ -84394,7 +84415,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/projects",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84445,8 +84466,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/users/USERNAME/projects",
- "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/users/USERNAME/projects"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/projects",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.inertia-preview+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/projects"
},
{
"lang": "JavaScript",
@@ -84506,7 +84527,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/received_events",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84541,8 +84562,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/received_events",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/received_events"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/received_events",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/received_events"
},
{
"lang": "JavaScript",
@@ -84586,7 +84607,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/received_events/public",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84621,8 +84642,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/received_events/public",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/received_events/public"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/received_events/public",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/received_events/public"
},
{
"lang": "JavaScript",
@@ -84666,7 +84687,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/repos",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84748,8 +84769,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/repos",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/repos"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/repos",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/repos"
},
{
"lang": "JavaScript",
@@ -84799,7 +84820,7 @@
{
"verb": "put",
"requestPath": "/users/{username}/site_admin",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84814,8 +84835,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/site_admin",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/site_admin"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/site_admin",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/site_admin"
},
{
"lang": "JavaScript",
@@ -84859,7 +84880,7 @@
{
"verb": "delete",
"requestPath": "/users/{username}/site_admin",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84874,8 +84895,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/site_admin",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/site_admin"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/site_admin",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/site_admin"
},
{
"lang": "JavaScript",
@@ -84919,7 +84940,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/starred",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -84984,8 +85005,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/starred",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/starred"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/starred",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/starred"
},
{
"lang": "JavaScript",
@@ -85030,7 +85051,7 @@
{
"verb": "get",
"requestPath": "/users/{username}/subscriptions",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -85065,8 +85086,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/subscriptions",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/subscriptions"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/subscriptions",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/subscriptions"
},
{
"lang": "JavaScript",
@@ -85111,7 +85132,7 @@
{
"verb": "put",
"requestPath": "/users/{username}/suspended",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -85126,8 +85147,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'",
- "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'"
+ "source": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'",
+ "html": "curl \\\n -X PUT \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'"
},
{
"lang": "JavaScript",
@@ -85203,7 +85224,7 @@
{
"verb": "delete",
"requestPath": "/users/{username}/suspended",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [
{
"name": "username",
@@ -85218,8 +85239,8 @@
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'",
- "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'"
+ "source": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'",
+ "html": "curl \\\n -X DELETE \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/users/USERNAME/suspended \\\n -d '{\"reason\":\"reason\"}'"
},
{
"lang": "JavaScript",
@@ -85295,13 +85316,13 @@
{
"verb": "get",
"requestPath": "/zen",
- "serverUrl": "http(s)://{hostname}",
+ "serverUrl": "http(s)://{hostname}/api/v3",
"parameters": [],
"x-codeSamples": [
{
"lang": "Shell",
- "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/zen",
- "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/zen"
+ "source": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/zen",
+ "html": "curl \\\n -H \"Accept: application/vnd.github.v3+json\" \\\n http(s)://{hostname}/api/v3/zen"
},
{
"lang": "JavaScript",
diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json
index 86e39cfaff..9a07fe67bb 100644
--- a/lib/rest/static/decorated/github.ae.json
+++ b/lib/rest/static/decorated/github.ae.json
@@ -26814,6 +26814,16 @@
"default": 1
},
"descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -28706,6 +28716,16 @@ "default": 1 }, "descriptionHTML": "Page number of the results to fetch.
" + }, + { + "name": "created", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "date-time" + }, + "descriptionHTML": "" } ], "x-codeSamples": [ @@ -39176,7 +39196,7 @@ "httpStatusCode": "200", "httpStatusMessage": "OK", "description": "Response", - "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-06-19T11:21:34Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 54933897,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-02-14T12:29:18Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\",\n \"instances\": null\n}\n"
},
{
"httpStatusCode": "403",
@@ -39349,7 +39369,7 @@
"httpStatusCode": "200",
"httpStatusMessage": "OK",
"description": "Response",
- "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
+ "payload": "{\n \"number\": 42,\n \"created_at\": \"2020-08-25T21:28:36Z\",\n \"url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42\",\n \"html_url\": \"https://github.com/octocat/hello-world/code-scanning/42\",\n \"state\": \"dismissed\",\n \"dismissed_by\": {\n \"login\": \"octocat\",\n \"id\": 1,\n \"node_id\": \"MDQ6VXNlcjE=\",\n \"avatar_url\": \"https://github.com/images/error/octocat_happy.gif\",\n \"gravatar_id\": \"\",\n \"url\": \"https://api.github.com/users/octocat\",\n \"html_url\": \"https://github.com/octocat\",\n \"followers_url\": \"https://api.github.com/users/octocat/followers\",\n \"following_url\": \"https://api.github.com/users/octocat/following{/other_user}\",\n \"gists_url\": \"https://api.github.com/users/octocat/gists{/gist_id}\",\n \"starred_url\": \"https://api.github.com/users/octocat/starred{/owner}{/repo}\",\n \"subscriptions_url\": \"https://api.github.com/users/octocat/subscriptions\",\n \"organizations_url\": \"https://api.github.com/users/octocat/orgs\",\n \"repos_url\": \"https://api.github.com/users/octocat/repos\",\n \"events_url\": \"https://api.github.com/users/octocat/events{/privacy}\",\n \"received_events_url\": \"https://api.github.com/users/octocat/received_events\",\n \"type\": \"User\",\n \"site_admin\": false\n },\n \"dismissed_at\": \"2020-09-02T22:34:56Z\",\n \"dismissed_reason\": \"false positive\",\n \"rule\": {\n \"id\": \"js/zipslip\",\n \"severity\": \"error\",\n \"security_severity_level\": \"high\",\n \"description\": \"Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\",\n \"name\": \"js/zipslip\",\n \"full_description\": \"Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.\",\n \"tags\": [\n \"security\",\n \"external/cwe/cwe-022\"\n ],\n \"help\": \"# Arbitrary file write during zip extraction (\\\"Zip Slip\\\")\\\\nExtracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten ...\"\n },\n \"tool\": {\n \"name\": \"CodeQL\",\n \"guid\": null,\n \"version\": \"2.4.0\"\n },\n \"most_recent_instance\": {\n \"ref\": \"refs/heads/main\",\n \"analysis_key\": \".github/workflows/codeql-analysis.yml:CodeQL-Build\",\n \"environment\": \"{}\",\n \"state\": \"dismissed\",\n \"commit_sha\": \"39406e42cb832f683daa691dd652a8dc36ee8930\",\n \"message\": {\n \"text\": \"This path depends on a user-provided value.\"\n },\n \"location\": {\n \"path\": \"spec-main/api-session-spec.ts\",\n \"start_line\": 917,\n \"end_line\": 917,\n \"start_column\": 7,\n \"end_column\": 18\n },\n \"classifications\": [\n \"test\"\n ]\n },\n \"instances_url\": \"https://api.github.com/repos/octocat/hello-world/code-scanning/alerts/42/instances\"\n}\n"
},
{
"httpStatusCode": "403",
@@ -63870,6 +63890,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
},
@@ -63892,8 +63913,8 @@
},
{
"lang": "JavaScript",
- "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})",
- "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42\n})\n"
+ "source": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})",
+ "html": "await octokit.request('POST /repos/{owner}/{repo}/releases/{release_id}/assets', {\n owner: 'octocat',\n repo: 'hello-world',\n release_id: 42,\n name: 'name'\n})\n"
}
],
"summary": "Upload a release asset",
diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json
index 4d3d7136a3..1fae81854d 100644
--- a/lib/rest/static/dereferenced/api.github.com.deref.json
+++ b/lib/rest/static/dereferenced/api.github.com.deref.json
@@ -127108,6 +127108,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -138565,6 +138574,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -172040,6 +172058,17 @@
"error"
]
},
+ "security_severity_level": {
+ "nullable": true,
+ "type": "string",
+ "description": "The security severity of the alert.",
+ "enum": [
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ },
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
@@ -172208,6 +172237,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -172628,6 +172658,17 @@
"error"
]
},
+ "security_severity_level": {
+ "nullable": true,
+ "type": "string",
+ "description": "The security severity of the alert.",
+ "enum": [
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ },
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
@@ -172796,6 +172837,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -291884,6 +291926,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -297993,6 +298036,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -301343,6 +301387,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -325120,6 +325165,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-2.18.deref.json b/lib/rest/static/dereferenced/ghes-2.18.deref.json
index ed4f2f60eb..f636ad8fae 100644
--- a/lib/rest/static/dereferenced/ghes-2.18.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.18.deref.json
@@ -212792,6 +212792,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -218546,6 +218547,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -221741,6 +221743,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -244392,6 +244395,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-2.19.deref.json b/lib/rest/static/dereferenced/ghes-2.19.deref.json
index 3e20247606..e0cf139111 100644
--- a/lib/rest/static/dereferenced/ghes-2.19.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.19.deref.json
@@ -216486,6 +216486,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -222240,6 +222241,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -225435,6 +225437,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -248086,6 +248089,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-2.20.deref.json b/lib/rest/static/dereferenced/ghes-2.20.deref.json
index 48c21ed4c7..6fe0f521c6 100644
--- a/lib/rest/static/dereferenced/ghes-2.20.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.20.deref.json
@@ -219021,6 +219021,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -224916,6 +224917,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -228111,6 +228113,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -251302,6 +251305,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-2.21.deref.json b/lib/rest/static/dereferenced/ghes-2.21.deref.json
index bc53aff1d9..c57e9bf9a2 100644
--- a/lib/rest/static/dereferenced/ghes-2.21.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.21.deref.json
@@ -231463,6 +231463,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -237420,6 +237421,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -240615,6 +240617,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -263841,6 +263844,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-2.22.deref.json b/lib/rest/static/dereferenced/ghes-2.22.deref.json
index b01269350f..8572b322a5 100644
--- a/lib/rest/static/dereferenced/ghes-2.22.deref.json
+++ b/lib/rest/static/dereferenced/ghes-2.22.deref.json
@@ -109523,6 +109523,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -119176,6 +119185,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -150959,6 +150977,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -151481,6 +151500,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -263629,6 +263649,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -269585,6 +269606,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -272782,6 +272804,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -296011,6 +296034,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.0.deref.json b/lib/rest/static/dereferenced/ghes-3.0.deref.json
index 7493f21897..907a912339 100644
--- a/lib/rest/static/dereferenced/ghes-3.0.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.0.deref.json
@@ -115655,6 +115655,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -125432,6 +125441,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -157263,6 +157281,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -157851,6 +157870,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -270468,6 +270488,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -276424,6 +276445,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -279621,6 +279643,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -302850,6 +302873,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/ghes-3.1.deref.json b/lib/rest/static/dereferenced/ghes-3.1.deref.json
index 856846edb8..2255a3e45f 100644
--- a/lib/rest/static/dereferenced/ghes-3.1.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.1.deref.json
@@ -142,7 +142,7 @@
],
"servers": [
{
- "url": "{protocol}://{hostname}",
+ "url": "{protocol}://{hostname}/api/v3",
"variables": {
"hostname": {
"description": "Self-hosted Enterprise Server or Enterprise Cloud hostname",
@@ -115975,6 +115975,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -125752,6 +125761,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -159175,6 +159193,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -159763,6 +159782,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -273619,6 +273639,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -279728,6 +279749,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -283078,6 +283100,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -306765,6 +306788,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}
diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json
index 9a29aab425..86f8468d64 100644
--- a/lib/rest/static/dereferenced/github.ae.deref.json
+++ b/lib/rest/static/dereferenced/github.ae.deref.json
@@ -86135,6 +86135,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -96055,6 +96064,15 @@
"type": "integer",
"default": 1
}
+ },
+ {
+ "name": "created",
+ "in": "query",
+ "required": false,
+ "schema": {
+ "type": "string",
+ "format": "date-time"
+ }
}
],
"responses": {
@@ -127840,6 +127858,17 @@
"error"
]
},
+ "security_severity_level": {
+ "nullable": true,
+ "type": "string",
+ "description": "The security severity of the alert.",
+ "enum": [
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ },
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
@@ -128008,6 +128037,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -128428,6 +128458,17 @@
"error"
]
},
+ "security_severity_level": {
+ "nullable": true,
+ "type": "string",
+ "description": "The security severity of the alert.",
+ "enum": [
+ "low",
+ "medium",
+ "high",
+ "critical"
+ ]
+ },
"description": {
"type": "string",
"description": "A short description of the rule used to detect the alert."
@@ -128596,6 +128637,7 @@
"rule": {
"id": "js/zipslip",
"severity": "error",
+ "security_severity_level": "high",
"description": "Arbitrary file write during zip extraction (\"Zip Slip\")",
"name": "js/zipslip",
"full_description": "Extracting files from a malicious zip archive without validating that the destination file path is within the destination directory can cause files outside the destination directory to be overwritten.",
@@ -242602,6 +242644,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -248711,6 +248754,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -252061,6 +252105,7 @@
},
"repo": {
"type": "object",
+ "nullable": true,
"properties": {
"archive_url": {
"type": "string"
@@ -275778,6 +275823,7 @@
{
"name": "name",
"in": "query",
+ "required": true,
"schema": {
"type": "string"
}