diff --git a/openapi/ghe-2.18/index.json b/openapi/ghe-2.18/index.json index 31190e2ff6..8fdd480499 100644 --- a/openapi/ghe-2.18/index.json +++ b/openapi/ghe-2.18/index.json @@ -665,13 +665,6 @@ "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { "get": { "$ref": "operations/repos/get-deployment-status.json" } }, - "/repos/{owner}/{repo}/downloads": { - "get": { "$ref": "operations/repos/list-downloads.json" } - }, - "/repos/{owner}/{repo}/downloads/{download_id}": { - "get": { "$ref": "operations/repos/get-download.json" }, - "delete": { "$ref": "operations/repos/delete-download.json" } - }, "/repos/{owner}/{repo}/events": { "get": { "$ref": "operations/activity/list-repo-events.json" } }, diff --git a/openapi/ghe-2.18/operations/repos/delete-download.json b/openapi/ghe-2.18/operations/repos/delete-download.json deleted file mode 100644 index e33e60ddd4..0000000000 --- a/openapi/ghe-2.18/operations/repos/delete-download.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "summary": "Delete a download", - "description": "", - "operationId": "repos/delete-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.18/v3/repos/downloads/#delete-a-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { "204": { "description": "Empty response" } }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.deleteDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { - "lang": "Ruby", - "source": "octokit.delete_download(\n 'hello-world',\n 42\n)" - } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.18/operations/repos/get-download.json b/openapi/ghe-2.18/operations/repos/get-download.json deleted file mode 100644 index b8daa8d1df..0000000000 --- a/openapi/ghe-2.18/operations/repos/get-download.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "summary": "Get a single download", - "description": "", - "operationId": "repos/get-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.18/v3/repos/downloads/#get-a-single-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - }, - "example": { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.getDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { "lang": "Ruby", "source": "octokit.download(\n 'hello-world',\n 42\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.18/operations/repos/list-downloads.json b/openapi/ghe-2.18/operations/repos/list-downloads.json deleted file mode 100644 index 2606f2ca83..0000000000 --- a/openapi/ghe-2.18/operations/repos/list-downloads.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "summary": "List downloads for a repository", - "description": "", - "operationId": "repos/list-downloads", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.18/v3/repos/downloads/#list-downloads-for-a-repository" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "Results per page (max 100)", - "in": "query", - "schema": { "type": "integer", "default": 30 } - }, - { - "name": "page", - "description": "Page number of the results to fetch.", - "in": "query", - "schema": { "type": "integer", "default": 1 } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - } - }, - "example": [ - { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - ] - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { "type": "string" } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads" - }, - { - "lang": "JS", - "source": "octokit.repos.listDownloads({\n owner: 'octocat',\n repo: 'hello-world'\n})" - }, - { "lang": "Ruby", "source": "octokit.downloads(\n 'hello-world'\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": true, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.19/index.json b/openapi/ghe-2.19/index.json index 12cd629eed..39c6e1f0a2 100644 --- a/openapi/ghe-2.19/index.json +++ b/openapi/ghe-2.19/index.json @@ -678,13 +678,6 @@ "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { "get": { "$ref": "operations/repos/get-deployment-status.json" } }, - "/repos/{owner}/{repo}/downloads": { - "get": { "$ref": "operations/repos/list-downloads.json" } - }, - "/repos/{owner}/{repo}/downloads/{download_id}": { - "get": { "$ref": "operations/repos/get-download.json" }, - "delete": { "$ref": "operations/repos/delete-download.json" } - }, "/repos/{owner}/{repo}/events": { "get": { "$ref": "operations/activity/list-repo-events.json" } }, diff --git a/openapi/ghe-2.19/operations/repos/delete-download.json b/openapi/ghe-2.19/operations/repos/delete-download.json deleted file mode 100644 index 751c285f22..0000000000 --- a/openapi/ghe-2.19/operations/repos/delete-download.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "summary": "Delete a download", - "description": "", - "operationId": "repos/delete-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.19/v3/repos/downloads/#delete-a-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { "204": { "description": "Empty response" } }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.deleteDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { - "lang": "Ruby", - "source": "octokit.delete_download(\n 'hello-world',\n 42\n)" - } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.19/operations/repos/get-download.json b/openapi/ghe-2.19/operations/repos/get-download.json deleted file mode 100644 index 24828affb1..0000000000 --- a/openapi/ghe-2.19/operations/repos/get-download.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "summary": "Get a single download", - "description": "", - "operationId": "repos/get-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.19/v3/repos/downloads/#get-a-single-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - }, - "example": { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.getDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { "lang": "Ruby", "source": "octokit.download(\n 'hello-world',\n 42\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.19/operations/repos/list-downloads.json b/openapi/ghe-2.19/operations/repos/list-downloads.json deleted file mode 100644 index baaa439b11..0000000000 --- a/openapi/ghe-2.19/operations/repos/list-downloads.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "summary": "List downloads for a repository", - "description": "", - "operationId": "repos/list-downloads", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.19/v3/repos/downloads/#list-downloads-for-a-repository" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "Results per page (max 100)", - "in": "query", - "schema": { "type": "integer", "default": 30 } - }, - { - "name": "page", - "description": "Page number of the results to fetch.", - "in": "query", - "schema": { "type": "integer", "default": 1 } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - } - }, - "example": [ - { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - ] - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { "type": "string" } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads" - }, - { - "lang": "JS", - "source": "octokit.repos.listDownloads({\n owner: 'octocat',\n repo: 'hello-world'\n})" - }, - { "lang": "Ruby", "source": "octokit.downloads(\n 'hello-world'\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": true, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.20/index.json b/openapi/ghe-2.20/index.json index b94c60123d..67d41db19b 100644 --- a/openapi/ghe-2.20/index.json +++ b/openapi/ghe-2.20/index.json @@ -685,13 +685,6 @@ "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { "get": { "$ref": "operations/repos/get-deployment-status.json" } }, - "/repos/{owner}/{repo}/downloads": { - "get": { "$ref": "operations/repos/list-downloads.json" } - }, - "/repos/{owner}/{repo}/downloads/{download_id}": { - "get": { "$ref": "operations/repos/get-download.json" }, - "delete": { "$ref": "operations/repos/delete-download.json" } - }, "/repos/{owner}/{repo}/events": { "get": { "$ref": "operations/activity/list-repo-events.json" } }, diff --git a/openapi/ghe-2.20/operations/repos/delete-download.json b/openapi/ghe-2.20/operations/repos/delete-download.json deleted file mode 100644 index ebadef3c95..0000000000 --- a/openapi/ghe-2.20/operations/repos/delete-download.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "summary": "Delete a download", - "description": "", - "operationId": "repos/delete-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.20/v3/repos/downloads/#delete-a-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { "204": { "description": "Empty response" } }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.deleteDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { - "lang": "Ruby", - "source": "octokit.delete_download(\n 'hello-world',\n 42\n)" - } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.20/operations/repos/get-download.json b/openapi/ghe-2.20/operations/repos/get-download.json deleted file mode 100644 index de68394fd3..0000000000 --- a/openapi/ghe-2.20/operations/repos/get-download.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "summary": "Get a single download", - "description": "", - "operationId": "repos/get-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.20/v3/repos/downloads/#get-a-single-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - }, - "example": { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.getDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { "lang": "Ruby", "source": "octokit.download(\n 'hello-world',\n 42\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.20/operations/repos/list-downloads.json b/openapi/ghe-2.20/operations/repos/list-downloads.json deleted file mode 100644 index bf1fa0032c..0000000000 --- a/openapi/ghe-2.20/operations/repos/list-downloads.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "summary": "List downloads for a repository", - "description": "", - "operationId": "repos/list-downloads", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.20/v3/repos/downloads/#list-downloads-for-a-repository" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "Results per page (max 100)", - "in": "query", - "schema": { "type": "integer", "default": 30 } - }, - { - "name": "page", - "description": "Page number of the results to fetch.", - "in": "query", - "schema": { "type": "integer", "default": 1 } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - } - }, - "example": [ - { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - ] - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { "type": "string" } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads" - }, - { - "lang": "JS", - "source": "octokit.repos.listDownloads({\n owner: 'octocat',\n repo: 'hello-world'\n})" - }, - { "lang": "Ruby", "source": "octokit.downloads(\n 'hello-world'\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": true, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.21/index.json b/openapi/ghe-2.21/index.json index 2ce728e20c..1d5a82e96b 100644 --- a/openapi/ghe-2.21/index.json +++ b/openapi/ghe-2.21/index.json @@ -784,13 +784,6 @@ "/repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}": { "get": { "$ref": "operations/repos/get-deployment-status.json" } }, - "/repos/{owner}/{repo}/downloads": { - "get": { "$ref": "operations/repos/list-downloads.json" } - }, - "/repos/{owner}/{repo}/downloads/{download_id}": { - "get": { "$ref": "operations/repos/get-download.json" }, - "delete": { "$ref": "operations/repos/delete-download.json" } - }, "/repos/{owner}/{repo}/events": { "get": { "$ref": "operations/activity/list-repo-events.json" } }, diff --git a/openapi/ghe-2.21/operations/repos/delete-download.json b/openapi/ghe-2.21/operations/repos/delete-download.json deleted file mode 100644 index b9507e0528..0000000000 --- a/openapi/ghe-2.21/operations/repos/delete-download.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "summary": "Delete a download", - "description": "", - "operationId": "repos/delete-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.21/v3/repos/downloads/#delete-a-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { "204": { "description": "Empty response" } }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -XDELETE \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.deleteDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { - "lang": "Ruby", - "source": "octokit.delete_download(\n 'hello-world',\n 42\n)" - } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.21/operations/repos/get-download.json b/openapi/ghe-2.21/operations/repos/get-download.json deleted file mode 100644 index 298376833d..0000000000 --- a/openapi/ghe-2.21/operations/repos/get-download.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "summary": "Get a single download", - "description": "", - "operationId": "repos/get-download", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.21/v3/repos/downloads/#get-a-single-download" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "download_id", - "in": "path", - "required": true, - "schema": { "type": "integer" } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - }, - "example": { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads/42" - }, - { - "lang": "JS", - "source": "octokit.repos.getDownload({\n owner: 'octocat',\n repo: 'hello-world',\n download_id: 42\n})" - }, - { "lang": "Ruby", "source": "octokit.download(\n 'hello-world',\n 42\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": false, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -} diff --git a/openapi/ghe-2.21/operations/repos/list-downloads.json b/openapi/ghe-2.21/operations/repos/list-downloads.json deleted file mode 100644 index 7c8ab1c5e1..0000000000 --- a/openapi/ghe-2.21/operations/repos/list-downloads.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "summary": "List downloads for a repository", - "description": "", - "operationId": "repos/list-downloads", - "tags": ["repos"], - "externalDocs": { - "description": "API method documentation", - "url": "https://developer.github.com/enterprise/2.21/v3/repos/downloads/#list-downloads-for-a-repository" - }, - "parameters": [ - { - "name": "accept", - "description": "Setting to `application/vnd.github.v3+json` is recommended", - "in": "header", - "schema": { - "type": "string", - "default": "application/vnd.github.v3+json" - } - }, - { - "name": "owner", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "repo", - "in": "path", - "required": true, - "schema": { "type": "string" } - }, - { - "name": "per_page", - "description": "Results per page (max 100)", - "in": "query", - "schema": { "type": "integer", "default": 30 } - }, - { - "name": "page", - "description": "Page number of the results to fetch.", - "in": "query", - "schema": { "type": "integer", "default": 1 } - } - ], - "responses": { - "200": { - "description": "response", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "url": { "type": "string" }, - "html_url": { "type": "string" }, - "id": { "type": "number" }, - "name": { "type": "string" }, - "description": { "type": "string" }, - "size": { "type": "number" }, - "download_count": { "type": "number" }, - "content_type": { "type": "string" } - } - } - }, - "example": [ - { - "url": "https://api.github.com/repos/octocat/Hello-World/downloads/1", - "html_url": "https://github.com/repos/octocat/Hello-World/downloads/new_file.jpg", - "id": 1, - "name": "new_file.jpg", - "description": "Description of your download", - "size": 1024, - "download_count": 40, - "content_type": ".jpg" - } - ] - } - }, - "headers": { - "Link": { - "example": "; rel=\"next\", ; rel=\"last\"", - "schema": { "type": "string" } - } - } - } - }, - "x-code-samples": [ - { - "lang": "Shell", - "source": "curl \\\n -H\"Accept: application/vnd.github.v3+json\" \\\n http://{hostname}/repos/octocat/hello-world/downloads" - }, - { - "lang": "JS", - "source": "octokit.repos.listDownloads({\n owner: 'octocat',\n repo: 'hello-world'\n})" - }, - { "lang": "Ruby", "source": "octokit.downloads(\n 'hello-world'\n)" } - ], - "x-github": { - "legacy": false, - "enabledForApps": true, - "githubCloudOnly": false, - "previews": [] - }, - "x-changes": [] -}