Skip to content

Commit

Permalink
💥 removes endpoints `DELETE /repos/:owner/:repo/downloads/:download_i…
Browse files Browse the repository at this point in the history
…d`, `GET /repos/:owner/:repo/downloads`, `GET /repos/:owner/:repo/downloads/:download_id` (#111)

BREAKING CHANGE: removes `DELETE /repos/:owner/:repo/downloads/:download_id`, `GET /repos/:owner/:repo/downloads`, `GET /repos/:owner/:repo/downloads/:download_id`
  • Loading branch information
octokitbot authored Jun 9, 2020
1 parent 41e86c2 commit 03c0ccb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 249 deletions.
154 changes: 0 additions & 154 deletions scripts/update-endpoints/generated/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -23445,160 +23445,6 @@
"responses": [],
"renamed": null
},
{
"name": "List downloads for a repository",
"scope": "repos",
"id": "listDownloads",
"method": "GET",
"url": "/repos/{owner}/{repo}/downloads",
"documentationUrl": "https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository",
"parameters": [
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "owner",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "repo",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Results per page (max 100)",
"enum": null,
"name": "per_page",
"type": "integer",
"required": false
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "Page number of the results to fetch.",
"enum": null,
"name": "page",
"type": "integer",
"required": false
}
],
"previews": [],
"headers": [],
"responses": [
{
"code": 200,
"description": "response",
"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\"}}}}"
}
],
"renamed": null
},
{
"name": "Get a single download",
"scope": "repos",
"id": "getDownload",
"method": "GET",
"url": "/repos/{owner}/{repo}/downloads/{download_id}",
"documentationUrl": "https://developer.github.com/v3/repos/downloads/#get-a-single-download",
"parameters": [
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "owner",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "repo",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "download_id",
"type": "integer",
"required": true
}
],
"previews": [],
"headers": [],
"responses": [
{
"code": 200,
"description": "response",
"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\"}}}"
}
],
"renamed": null
},
{
"name": "Delete a download",
"scope": "repos",
"id": "deleteDownload",
"method": "DELETE",
"url": "/repos/{owner}/{repo}/downloads/{download_id}",
"documentationUrl": "https://developer.github.com/v3/repos/downloads/#delete-a-download",
"parameters": [
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "owner",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "repo",
"type": "string",
"required": true
},
{
"alias": null,
"allowNull": false,
"deprecated": null,
"description": "",
"enum": null,
"name": "download_id",
"type": "integer",
"required": true
}
],
"previews": [],
"headers": [],
"responses": [],
"renamed": null
},
{
"name": "List repository events",
"scope": "activity",
Expand Down
95 changes: 0 additions & 95 deletions src/generated/Endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -490,14 +490,6 @@ export interface Endpoints {
request: ReposDeleteDeploymentRequestOptions;
response: OctokitResponse<any>;
};
/**
* @see https://developer.github.com/v3/repos/downloads/#delete-a-download
*/
"DELETE /repos/:owner/:repo/downloads/:download_id": {
parameters: ReposDeleteDownloadEndpoint;
request: ReposDeleteDownloadRequestOptions;
response: OctokitResponse<any>;
};
/**
* @see https://developer.github.com/v3/git/refs/#delete-a-reference
*/
Expand Down Expand Up @@ -2190,22 +2182,6 @@ export interface Endpoints {
request: ReposGetDeploymentStatusRequestOptions;
response: OctokitResponse<ReposGetDeploymentStatusResponseData>;
};
/**
* @see https://developer.github.com/v3/repos/downloads/#list-downloads-for-a-repository
*/
"GET /repos/:owner/:repo/downloads": {
parameters: ReposListDownloadsEndpoint;
request: ReposListDownloadsRequestOptions;
response: OctokitResponse<ReposListDownloadsResponseData>;
};
/**
* @see https://developer.github.com/v3/repos/downloads/#get-a-single-download
*/
"GET /repos/:owner/:repo/downloads/:download_id": {
parameters: ReposGetDownloadEndpoint;
request: ReposGetDownloadRequestOptions;
response: OctokitResponse<ReposGetDownloadResponseData>;
};
/**
* @see https://developer.github.com/v3/activity/events/#list-repository-events
*/
Expand Down Expand Up @@ -21606,77 +21582,6 @@ type ReposCreateDispatchEventRequestOptions = {
request: RequestRequestOptions;
};

type ReposListDownloadsEndpoint = {
owner: string;

repo: string;
/**
* Results per page (max 100)
*/
per_page?: number;
/**
* Page number of the results to fetch.
*/
page?: number;
};

type ReposListDownloadsRequestOptions = {
method: "GET";
url: "/repos/:owner/:repo/downloads";
headers: RequestHeaders;
request: RequestRequestOptions;
};
export type ReposListDownloadsResponseData = {
url: string;
html_url: string;
id: number;
name: string;
description: string;
size: number;
download_count: number;
content_type: string;
}[];

type ReposGetDownloadEndpoint = {
owner: string;

repo: string;

download_id: number;
};

type ReposGetDownloadRequestOptions = {
method: "GET";
url: "/repos/:owner/:repo/downloads/:download_id";
headers: RequestHeaders;
request: RequestRequestOptions;
};
export interface ReposGetDownloadResponseData {
url: string;
html_url: string;
id: number;
name: string;
description: string;
size: number;
download_count: number;
content_type: string;
}

type ReposDeleteDownloadEndpoint = {
owner: string;

repo: string;

download_id: number;
};

type ReposDeleteDownloadRequestOptions = {
method: "DELETE";
url: "/repos/:owner/:repo/downloads/:download_id";
headers: RequestHeaders;
request: RequestRequestOptions;
};

type ActivityListRepoEventsEndpoint = {
owner: string;

Expand Down

0 comments on commit 03c0ccb

Please sign in to comment.