diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b58f6b9..bd74ec27 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # next release +Features: +- `--silent` option. Output only errors to console (default: false) + +Fixes: +- Bug with `kebab-case` path params (issue #184, thanks @Mr-sgreen) +- Typings for `--js` option + # 6.0.0 BREAKING_CHANGES: diff --git a/README.md b/README.md index e377cb0b..e7dbf877 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Options: --clean-output clean output folder before generate api. WARNING: May cause data loss (default: false) --axios generate axios http client (default: false) --single-http-client Ability to send HttpClient instance to Api constructor (default: false) + --silent Output only errors to console (default: false) --default-response default type for empty response schema (default: "void") -h, --help display help for command ``` diff --git a/index.js b/index.js index af539344..d78b8c73 100755 --- a/index.js +++ b/index.js @@ -64,6 +64,7 @@ program .option("--disableStrictSSL", "disabled strict SSL", false) .option("--axios", "generate axios http client", false) .option("--single-http-client", "Ability to send HttpClient instance to Api constructor", false) + .option("--silent", "Output only errors to console", false) .option("--default-response ", "default type for empty response schema", TS_KEYWORDS.VOID) .option( "--clean-output", @@ -93,6 +94,7 @@ const { defaultResponse, singleHttpClient, axios, + silent, } = program; generateApi({ @@ -116,4 +118,5 @@ generateApi({ disableStrictSSL: !!disableStrictSSL, singleHttpClient: !!singleHttpClient, cleanOutput: !!cleanOutput, + silent: !!silent, }); diff --git a/package-lock.json b/package-lock.json index 6cccc36c..452eb6b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "swagger-typescript-api", - "version": "6.0.0", + "version": "6.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 32f270b8..27984603 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swagger-typescript-api", - "version": "6.0.0", + "version": "6.1.0", "description": "Create typescript api module from swagger schema", "scripts": { "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts --extract-request-params --enum-names-as-values", @@ -30,6 +30,7 @@ "test:--enum-names-as-values": "node tests/spec/enumNamesAsValues/test.js", "test:--default-response": "node tests/spec/defaultResponse/test.js", "test:--js": "node tests/spec/js/test.js", + "test:--js--axios": "node tests/spec/jsAxios/test.js", "test:--axios": "node tests/spec/axios/test.js", "test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js", "test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js" diff --git a/src/config.js b/src/config.js index 49cc6319..bd01cf84 100644 --- a/src/config.js +++ b/src/config.js @@ -64,6 +64,8 @@ const config = { }, /** Record */ templatesToRender: {}, + toJS: false, + silent: false, }; /** needs to use data everywhere in project */ diff --git a/src/index.js b/src/index.js index d641c988..ce19d5f0 100644 --- a/src/index.js +++ b/src/index.js @@ -26,7 +26,7 @@ module.exports = { url, spec, name: fileName, - toJS: translateToJavaScript, + toJS: translateToJavaScript = config.toJS, modular, templates, generateResponses = config.generateResponses, @@ -45,6 +45,7 @@ module.exports = { enumNamesAsValues, disableStrictSSL = config.disableStrictSSL, cleanOutput, + silent = config.silent, }) => new Promise((resolve, reject) => { addToConfig({ @@ -66,6 +67,8 @@ module.exports = { defaultResponseType, singleHttpClient, constants, + silent, + toJS: translateToJavaScript, }); (spec ? convertSwaggerObject(spec) : getSwaggerObject(input, url, disableStrictSSL)) .then(({ usageSchema, originalSchema }) => { @@ -75,7 +78,7 @@ module.exports = { const templatesToRender = getTemplates(config); - console.log("☄️ start generating your typescript api"); + if (!config.silent) console.log("☄️ start generating your typescript api"); fixSwaggerScheme(usageSchema, originalSchema); @@ -148,10 +151,12 @@ module.exports = { if (translateToJavaScript) { createFile(output, file.name, file.content); createFile(output, file.declaration.name, file.declaration.content); - console.log(`✔️ your javascript api file created in "${output}"`); + if (!config.silent) + console.log(`✔️ your javascript api file created in "${output}"`); } else { createFile(output, file.name, file.content); - console.log(`✔️ your typescript api file created in "${output}"`); + if (!config.silent) + console.log(`✔️ your typescript api file created in "${output}"`); } return file; diff --git a/src/modelNames.js b/src/modelNames.js index 2bfe7bc2..540c82fc 100644 --- a/src/modelNames.js +++ b/src/modelNames.js @@ -1,4 +1,5 @@ const _ = require("lodash"); +const { config } = require("./config"); const isValidName = (name) => /^([A-Za-z$_]{1,})$/g.test(name); @@ -6,7 +7,7 @@ const formattedModelNamesMap = new Map(); const checkAndRenameModelName = (name) => { if (typeof name !== "string") { - console.warn("🔨 wrong name of the model name", name); + if (!config.silent) console.warn("🔨 wrong name of the model name", name, config.silent); return name; } diff --git a/src/routeNames.js b/src/routeNames.js index 8167da5d..fe88c217 100644 --- a/src/routeNames.js +++ b/src/routeNames.js @@ -22,12 +22,13 @@ const getRouteName = (routeInfo) => { duplicateIdentifier, routeNameDuplicatesMap.get(duplicateIdentifier) + 1, ); - console.warn( - `🥵 Module "${moduleName}" already have method "${routeName}()"`, - `\n🥵 This method has been renamed to "${ - routeName + routeNameDuplicatesMap.get(duplicateIdentifier) - }()" to solve conflict names.`, - ); + if (!config.silent) + console.warn( + `🥵 Module "${moduleName}" already have method "${routeName}()"`, + `\n🥵 This method has been renamed to "${ + routeName + routeNameDuplicatesMap.get(duplicateIdentifier) + }()" to solve conflict names.`, + ); } else { routeNameDuplicatesMap.set(duplicateIdentifier, 1); } diff --git a/src/routes.js b/src/routes.js index 518eb722..fd52c896 100644 --- a/src/routes.js +++ b/src/routes.js @@ -132,14 +132,14 @@ const parseRoute = (route) => { if (!paramName) return pathParams; if (_.includes(paramName, "-")) { - console.warn("🔨 wrong path param name", paramName); + if (!config.silent) console.warn("🔨 wrong path param name", paramName); } return [ ...pathParams, { $match: match, - name: paramName, + name: _.camelCase(paramName), required: true, type: "string", description: "", @@ -162,6 +162,7 @@ const parseRoute = (route) => { ); return { + originalRoute: route || "", route: fixedRoute, pathParams, }; @@ -206,6 +207,10 @@ const getRouteParams = (routeInfo, pathParams) => { }; } + if (routeParam.in === "path" && routeParam.name) { + routeParam.name = _.camelCase(routeParam.name); + } + if (routeParam) { routeParams[routeParam.in].push(routeParam); } diff --git a/src/swagger.js b/src/swagger.js index 54adc8db..5191be2c 100644 --- a/src/swagger.js +++ b/src/swagger.js @@ -3,7 +3,7 @@ const yaml = require("js-yaml"); const axios = require("axios"); const converter = require("swagger2openapi"); const https = require("https"); -const { addToConfig } = require("./config"); +const { addToConfig, config } = require("./config"); const { pathIsExist, getFileContent } = require("./files"); const parseSwaggerFile = (file) => { @@ -19,10 +19,10 @@ const parseSwaggerFile = (file) => { const getSwaggerFile = (pathToSwagger, urlToSwagger, disableStrictSSL) => new Promise((resolve) => { if (pathIsExist(pathToSwagger)) { - console.log(`✨ try to get swagger by path "${pathToSwagger}"`); + if (!config.silent) console.log(`✨ try to get swagger by path "${pathToSwagger}"`); resolve(getFileContent(pathToSwagger)); } else { - console.log(`✨ try to get swagger by url "${urlToSwagger}"`); + if (!config.silent) console.log(`✨ try to get swagger by url "${urlToSwagger}"`); let agent = undefined; if (disableStrictSSL) { agent = new https.Agent({ diff --git a/src/templates.js b/src/templates.js index 122fd865..81b72c64 100644 --- a/src/templates.js +++ b/src/templates.js @@ -1,7 +1,7 @@ const _ = require("lodash"); const Eta = require("eta"); const { getFileContent, pathIsExist } = require("./files"); -const { config, addToConfig } = require("./config"); +const { config } = require("./config"); const { resolve } = require("path"); /** @@ -38,7 +38,8 @@ const getTemplatePaths = ({ templates, modular }) => { }; const getTemplates = ({ templatePaths }) => { - console.log(`✨ try to read templates from directory "${templatePaths.custom}"`); + if (!config.silent) + console.log(`✨ try to read templates from directory "${templatePaths.custom}"`); const templatesMap = _.reduce( TEMPLATE_INFOS, @@ -53,10 +54,11 @@ const getTemplates = ({ templatePaths }) => { if (pathIsExist(baseFullPath)) { fileContent = getFileContent(baseFullPath); } else { - console.log( - `❗❗❗ ${_.lowerCase(name)} template not found in ${customFullPath}\n` + - `Code generator will use the default template`, - ); + if (!config.silent) + console.log( + `❗❗❗ ${_.lowerCase(name)} template not found in ${customFullPath}\n` + + `Code generator will use the default template`, + ); } if (pathIsExist(originalFullPath)) { diff --git a/templates/default/api.eta b/templates/default/api.eta index d61d1f7e..78f26e9a 100644 --- a/templates/default/api.eta +++ b/templates/default/api.eta @@ -13,7 +13,7 @@ const descriptionLines = _.compact([ ]); %> -<% if (config.httpClientType === config.constants.HTTP_CLIENT.AXIOS) { %> import { AxiosRequestConfig } from "axios"; <% } %> +<% if (config.httpClientType === config.constants.HTTP_CLIENT.AXIOS) { %> import { AxiosRequestConfig, AxiosResponse } from "axios"; <% } %> <% if (descriptionLines.length) { %> /** <% descriptionLines.forEach((descriptionLine) => { %> diff --git a/templates/default/procedure-call.eta b/templates/default/procedure-call.eta index f908537d..9dbca6e7 100644 --- a/templates/default/procedure-call.eta +++ b/templates/default/procedure-call.eta @@ -60,6 +60,19 @@ const bodyContentKindTmpl = requestContentKind[requestBodyInfo.contentKind] || n const responseFormatTmpl = responseContentKind[responseBodyInfo.success && responseBodyInfo.success.schema && responseBodyInfo.success.schema.contentKind] || null; const securityTmpl = security ? 'true' : null; +const describeReturnType = () => { + if (!config.toJS) return ""; + + switch(config.httpClientType) { + case config.constants.HTTP_CLIENT.AXIOS: { + return `Promise>` + } + default: { + return `Promise` + } + } +} + %> /** <%~ routeDocs.description %> @@ -69,7 +82,7 @@ const securityTmpl = security ? 'true' : null; <%~ routeDocs.lines %> */ -<%~ route.routeName.usage %><%~ route.namespace ? ': ' : ' = ' %>(<%~ wrapperArgs %>) => +<%~ route.routeName.usage %><%~ route.namespace ? ': ' : ' = ' %>(<%~ wrapperArgs %>)<%~ config.toJS ? `: ${describeReturnType()}` : "" %> => <%~ config.singleHttpClient ? 'this.http.request' : 'this.request' %><<%~ type %>, <%~ errorType %>>({ path: `<%~ path %>`, method: '<%~ _.upperCase(method) %>', diff --git a/templates/modular/api.eta b/templates/modular/api.eta index eed33dbb..44e95379 100644 --- a/templates/modular/api.eta +++ b/templates/modular/api.eta @@ -5,7 +5,7 @@ const apiClassName = classNameCase(route.moduleName); const routes = route.routes; const dataContracts = _.map(modelTypes, "name"); %> -<% if (config.httpClientType === config.constants.HTTP_CLIENT.AXIOS) { %> import { AxiosRequestConfig } from "axios"; <% } %> +<% if (config.httpClientType === config.constants.HTTP_CLIENT.AXIOS) { %> import { AxiosRequestConfig, AxiosResponse } from "axios"; <% } %> import { HttpClient, RequestParams, ContentType } from "./<%~ config.fileNames.httpClient %>"; <% if (dataContracts.length) { %> import { <%~ dataContracts.join(", ") %> } from "./<%~ config.fileNames.dataContracts %>" diff --git a/templates/modular/procedure-call.eta b/templates/modular/procedure-call.eta index 64126c91..4d75c5c5 100644 --- a/templates/modular/procedure-call.eta +++ b/templates/modular/procedure-call.eta @@ -59,6 +59,20 @@ const queryTmpl = (query != null && queryName) || null; const bodyContentKindTmpl = requestContentKind[requestBodyInfo.contentKind] || null; const responseFormatTmpl = responseContentKind[responseBodyInfo.success && responseBodyInfo.success.schema && responseBodyInfo.success.schema.contentKind] || null; const securityTmpl = security ? 'true' : null; + +const describeReturnType = () => { + if (!config.toJS) return ""; + + switch(config.httpClientType) { + case config.constants.HTTP_CLIENT.AXIOS: { + return `Promise>` + } + default: { + return `Promise` + } + } +} + %> /** <%~ routeDocs.description %> @@ -68,7 +82,7 @@ const securityTmpl = security ? 'true' : null; <%~ routeDocs.lines %> */ -<%~ route.routeName.usage %> = (<%~ wrapperArgs %>) => +<%~ route.routeName.usage %> = (<%~ wrapperArgs %>)<%~ config.toJS ? `: ${describeReturnType()}` : "" %> => <%~ config.singleHttpClient ? 'this.http.request' : 'this.request' %><<%~ type %>, <%~ errorType %>>({ path: `<%~ path %>`, method: '<%~ _.upperCase(method) %>', diff --git a/tests/generate.js b/tests/generate.js index 12330272..e66c88d4 100644 --- a/tests/generate.js +++ b/tests/generate.js @@ -1,28 +1,25 @@ const { resolve } = require("path"); -const createSchemasInfos = require("./helpers/createSchemaInfos") -const { generateApi } = require('../src'); +const createSchemasInfos = require("./helpers/createSchemaInfos"); +const { generateApi } = require("../src"); const schemas = [ ...createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./schemas/v2.0"), - absoluteOutputPath: resolve(__dirname, "./generated/v2.0") + absoluteOutputPath: resolve(__dirname, "./generated/v2.0"), }), ...createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./schemas/v3.0"), - absoluteOutputPath: resolve(__dirname, "./generated/v3.0") + absoluteOutputPath: resolve(__dirname, "./generated/v3.0"), }), -] +]; -schemas.forEach(({ - absolutePath, - apiFileName, - outputPath, -}) => { +schemas.forEach(({ absolutePath, apiFileName, outputPath }) => { generateApi({ name: apiFileName, input: absolutePath, output: outputPath, generateClient: true, - generateRouteTypes: false + generateRouteTypes: false, + silent: true, }); -}) +}); diff --git a/tests/generated/v2.0/adafruit.ts b/tests/generated/v2.0/adafruit.ts index df63ca1b..b90db648 100644 --- a/tests/generated/v2.0/adafruit.ts +++ b/tests/generated/v2.0/adafruit.ts @@ -653,9 +653,9 @@ export class Api extends HttpClient + allBlocks: (username: string, dashboardId: string, params: RequestParams = {}) => this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks`, + path: `/${username}/dashboards/${dashboardId}/blocks`, method: "GET", secure: true, format: "json", @@ -671,9 +671,9 @@ export class Api extends HttpClient + createBlock: (username: string, dashboardId: string, block: Block, params: RequestParams = {}) => this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks`, + path: `/${username}/dashboards/${dashboardId}/blocks`, method: "POST", body: block, secure: true, @@ -691,9 +691,9 @@ export class Api extends HttpClient + destroyBlock: (username: string, dashboardId: string, id: string, params: RequestParams = {}) => this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks/${id}`, + path: `/${username}/dashboards/${dashboardId}/blocks/${id}`, method: "DELETE", secure: true, format: "json", @@ -709,9 +709,9 @@ export class Api extends HttpClient + getBlock: (username: string, dashboardId: string, id: string, params: RequestParams = {}) => this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks/${id}`, + path: `/${username}/dashboards/${dashboardId}/blocks/${id}`, method: "GET", secure: true, format: "json", @@ -729,7 +729,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks/${id}`, + path: `/${username}/dashboards/${dashboardId}/blocks/${id}`, method: "PATCH", body: block, secure: true, @@ -767,7 +767,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/${username}/dashboards/${dashboard_id}/blocks/${id}`, + path: `/${username}/dashboards/${dashboardId}/blocks/${id}`, method: "PUT", body: block, secure: true, @@ -928,9 +928,9 @@ export class Api extends HttpClient + destroyFeed: (username: string, feedKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}`, + path: `/${username}/feeds/${feedKey}`, method: "DELETE", secure: true, ...params, @@ -945,9 +945,9 @@ export class Api extends HttpClient + getFeed: (username: string, feedKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}`, + path: `/${username}/feeds/${feedKey}`, method: "GET", secure: true, format: "json", @@ -965,12 +965,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}`, + path: `/${username}/feeds/${feedKey}`, method: "PATCH", body: feed, secure: true, @@ -990,12 +990,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}`, + path: `/${username}/feeds/${feedKey}`, method: "PUT", body: feed, secure: true, @@ -1015,12 +1015,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}/data`, + path: `/${username}/feeds/${feedKey}/data`, method: "GET", query: query, secure: true, @@ -1039,12 +1039,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}/data`, + path: `/${username}/feeds/${feedKey}/data`, method: "POST", body: datum, secure: true, @@ -1062,9 +1062,9 @@ export class Api extends HttpClient + batchCreateData: (username: string, feedKey: string, data: Data, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/batch`, + path: `/${username}/feeds/${feedKey}/data/batch`, method: "POST", body: data, secure: true, @@ -1084,7 +1084,7 @@ export class Api extends HttpClient @@ -1097,7 +1097,7 @@ export class Api extends HttpClient({ - path: `/${username}/feeds/${feed_key}/data/chart`, + path: `/${username}/feeds/${feedKey}/data/chart`, method: "GET", query: query, secure: true, @@ -1114,9 +1114,9 @@ export class Api extends HttpClient + firstData: (username: string, feedKey: string, query?: { include?: string }, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/first`, + path: `/${username}/feeds/${feedKey}/data/first`, method: "GET", query: query, secure: true, @@ -1134,9 +1134,9 @@ export class Api extends HttpClient + lastData: (username: string, feedKey: string, query?: { include?: string }, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/last`, + path: `/${username}/feeds/${feedKey}/data/last`, method: "GET", query: query, secure: true, @@ -1154,9 +1154,9 @@ export class Api extends HttpClient + nextData: (username: string, feedKey: string, query?: { include?: string }, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/next`, + path: `/${username}/feeds/${feedKey}/data/next`, method: "GET", query: query, secure: true, @@ -1174,9 +1174,9 @@ export class Api extends HttpClient + previousData: (username: string, feedKey: string, query?: { include?: string }, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/previous`, + path: `/${username}/feeds/${feedKey}/data/previous`, method: "GET", query: query, secure: true, @@ -1194,9 +1194,9 @@ export class Api extends HttpClient + retainData: (username: string, feedKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/retain`, + path: `/${username}/feeds/${feedKey}/data/retain`, method: "GET", secure: true, type: ContentType.Json, @@ -1212,9 +1212,9 @@ export class Api extends HttpClient + destroyData: (username: string, feedKey: string, id: string, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/data/${id}`, + path: `/${username}/feeds/${feedKey}/data/${id}`, method: "DELETE", secure: true, format: "json", @@ -1232,13 +1232,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}/data/${id}`, + path: `/${username}/feeds/${feedKey}/data/${id}`, method: "GET", query: query, secure: true, @@ -1257,13 +1257,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}/data/${id}`, + path: `/${username}/feeds/${feedKey}/data/${id}`, method: "PATCH", body: datum, secure: true, @@ -1283,13 +1283,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/feeds/${feed_key}/data/${id}`, + path: `/${username}/feeds/${feedKey}/data/${id}`, method: "PUT", body: datum, secure: true, @@ -1307,9 +1307,9 @@ export class Api extends HttpClient + getFeedDetails: (username: string, feedKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/feeds/${feed_key}/details`, + path: `/${username}/feeds/${feedKey}/details`, method: "GET", secure: true, format: "json", @@ -1363,9 +1363,9 @@ export class Api extends HttpClient + destroyGroup: (username: string, groupKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/groups/${group_key}`, + path: `/${username}/groups/${groupKey}`, method: "DELETE", secure: true, format: "json", @@ -1381,9 +1381,9 @@ export class Api extends HttpClient + getGroup: (username: string, groupKey: string, params: RequestParams = {}) => this.request({ - path: `/${username}/groups/${group_key}`, + path: `/${username}/groups/${groupKey}`, method: "GET", secure: true, format: "json", @@ -1401,12 +1401,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}`, + path: `/${username}/groups/${groupKey}`, method: "PATCH", body: group, secure: true, @@ -1426,12 +1426,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}`, + path: `/${username}/groups/${groupKey}`, method: "PUT", body: group, secure: true, @@ -1449,9 +1449,9 @@ export class Api extends HttpClient + addFeedToGroup: (groupKey: string, username: string, query?: { feed_key?: string }, params: RequestParams = {}) => this.request({ - path: `/${username}/groups/${group_key}/add`, + path: `/${username}/groups/${groupKey}/add`, method: "POST", query: query, secure: true, @@ -1470,7 +1470,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/data`, + path: `/${username}/groups/${groupKey}/data`, method: "POST", body: group_feed_data, secure: true, @@ -1497,9 +1497,9 @@ export class Api extends HttpClient + allGroupFeeds: (groupKey: string, username: string, params: RequestParams = {}) => this.request({ - path: `/${username}/groups/${group_key}/feeds`, + path: `/${username}/groups/${groupKey}/feeds`, method: "GET", secure: true, format: "json", @@ -1517,12 +1517,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/feeds`, + path: `/${username}/groups/${groupKey}/feeds`, method: "POST", body: feed, secure: true, @@ -1542,13 +1542,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/feeds/${feed_key}/data`, + path: `/${username}/groups/${groupKey}/feeds/${feedKey}/data`, method: "GET", query: query, secure: true, @@ -1567,13 +1567,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/feeds/${feed_key}/data`, + path: `/${username}/groups/${groupKey}/feeds/${feedKey}/data`, method: "POST", body: datum, secure: true, @@ -1593,13 +1593,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/feeds/${feed_key}/data/batch`, + path: `/${username}/groups/${groupKey}/feeds/${feedKey}/data/batch`, method: "POST", body: data, secure: true, @@ -1618,13 +1618,13 @@ export class Api extends HttpClient this.request({ - path: `/${username}/groups/${group_key}/remove`, + path: `/${username}/groups/${groupKey}/remove`, method: "POST", query: query, secure: true, @@ -1887,9 +1887,9 @@ export class Api extends HttpClient + allPermissions: (username: string, type: string, typeId: string, params: RequestParams = {}) => this.request({ - path: `/${username}/${type}/${type_id}/acl`, + path: `/${username}/${type}/${typeId}/acl`, method: "GET", secure: true, format: "json", @@ -1908,12 +1908,12 @@ export class Api extends HttpClient this.request({ - path: `/${username}/${type}/${type_id}/acl`, + path: `/${username}/${type}/${typeId}/acl`, method: "POST", body: permission, secure: true, @@ -1931,9 +1931,9 @@ export class Api extends HttpClient + destroyPermission: (username: string, type: string, typeId: string, id: string, params: RequestParams = {}) => this.request({ - path: `/${username}/${type}/${type_id}/acl/${id}`, + path: `/${username}/${type}/${typeId}/acl/${id}`, method: "DELETE", secure: true, format: "json", @@ -1949,9 +1949,9 @@ export class Api extends HttpClient + getPermission: (username: string, type: string, typeId: string, id: string, params: RequestParams = {}) => this.request({ - path: `/${username}/${type}/${type_id}/acl/${id}`, + path: `/${username}/${type}/${typeId}/acl/${id}`, method: "GET", secure: true, format: "json", @@ -1970,7 +1970,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/${username}/${type}/${type_id}/acl/${id}`, + path: `/${username}/${type}/${typeId}/acl/${id}`, method: "PATCH", body: permission, secure: true, @@ -2001,7 +2001,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/${username}/${type}/${type_id}/acl/${id}`, + path: `/${username}/${type}/${typeId}/acl/${id}`, method: "PUT", body: permission, secure: true, diff --git a/tests/generated/v2.0/authentiq.ts b/tests/generated/v2.0/authentiq.ts index d46830b4..6fcacf03 100644 --- a/tests/generated/v2.0/authentiq.ts +++ b/tests/generated/v2.0/authentiq.ts @@ -269,13 +269,13 @@ export class Api extends HttpClient this.request({ - path: `/wrong-path-params1/${pathParam1}/${path_param2}/${path_param3}/${pathParam4}`, + path: `/wrong-path-params1/${pathParam1}/${pathParam2}/${pathParam3}/${pathParam4}`, method: "DELETE", ...params, }), @@ -288,7 +288,7 @@ export class Api extends HttpClient + wrongPathParams2: (pathParam1: string, params: RequestParams = {}) => this.request({ path: `/wrong-path-params2`, method: "DELETE", @@ -335,9 +335,9 @@ export class Api extends HttpClient + keyRevoke: (pk: string, query: { secret: string }, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "DELETE", query: query, format: "json", @@ -351,9 +351,9 @@ export class Api extends HttpClient + getKey: (pk: string, params: RequestParams = {}) => this.request<{ since?: string; status?: string; sub?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "GET", format: "json", ...params, @@ -366,9 +366,9 @@ export class Api extends HttpClient + headKey: (pk: string, params: RequestParams = {}) => this.request({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "HEAD", ...params, }), @@ -380,9 +380,9 @@ export class Api extends HttpClient + keyUpdate: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "POST", body: body, format: "json", @@ -396,9 +396,9 @@ export class Api extends HttpClient + keyBind: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "PUT", body: body, format: "json", diff --git a/tests/generated/v2.0/furkot-example.ts b/tests/generated/v2.0/furkot-example.ts index 4de72699..19f62c03 100644 --- a/tests/generated/v2.0/furkot-example.ts +++ b/tests/generated/v2.0/furkot-example.ts @@ -296,9 +296,9 @@ export class Api extends HttpClient + stopDetail: (tripId: string, params: RequestParams = {}) => this.request({ - path: `/trip/${trip_id}/stop`, + path: `/trip/${tripId}/stop`, method: "GET", secure: true, format: "json", diff --git a/tests/generated/v2.0/github-swagger.ts b/tests/generated/v2.0/github-swagger.ts index 534d21bf..db2bd7f7 100644 --- a/tests/generated/v2.0/github-swagger.ts +++ b/tests/generated/v2.0/github-swagger.ts @@ -4527,12 +4527,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/${archive_format}/${path}`, + path: `/repos/${owner}/${repo}/${archiveFormat}/${path}`, method: "GET", ...params, }), diff --git a/tests/generated/v2.0/petstore-expanded.ts b/tests/generated/v2.0/petstore-expanded.ts index 8347613d..af42d3cd 100644 --- a/tests/generated/v2.0/petstore-expanded.ts +++ b/tests/generated/v2.0/petstore-expanded.ts @@ -244,6 +244,20 @@ export class HttpClient { * A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification */ export class Api extends HttpClient { + pathParams = { + /** + * No description + * + * @name PathParamFooBarBazList + * @request GET:/path-params/{path-param}/{foo-bar-baz} + */ + pathParamFooBarBazList: (pathParam: string, fooBarBaz: string, params: RequestParams = {}) => + this.request({ + path: `/path-params/${pathParam}/${fooBarBaz}`, + method: "GET", + ...params, + }), + }; pets = { /** * @description Returns all pets from the system that the user has access to Nam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia. Sed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien. diff --git a/tests/generated/v3.0/full-swagger-scheme.ts b/tests/generated/v3.0/full-swagger-scheme.ts index 3aab2507..52210f9e 100644 --- a/tests/generated/v3.0/full-swagger-scheme.ts +++ b/tests/generated/v3.0/full-swagger-scheme.ts @@ -9291,9 +9291,9 @@ export class Api extends HttpClient + appsGetInstallation: (installationId: number, params: RequestParams = {}) => this.request({ - path: `/app/installations/${installation_id}`, + path: `/app/installations/${installationId}`, method: "GET", format: "json", ...params, @@ -9307,9 +9307,9 @@ export class Api extends HttpClient + appsDeleteInstallation: (installationId: number, params: RequestParams = {}) => this.request({ - path: `/app/installations/${installation_id}`, + path: `/app/installations/${installationId}`, method: "DELETE", ...params, }), @@ -9323,12 +9323,12 @@ export class Api extends HttpClient this.request({ - path: `/app/installations/${installation_id}/access_tokens`, + path: `/app/installations/${installationId}/access_tokens`, method: "POST", body: data, type: ContentType.Json, @@ -9344,9 +9344,9 @@ export class Api extends HttpClient + appsSuspendInstallation: (installationId: number, params: RequestParams = {}) => this.request({ - path: `/app/installations/${installation_id}/suspended`, + path: `/app/installations/${installationId}/suspended`, method: "PUT", ...params, }), @@ -9359,9 +9359,9 @@ export class Api extends HttpClient + appsUnsuspendInstallation: (installationId: number, params: RequestParams = {}) => this.request({ - path: `/app/installations/${installation_id}/suspended`, + path: `/app/installations/${installationId}/suspended`, method: "DELETE", ...params, }), @@ -9418,9 +9418,9 @@ export class Api extends HttpClient + oauthAuthorizationsGetGrant: (grantId: number, params: RequestParams = {}) => this.request({ - path: `/applications/grants/${grant_id}`, + path: `/applications/grants/${grantId}`, method: "GET", format: "json", ...params, @@ -9434,9 +9434,9 @@ export class Api extends HttpClient + oauthAuthorizationsDeleteGrant: (grantId: number, params: RequestParams = {}) => this.request({ - path: `/applications/grants/${grant_id}`, + path: `/applications/grants/${grantId}`, method: "DELETE", ...params, }), @@ -9449,9 +9449,9 @@ export class Api extends HttpClient + appsDeleteAuthorization: (clientId: string, data: { access_token?: string }, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/grant`, + path: `/applications/${clientId}/grant`, method: "DELETE", body: data, type: ContentType.Json, @@ -9466,9 +9466,9 @@ export class Api extends HttpClient + appsRevokeGrantForApplication: (clientId: string, accessToken: string, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/grants/${access_token}`, + path: `/applications/${clientId}/grants/${accessToken}`, method: "DELETE", ...params, }), @@ -9481,9 +9481,9 @@ export class Api extends HttpClient + appsCheckToken: (clientId: string, data: { access_token: string }, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/token`, + path: `/applications/${clientId}/token`, method: "POST", body: data, type: ContentType.Json, @@ -9499,9 +9499,9 @@ export class Api extends HttpClient + appsResetToken: (clientId: string, data: { access_token: string }, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/token`, + path: `/applications/${clientId}/token`, method: "PATCH", body: data, type: ContentType.Json, @@ -9517,9 +9517,9 @@ export class Api extends HttpClient + appsDeleteToken: (clientId: string, data: { access_token?: string }, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/token`, + path: `/applications/${clientId}/token`, method: "DELETE", body: data, type: ContentType.Json, @@ -9535,7 +9535,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/applications/${client_id}/token/scoped`, + path: `/applications/${clientId}/token/scoped`, method: "POST", body: data, type: ContentType.Json, @@ -9563,9 +9563,9 @@ export class Api extends HttpClient + appsCheckAuthorization: (clientId: string, accessToken: string, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/tokens/${access_token}`, + path: `/applications/${clientId}/tokens/${accessToken}`, method: "GET", format: "json", ...params, @@ -9579,9 +9579,9 @@ export class Api extends HttpClient + appsResetAuthorization: (clientId: string, accessToken: string, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/tokens/${access_token}`, + path: `/applications/${clientId}/tokens/${accessToken}`, method: "POST", format: "json", ...params, @@ -9595,9 +9595,9 @@ export class Api extends HttpClient + appsRevokeAuthorizationForApplication: (clientId: string, accessToken: string, params: RequestParams = {}) => this.request({ - path: `/applications/${client_id}/tokens/${access_token}`, + path: `/applications/${clientId}/tokens/${accessToken}`, method: "DELETE", ...params, }), @@ -9611,9 +9611,9 @@ export class Api extends HttpClient + appsGetBySlug: (appSlug: string, params: RequestParams = {}) => this.request({ - path: `/apps/${app_slug}`, + path: `/apps/${appSlug}`, method: "GET", format: "json", ...params, @@ -9674,12 +9674,12 @@ export class Api extends HttpClient this.request({ - path: `/authorizations/clients/${client_id}`, + path: `/authorizations/clients/${clientId}`, method: "PUT", body: data, type: ContentType.Json, @@ -9696,13 +9696,13 @@ export class Api extends HttpClient this.request({ - path: `/authorizations/clients/${client_id}/${fingerprint}`, + path: `/authorizations/clients/${clientId}/${fingerprint}`, method: "PUT", body: data, type: ContentType.Json, @@ -9718,9 +9718,9 @@ export class Api extends HttpClient + oauthAuthorizationsGetAuthorization: (authorizationId: number, params: RequestParams = {}) => this.request({ - path: `/authorizations/${authorization_id}`, + path: `/authorizations/${authorizationId}`, method: "GET", format: "json", ...params, @@ -9735,7 +9735,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/authorizations/${authorization_id}`, + path: `/authorizations/${authorizationId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -9763,9 +9763,9 @@ export class Api extends HttpClient + oauthAuthorizationsDeleteAuthorization: (authorizationId: number, params: RequestParams = {}) => this.request({ - path: `/authorizations/${authorization_id}`, + path: `/authorizations/${authorizationId}`, method: "DELETE", ...params, }), @@ -9813,7 +9813,7 @@ export class Api extends HttpClient @@ -9821,7 +9821,7 @@ export class Api extends HttpClient({ - path: `/content_references/${content_reference_id}/attachments`, + path: `/content_references/${contentReferenceId}/attachments`, method: "POST", body: data, type: ContentType.Json, @@ -9936,11 +9936,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/permissions/organizations/${org_id}`, + path: `/enterprises/${enterprise}/actions/permissions/organizations/${orgId}`, method: "PUT", ...params, }), @@ -9955,11 +9955,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/permissions/organizations/${org_id}`, + path: `/enterprises/${enterprise}/actions/permissions/organizations/${orgId}`, method: "DELETE", ...params, }), @@ -10054,11 +10054,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}`, method: "GET", format: "json", ...params, @@ -10074,12 +10074,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -10097,11 +10097,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}`, method: "DELETE", ...params, }), @@ -10116,12 +10116,12 @@ export class Api extends HttpClient this.request<{ total_count: number; organizations: OrganizationSimple[] }, any>({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/organizations`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/organizations`, method: "GET", query: query, format: "json", @@ -10138,12 +10138,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/organizations`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/organizations`, method: "PUT", body: data, type: ContentType.Json, @@ -10160,12 +10160,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/organizations/${org_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/organizations/${orgId}`, method: "PUT", ...params, }), @@ -10180,12 +10180,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/organizations/${org_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/organizations/${orgId}`, method: "DELETE", ...params, }), @@ -10200,12 +10200,12 @@ export class Api extends HttpClient this.request<{ total_count: number; runners: Runner[] }, any>({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/runners`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/runners`, method: "GET", query: query, format: "json", @@ -10222,12 +10222,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/runners`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/runners`, method: "PUT", body: data, type: ContentType.Json, @@ -10244,12 +10244,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/runners/${runnerId}`, method: "PUT", ...params, }), @@ -10264,12 +10264,12 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`, + path: `/enterprises/${enterprise}/actions/runner-groups/${runnerGroupId}/runners/${runnerId}`, method: "DELETE", ...params, }), @@ -10353,11 +10353,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runners/${runner_id}`, + path: `/enterprises/${enterprise}/actions/runners/${runnerId}`, method: "GET", format: "json", ...params, @@ -10373,11 +10373,11 @@ export class Api extends HttpClient this.request({ - path: `/enterprises/${enterprise}/actions/runners/${runner_id}`, + path: `/enterprises/${enterprise}/actions/runners/${runnerId}`, method: "DELETE", ...params, }), @@ -10574,7 +10574,7 @@ export class Api extends HttpClient + gistsGet: (gistId: string, params: RequestParams = {}) => this.request< GistSimple, | { @@ -10584,7 +10584,7 @@ export class Api extends HttpClient({ - path: `/gists/${gist_id}`, + path: `/gists/${gistId}`, method: "GET", format: "json", ...params, @@ -10599,7 +10599,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/gists/${gist_id}`, + path: `/gists/${gistId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -10626,9 +10626,9 @@ export class Api extends HttpClient + gistsDelete: (gistId: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}`, + path: `/gists/${gistId}`, method: "DELETE", ...params, }), @@ -10641,9 +10641,9 @@ export class Api extends HttpClient + gistsListComments: (gistId: string, query?: { per_page?: number; page?: number }, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/comments`, + path: `/gists/${gistId}/comments`, method: "GET", query: query, format: "json", @@ -10658,9 +10658,9 @@ export class Api extends HttpClient + gistsCreateComment: (gistId: string, data: { body: string }, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/comments`, + path: `/gists/${gistId}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -10676,7 +10676,7 @@ export class Api extends HttpClient + gistsGetComment: (gistId: string, commentId: number, params: RequestParams = {}) => this.request< GistComment, | { @@ -10686,7 +10686,7 @@ export class Api extends HttpClient({ - path: `/gists/${gist_id}/comments/${comment_id}`, + path: `/gists/${gistId}/comments/${commentId}`, method: "GET", format: "json", ...params, @@ -10700,9 +10700,9 @@ export class Api extends HttpClient + gistsUpdateComment: (gistId: string, commentId: number, data: { body: string }, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/comments/${comment_id}`, + path: `/gists/${gistId}/comments/${commentId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -10718,9 +10718,9 @@ export class Api extends HttpClient + gistsDeleteComment: (gistId: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/comments/${comment_id}`, + path: `/gists/${gistId}/comments/${commentId}`, method: "DELETE", ...params, }), @@ -10733,9 +10733,9 @@ export class Api extends HttpClient + gistsListCommits: (gistId: string, query?: { per_page?: number; page?: number }, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/commits`, + path: `/gists/${gistId}/commits`, method: "GET", query: query, format: "json", @@ -10750,9 +10750,9 @@ export class Api extends HttpClient + gistsListForks: (gistId: string, query?: { per_page?: number; page?: number }, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/forks`, + path: `/gists/${gistId}/forks`, method: "GET", query: query, format: "json", @@ -10767,9 +10767,9 @@ export class Api extends HttpClient + gistsFork: (gistId: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/forks`, + path: `/gists/${gistId}/forks`, method: "POST", format: "json", ...params, @@ -10783,9 +10783,9 @@ export class Api extends HttpClient + gistsCheckIsStarred: (gistId: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/star`, + path: `/gists/${gistId}/star`, method: "GET", ...params, }), @@ -10798,9 +10798,9 @@ export class Api extends HttpClient + gistsStar: (gistId: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/star`, + path: `/gists/${gistId}/star`, method: "PUT", ...params, }), @@ -10813,9 +10813,9 @@ export class Api extends HttpClient + gistsUnstar: (gistId: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/star`, + path: `/gists/${gistId}/star`, method: "DELETE", ...params, }), @@ -10828,9 +10828,9 @@ export class Api extends HttpClient + gistsGetRevision: (gistId: string, sha: string, params: RequestParams = {}) => this.request({ - path: `/gists/${gist_id}/${sha}`, + path: `/gists/${gistId}/${sha}`, method: "GET", format: "json", ...params, @@ -11013,9 +11013,9 @@ export class Api extends HttpClient + appsGetSubscriptionPlanForAccount: (accountId: number, params: RequestParams = {}) => this.request({ - path: `/marketplace_listing/accounts/${account_id}`, + path: `/marketplace_listing/accounts/${accountId}`, method: "GET", format: "json", ...params, @@ -11047,12 +11047,12 @@ export class Api extends HttpClient this.request({ - path: `/marketplace_listing/plans/${plan_id}/accounts`, + path: `/marketplace_listing/plans/${planId}/accounts`, method: "GET", query: query, format: "json", @@ -11067,9 +11067,9 @@ export class Api extends HttpClient + appsGetSubscriptionPlanForAccountStubbed: (accountId: number, params: RequestParams = {}) => this.request({ - path: `/marketplace_listing/stubbed/accounts/${account_id}`, + path: `/marketplace_listing/stubbed/accounts/${accountId}`, method: "GET", format: "json", ...params, @@ -11101,12 +11101,12 @@ export class Api extends HttpClient this.request({ - path: `/marketplace_listing/stubbed/plans/${plan_id}/accounts`, + path: `/marketplace_listing/stubbed/plans/${planId}/accounts`, method: "GET", query: query, format: "json", @@ -11207,9 +11207,9 @@ export class Api extends HttpClient + activityGetThread: (threadId: number, params: RequestParams = {}) => this.request({ - path: `/notifications/threads/${thread_id}`, + path: `/notifications/threads/${threadId}`, method: "GET", format: "json", ...params, @@ -11223,9 +11223,9 @@ export class Api extends HttpClient + activityMarkThreadAsRead: (threadId: number, params: RequestParams = {}) => this.request({ - path: `/notifications/threads/${thread_id}`, + path: `/notifications/threads/${threadId}`, method: "PATCH", ...params, }), @@ -11238,9 +11238,9 @@ export class Api extends HttpClient + activityGetThreadSubscriptionForAuthenticatedUser: (threadId: number, params: RequestParams = {}) => this.request({ - path: `/notifications/threads/${thread_id}/subscription`, + path: `/notifications/threads/${threadId}/subscription`, method: "GET", format: "json", ...params, @@ -11254,9 +11254,9 @@ export class Api extends HttpClient + activitySetThreadSubscription: (threadId: number, data: { ignored?: boolean }, params: RequestParams = {}) => this.request({ - path: `/notifications/threads/${thread_id}/subscription`, + path: `/notifications/threads/${threadId}/subscription`, method: "PUT", body: data, type: ContentType.Json, @@ -11272,9 +11272,9 @@ export class Api extends HttpClient + activityDeleteThreadSubscription: (threadId: number, params: RequestParams = {}) => this.request({ - path: `/notifications/threads/${thread_id}/subscription`, + path: `/notifications/threads/${threadId}/subscription`, method: "DELETE", ...params, }), @@ -11465,11 +11465,11 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/permissions/repositories/${repository_id}`, + path: `/orgs/${org}/actions/permissions/repositories/${repositoryId}`, method: "PUT", ...params, }), @@ -11484,11 +11484,11 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/permissions/repositories/${repository_id}`, + path: `/orgs/${org}/actions/permissions/repositories/${repositoryId}`, method: "DELETE", ...params, }), @@ -11582,9 +11582,9 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerGroupForOrg: (org: string, runnerGroupId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}`, method: "GET", format: "json", ...params, @@ -11600,12 +11600,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -11621,9 +11621,9 @@ export class Api extends HttpClient + actionsDeleteSelfHostedRunnerGroupFromOrg: (org: string, runnerGroupId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}`, method: "DELETE", ...params, }), @@ -11638,11 +11638,11 @@ export class Api extends HttpClient this.request<{ total_count: number; repositories: Repository[] }, any>({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/repositories`, method: "GET", format: "json", ...params, @@ -11658,12 +11658,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/repositories`, method: "PUT", body: data, type: ContentType.Json, @@ -11680,12 +11680,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories/${repository_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/repositories/${repositoryId}`, method: "PUT", ...params, }), @@ -11700,12 +11700,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/repositories/${repository_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/repositories/${repositoryId}`, method: "DELETE", ...params, }), @@ -11720,12 +11720,12 @@ export class Api extends HttpClient this.request<{ total_count: number; runners: Runner[] }, any>({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/runners`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/runners`, method: "GET", query: query, format: "json", @@ -11742,12 +11742,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/runners`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/runners`, method: "PUT", body: data, type: ContentType.Json, @@ -11764,12 +11764,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/runners/${runnerId}`, method: "PUT", ...params, }), @@ -11784,12 +11784,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/runner-groups/${runner_group_id}/runners/${runner_id}`, + path: `/orgs/${org}/actions/runner-groups/${runnerGroupId}/runners/${runnerId}`, method: "DELETE", ...params, }), @@ -11871,9 +11871,9 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerForOrg: (org: string, runnerId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/runners/${runner_id}`, + path: `/orgs/${org}/actions/runners/${runnerId}`, method: "GET", format: "json", ...params, @@ -11887,9 +11887,9 @@ export class Api extends HttpClient + actionsDeleteSelfHostedRunnerFromOrg: (org: string, runnerId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/runners/${runner_id}`, + path: `/orgs/${org}/actions/runners/${runnerId}`, method: "DELETE", ...params, }), @@ -11935,9 +11935,9 @@ export class Api extends HttpClient + actionsGetOrgSecret: (org: string, secretName: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}`, + path: `/orgs/${org}/actions/secrets/${secretName}`, method: "GET", format: "json", ...params, @@ -11953,7 +11953,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}`, + path: `/orgs/${org}/actions/secrets/${secretName}`, method: "PUT", body: data, type: ContentType.Json, @@ -11978,9 +11978,9 @@ export class Api extends HttpClient + actionsDeleteOrgSecret: (org: string, secretName: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}`, + path: `/orgs/${org}/actions/secrets/${secretName}`, method: "DELETE", ...params, }), @@ -11993,9 +11993,9 @@ export class Api extends HttpClient + actionsListSelectedReposForOrgSecret: (org: string, secretName: string, params: RequestParams = {}) => this.request<{ total_count: number; repositories: MinimalRepository[] }, any>({ - path: `/orgs/${org}/actions/secrets/${secret_name}/repositories`, + path: `/orgs/${org}/actions/secrets/${secretName}/repositories`, method: "GET", format: "json", ...params, @@ -12011,12 +12011,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}/repositories`, + path: `/orgs/${org}/actions/secrets/${secretName}/repositories`, method: "PUT", body: data, type: ContentType.Json, @@ -12033,12 +12033,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}/repositories/${repository_id}`, + path: `/orgs/${org}/actions/secrets/${secretName}/repositories/${repositoryId}`, method: "PUT", ...params, }), @@ -12053,12 +12053,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/actions/secrets/${secret_name}/repositories/${repository_id}`, + path: `/orgs/${org}/actions/secrets/${secretName}/repositories/${repositoryId}`, method: "DELETE", ...params, }), @@ -12176,9 +12176,9 @@ export class Api extends HttpClient + orgsRemoveSamlSsoAuthorization: (org: string, credentialId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/credential-authorizations/${credential_id}`, + path: `/orgs/${org}/credential-authorizations/${credentialId}`, method: "DELETE", ...params, }), @@ -12284,9 +12284,9 @@ export class Api extends HttpClient + orgsGetWebhook: (org: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/hooks/${hook_id}`, + path: `/orgs/${org}/hooks/${hookId}`, method: "GET", format: "json", ...params, @@ -12302,7 +12302,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/hooks/${hook_id}`, + path: `/orgs/${org}/hooks/${hookId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -12333,9 +12333,9 @@ export class Api extends HttpClient + orgsDeleteWebhook: (org: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/hooks/${hook_id}`, + path: `/orgs/${org}/hooks/${hookId}`, method: "DELETE", ...params, }), @@ -12348,9 +12348,9 @@ export class Api extends HttpClient + orgsGetWebhookConfigForOrg: (org: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/hooks/${hook_id}/config`, + path: `/orgs/${org}/hooks/${hookId}/config`, method: "GET", format: "json", ...params, @@ -12366,7 +12366,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/hooks/${hook_id}/config`, + path: `/orgs/${org}/hooks/${hookId}/config`, method: "PATCH", body: data, type: ContentType.Json, @@ -12392,9 +12392,9 @@ export class Api extends HttpClient + orgsPingWebhook: (org: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/hooks/${hook_id}/pings`, + path: `/orgs/${org}/hooks/${hookId}/pings`, method: "POST", ...params, }), @@ -12537,9 +12537,9 @@ export class Api extends HttpClient + orgsCancelInvitation: (org: string, invitationId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/invitations/${invitation_id}`, + path: `/orgs/${org}/invitations/${invitationId}`, method: "DELETE", ...params, }), @@ -12554,12 +12554,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/invitations/${invitation_id}/teams`, + path: `/orgs/${org}/invitations/${invitationId}/teams`, method: "GET", query: query, format: "json", @@ -12748,9 +12748,9 @@ export class Api extends HttpClient + migrationsGetStatusForOrg: (org: string, migrationId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/migrations/${migration_id}`, + path: `/orgs/${org}/migrations/${migrationId}`, method: "GET", format: "json", ...params, @@ -12764,9 +12764,9 @@ export class Api extends HttpClient + migrationsDownloadArchiveForOrg: (org: string, migrationId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/migrations/${migration_id}/archive`, + path: `/orgs/${org}/migrations/${migrationId}/archive`, method: "GET", ...params, }), @@ -12779,9 +12779,9 @@ export class Api extends HttpClient + migrationsDeleteArchiveForOrg: (org: string, migrationId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/migrations/${migration_id}/archive`, + path: `/orgs/${org}/migrations/${migrationId}/archive`, method: "DELETE", ...params, }), @@ -12794,9 +12794,9 @@ export class Api extends HttpClient + migrationsUnlockRepoForOrg: (org: string, migrationId: number, repoName: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/migrations/${migration_id}/repos/${repo_name}/lock`, + path: `/orgs/${org}/migrations/${migrationId}/repos/${repoName}/lock`, method: "DELETE", ...params, }), @@ -12811,12 +12811,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/migrations/${migration_id}/repositories`, + path: `/orgs/${org}/migrations/${migrationId}/repositories`, method: "GET", query: query, format: "json", @@ -13162,9 +13162,9 @@ export class Api extends HttpClient + teamsGetByName: (org: string, teamSlug: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}`, + path: `/orgs/${org}/teams/${teamSlug}`, method: "GET", format: "json", ...params, @@ -13180,7 +13180,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}`, + path: `/orgs/${org}/teams/${teamSlug}`, method: "PATCH", body: data, type: ContentType.Json, @@ -13207,9 +13207,9 @@ export class Api extends HttpClient + teamsDeleteInOrg: (org: string, teamSlug: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}`, + path: `/orgs/${org}/teams/${teamSlug}`, method: "DELETE", ...params, }), @@ -13224,12 +13224,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions`, method: "GET", query: query, format: "json", @@ -13246,12 +13246,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions`, method: "POST", body: data, type: ContentType.Json, @@ -13267,9 +13267,9 @@ export class Api extends HttpClient + teamsGetDiscussionInOrg: (org: string, teamSlug: string, discussionNumber: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}`, method: "GET", format: "json", ...params, @@ -13285,13 +13285,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -13307,14 +13307,9 @@ export class Api extends HttpClient + teamsDeleteDiscussionInOrg: (org: string, teamSlug: string, discussionNumber: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}`, method: "DELETE", ...params, }), @@ -13329,13 +13324,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments`, method: "GET", query: query, format: "json", @@ -13352,13 +13347,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -13376,13 +13371,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "GET", format: "json", ...params, @@ -13398,14 +13393,14 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -13423,13 +13418,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "DELETE", ...params, }), @@ -13444,9 +13439,9 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}/reactions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}/reactions`, method: "GET", query: query, format: "json", @@ -13472,14 +13467,14 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}/reactions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -13497,14 +13492,14 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/comments/${comment_number}/reactions/${reaction_id}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/comments/${commentNumber}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -13519,8 +13514,8 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/reactions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/reactions`, method: "GET", query: query, format: "json", @@ -13546,13 +13541,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/reactions`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -13570,13 +13565,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/discussions/${discussion_number}/reactions/${reaction_id}`, + path: `/orgs/${org}/teams/${teamSlug}/discussions/${discussionNumber}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -13591,12 +13586,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/invitations`, + path: `/orgs/${org}/teams/${teamSlug}/invitations`, method: "GET", query: query, format: "json", @@ -13613,12 +13608,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/members`, + path: `/orgs/${org}/teams/${teamSlug}/members`, method: "GET", query: query, format: "json", @@ -13633,9 +13628,9 @@ export class Api extends HttpClient + teamsGetMembershipForUserInOrg: (org: string, teamSlug: string, username: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/memberships/${username}`, + path: `/orgs/${org}/teams/${teamSlug}/memberships/${username}`, method: "GET", format: "json", ...params, @@ -13651,7 +13646,7 @@ export class Api extends HttpClient extends HttpClient({ - path: `/orgs/${org}/teams/${team_slug}/memberships/${username}`, + path: `/orgs/${org}/teams/${teamSlug}/memberships/${username}`, method: "PUT", body: data, type: ContentType.Json, @@ -13676,9 +13671,9 @@ export class Api extends HttpClient + teamsRemoveMembershipForUserInOrg: (org: string, teamSlug: string, username: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/memberships/${username}`, + path: `/orgs/${org}/teams/${teamSlug}/memberships/${username}`, method: "DELETE", ...params, }), @@ -13693,12 +13688,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/projects`, + path: `/orgs/${org}/teams/${teamSlug}/projects`, method: "GET", query: query, format: "json", @@ -13715,12 +13710,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/projects/${project_id}`, + path: `/orgs/${org}/teams/${teamSlug}/projects/${projectId}`, method: "GET", format: "json", ...params, @@ -13736,13 +13731,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/projects/${project_id}`, + path: `/orgs/${org}/teams/${teamSlug}/projects/${projectId}`, method: "PUT", body: data, type: ContentType.Json, @@ -13757,9 +13752,9 @@ export class Api extends HttpClient + teamsRemoveProjectInOrg: (org: string, teamSlug: string, projectId: number, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/projects/${project_id}`, + path: `/orgs/${org}/teams/${teamSlug}/projects/${projectId}`, method: "DELETE", ...params, }), @@ -13774,12 +13769,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/repos`, + path: `/orgs/${org}/teams/${teamSlug}/repos`, method: "GET", query: query, format: "json", @@ -13796,13 +13791,13 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`, + path: `/orgs/${org}/teams/${teamSlug}/repos/${owner}/${repo}`, method: "GET", format: "json", ...params, @@ -13818,14 +13813,14 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`, + path: `/orgs/${org}/teams/${teamSlug}/repos/${owner}/${repo}`, method: "PUT", body: data, type: ContentType.Json, @@ -13840,9 +13835,9 @@ export class Api extends HttpClient + teamsRemoveRepoInOrg: (org: string, teamSlug: string, owner: string, repo: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/repos/${owner}/${repo}`, + path: `/orgs/${org}/teams/${teamSlug}/repos/${owner}/${repo}`, method: "DELETE", ...params, }), @@ -13855,9 +13850,9 @@ export class Api extends HttpClient + teamsListIdpGroupsInOrg: (org: string, teamSlug: string, params: RequestParams = {}) => this.request({ - path: `/orgs/${org}/teams/${team_slug}/team-sync/group-mappings`, + path: `/orgs/${org}/teams/${teamSlug}/team-sync/group-mappings`, method: "GET", format: "json", ...params, @@ -13873,12 +13868,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/team-sync/group-mappings`, + path: `/orgs/${org}/teams/${teamSlug}/team-sync/group-mappings`, method: "PATCH", body: data, type: ContentType.Json, @@ -13896,12 +13891,12 @@ export class Api extends HttpClient this.request({ - path: `/orgs/${org}/teams/${team_slug}/teams`, + path: `/orgs/${org}/teams/${teamSlug}/teams`, method: "GET", query: query, format: "json", @@ -13917,9 +13912,9 @@ export class Api extends HttpClient + projectsGetCard: (cardId: number, params: RequestParams = {}) => this.request({ - path: `/projects/columns/cards/${card_id}`, + path: `/projects/columns/cards/${cardId}`, method: "GET", format: "json", ...params, @@ -13934,12 +13929,12 @@ export class Api extends HttpClient this.request({ - path: `/projects/columns/cards/${card_id}`, + path: `/projects/columns/cards/${cardId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -13955,9 +13950,9 @@ export class Api extends HttpClient + projectsDeleteCard: (cardId: number, params: RequestParams = {}) => this.request({ - path: `/projects/columns/cards/${card_id}`, + path: `/projects/columns/cards/${cardId}`, method: "DELETE", ...params, }), @@ -13970,7 +13965,7 @@ export class Api extends HttpClient + projectsMoveCard: (cardId: number, data: { position: string; column_id?: number }, params: RequestParams = {}) => this.request< object, | BasicError @@ -13987,7 +13982,7 @@ export class Api extends HttpClient({ - path: `/projects/columns/cards/${card_id}/moves`, + path: `/projects/columns/cards/${cardId}/moves`, method: "POST", body: data, type: ContentType.Json, @@ -14003,9 +13998,9 @@ export class Api extends HttpClient + projectsGetColumn: (columnId: number, params: RequestParams = {}) => this.request({ - path: `/projects/columns/${column_id}`, + path: `/projects/columns/${columnId}`, method: "GET", format: "json", ...params, @@ -14019,9 +14014,9 @@ export class Api extends HttpClient + projectsUpdateColumn: (columnId: number, data: { name: string }, params: RequestParams = {}) => this.request({ - path: `/projects/columns/${column_id}`, + path: `/projects/columns/${columnId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -14037,9 +14032,9 @@ export class Api extends HttpClient + projectsDeleteColumn: (columnId: number, params: RequestParams = {}) => this.request({ - path: `/projects/columns/${column_id}`, + path: `/projects/columns/${columnId}`, method: "DELETE", ...params, }), @@ -14053,12 +14048,12 @@ export class Api extends HttpClient this.request({ - path: `/projects/columns/${column_id}/cards`, + path: `/projects/columns/${columnId}/cards`, method: "GET", query: query, format: "json", @@ -14074,7 +14069,7 @@ export class Api extends HttpClient @@ -14089,7 +14084,7 @@ export class Api extends HttpClient({ - path: `/projects/columns/${column_id}/cards`, + path: `/projects/columns/${columnId}/cards`, method: "POST", body: data, type: ContentType.Json, @@ -14105,9 +14100,9 @@ export class Api extends HttpClient + projectsMoveColumn: (columnId: number, data: { position: string }, params: RequestParams = {}) => this.request({ - path: `/projects/columns/${column_id}/moves`, + path: `/projects/columns/${columnId}/moves`, method: "POST", body: data, type: ContentType.Json, @@ -14123,9 +14118,9 @@ export class Api extends HttpClient + projectsGet: (projectId: number, params: RequestParams = {}) => this.request({ - path: `/projects/${project_id}`, + path: `/projects/${projectId}`, method: "GET", format: "json", ...params, @@ -14140,7 +14135,7 @@ export class Api extends HttpClient extends HttpClient({ - path: `/projects/${project_id}`, + path: `/projects/${projectId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -14170,9 +14165,9 @@ export class Api extends HttpClient + projectsDelete: (projectId: number, params: RequestParams = {}) => this.request({ - path: `/projects/${project_id}`, + path: `/projects/${projectId}`, method: "DELETE", ...params, }), @@ -14186,12 +14181,12 @@ export class Api extends HttpClient this.request({ - path: `/projects/${project_id}/collaborators`, + path: `/projects/${projectId}/collaborators`, method: "GET", query: query, format: "json", @@ -14207,13 +14202,13 @@ export class Api extends HttpClient this.request({ - path: `/projects/${project_id}/collaborators/${username}`, + path: `/projects/${projectId}/collaborators/${username}`, method: "PUT", body: data, type: ContentType.Json, @@ -14228,9 +14223,9 @@ export class Api extends HttpClient + projectsRemoveCollaborator: (projectId: number, username: string, params: RequestParams = {}) => this.request({ - path: `/projects/${project_id}/collaborators/${username}`, + path: `/projects/${projectId}/collaborators/${username}`, method: "DELETE", ...params, }), @@ -14243,12 +14238,12 @@ export class Api extends HttpClient + projectsGetPermissionForUser: (projectId: number, username: string, params: RequestParams = {}) => this.request< RepositoryCollaboratorPermission, BasicError | { message: string; documentation_url: string } | ValidationError >({ - path: `/projects/${project_id}/collaborators/${username}/permission`, + path: `/projects/${projectId}/collaborators/${username}/permission`, method: "GET", format: "json", ...params, @@ -14263,12 +14258,12 @@ export class Api extends HttpClient this.request({ - path: `/projects/${project_id}/columns`, + path: `/projects/${projectId}/columns`, method: "GET", query: query, format: "json", @@ -14283,9 +14278,9 @@ export class Api extends HttpClient + projectsCreateColumn: (projectId: number, data: { name: string }, params: RequestParams = {}) => this.request({ - path: `/projects/${project_id}/columns`, + path: `/projects/${projectId}/columns`, method: "POST", body: data, type: ContentType.Json, @@ -14319,9 +14314,9 @@ export class Api extends HttpClient + reactionsDeleteLegacy: (reactionId: number, params: RequestParams = {}) => this.request({ - path: `/reactions/${reaction_id}`, + path: `/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -14427,9 +14422,9 @@ export class Api extends HttpClient + actionsGetArtifact: (owner: string, repo: string, artifactId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/artifacts/${artifact_id}`, + path: `/repos/${owner}/${repo}/actions/artifacts/${artifactId}`, method: "GET", format: "json", ...params, @@ -14443,9 +14438,9 @@ export class Api extends HttpClient + actionsDeleteArtifact: (owner: string, repo: string, artifactId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/artifacts/${artifact_id}`, + path: `/repos/${owner}/${repo}/actions/artifacts/${artifactId}`, method: "DELETE", ...params, }), @@ -14461,12 +14456,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/actions/artifacts/${artifact_id}/${archive_format}`, + path: `/repos/${owner}/${repo}/actions/artifacts/${artifactId}/${archiveFormat}`, method: "GET", ...params, }), @@ -14479,9 +14474,9 @@ export class Api extends HttpClient + actionsGetJobForWorkflowRun: (owner: string, repo: string, jobId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/jobs/${job_id}`, + path: `/repos/${owner}/${repo}/actions/jobs/${jobId}`, method: "GET", format: "json", ...params, @@ -14495,9 +14490,9 @@ export class Api extends HttpClient + actionsDownloadJobLogsForWorkflowRun: (owner: string, repo: string, jobId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/jobs/${job_id}/logs`, + path: `/repos/${owner}/${repo}/actions/jobs/${jobId}/logs`, method: "GET", ...params, }), @@ -14656,9 +14651,9 @@ export class Api extends HttpClient + actionsGetSelfHostedRunnerForRepo: (owner: string, repo: string, runnerId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runners/${runner_id}`, + path: `/repos/${owner}/${repo}/actions/runners/${runnerId}`, method: "GET", format: "json", ...params, @@ -14675,11 +14670,11 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/actions/runners/${runner_id}`, + path: `/repos/${owner}/${repo}/actions/runners/${runnerId}`, method: "DELETE", ...params, }), @@ -14721,9 +14716,9 @@ export class Api extends HttpClient + actionsGetWorkflowRun: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}`, method: "GET", format: "json", ...params, @@ -14737,9 +14732,9 @@ export class Api extends HttpClient + actionsDeleteWorkflowRun: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}`, method: "DELETE", ...params, }), @@ -14755,12 +14750,12 @@ export class Api extends HttpClient this.request<{ total_count: number; artifacts: Artifact[] }, any>({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/artifacts`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/artifacts`, method: "GET", query: query, format: "json", @@ -14775,9 +14770,9 @@ export class Api extends HttpClient + actionsCancelWorkflowRun: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/cancel`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/cancel`, method: "POST", ...params, }), @@ -14793,12 +14788,12 @@ export class Api extends HttpClient this.request<{ total_count: number; jobs: Job[] }, any>({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/jobs`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/jobs`, method: "GET", query: query, format: "json", @@ -14813,9 +14808,9 @@ export class Api extends HttpClient + actionsDownloadWorkflowRunLogs: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/logs`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/logs`, method: "GET", ...params, }), @@ -14828,9 +14823,9 @@ export class Api extends HttpClient + actionsDeleteWorkflowRunLogs: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/logs`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/logs`, method: "DELETE", ...params, }), @@ -14843,9 +14838,9 @@ export class Api extends HttpClient + actionsReRunWorkflow: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/rerun`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/rerun`, method: "POST", ...params, }), @@ -14858,9 +14853,9 @@ export class Api extends HttpClient + actionsGetWorkflowRunUsage: (owner: string, repo: string, runId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/runs/${run_id}/timing`, + path: `/repos/${owner}/${repo}/actions/runs/${runId}/timing`, method: "GET", format: "json", ...params, @@ -14912,9 +14907,9 @@ export class Api extends HttpClient + actionsGetRepoSecret: (owner: string, repo: string, secretName: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/secrets/${secret_name}`, + path: `/repos/${owner}/${repo}/actions/secrets/${secretName}`, method: "GET", format: "json", ...params, @@ -14931,12 +14926,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/actions/secrets/${secret_name}`, + path: `/repos/${owner}/${repo}/actions/secrets/${secretName}`, method: "PUT", body: data, type: ContentType.Json, @@ -14951,9 +14946,9 @@ export class Api extends HttpClient + actionsDeleteRepoSecret: (owner: string, repo: string, secretName: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/secrets/${secret_name}`, + path: `/repos/${owner}/${repo}/actions/secrets/${secretName}`, method: "DELETE", ...params, }), @@ -14988,9 +14983,9 @@ export class Api extends HttpClient + actionsGetWorkflow: (owner: string, repo: string, workflowId: number | string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}`, method: "GET", format: "json", ...params, @@ -15004,9 +14999,9 @@ export class Api extends HttpClient + actionsDisableWorkflow: (owner: string, repo: string, workflowId: number | string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}/disable`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/disable`, method: "PUT", ...params, }), @@ -15022,12 +15017,12 @@ export class Api extends HttpClient }, params: RequestParams = {}, ) => this.request({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}/dispatches`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/dispatches`, method: "POST", body: data, type: ContentType.Json, @@ -15042,9 +15037,9 @@ export class Api extends HttpClient + actionsEnableWorkflow: (owner: string, repo: string, workflowId: number | string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}/enable`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/enable`, method: "PUT", ...params, }), @@ -15060,7 +15055,7 @@ export class Api extends HttpClient extends HttpClient this.request<{ total_count: number; workflow_runs: WorkflowRun[] }, any>({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}/runs`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/runs`, method: "GET", query: query, format: "json", @@ -15087,9 +15082,9 @@ export class Api extends HttpClient + actionsGetWorkflowUsage: (owner: string, repo: string, workflowId: number | string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/actions/workflows/${workflow_id}/timing`, + path: `/repos/${owner}/${repo}/actions/workflows/${workflowId}/timing`, method: "GET", format: "json", ...params, @@ -15964,9 +15959,9 @@ export class Api extends HttpClient + checksGet: (owner: string, repo: string, checkRunId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/check-runs/${check_run_id}`, + path: `/repos/${owner}/${repo}/check-runs/${checkRunId}`, method: "GET", format: "json", ...params, @@ -15983,7 +15978,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/check-runs/${check_run_id}`, + path: `/repos/${owner}/${repo}/check-runs/${checkRunId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -16037,12 +16032,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/check-runs/${check_run_id}/annotations`, + path: `/repos/${owner}/${repo}/check-runs/${checkRunId}/annotations`, method: "GET", query: query, format: "json", @@ -16098,9 +16093,9 @@ export class Api extends HttpClient + checksGetSuite: (owner: string, repo: string, checkSuiteId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/check-suites/${check_suite_id}`, + path: `/repos/${owner}/${repo}/check-suites/${checkSuiteId}`, method: "GET", format: "json", ...params, @@ -16117,7 +16112,7 @@ export class Api extends HttpClient extends HttpClient this.request<{ total_count: number; check_runs: CheckRun[] }, any>({ - path: `/repos/${owner}/${repo}/check-suites/${check_suite_id}/check-runs`, + path: `/repos/${owner}/${repo}/check-suites/${checkSuiteId}/check-runs`, method: "GET", query: query, format: "json", @@ -16143,9 +16138,9 @@ export class Api extends HttpClient + checksRerequestSuite: (owner: string, repo: string, checkSuiteId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/check-suites/${check_suite_id}/rerequest`, + path: `/repos/${owner}/${repo}/check-suites/${checkSuiteId}/rerequest`, method: "POST", ...params, }), @@ -16183,12 +16178,12 @@ export class Api extends HttpClient + codeScanningGetAlert: (owner: string, repo: string, alertNumber: number, params: RequestParams = {}) => this.request< CodeScanningAlertCodeScanningAlert, void | BasicError | { code?: string; message?: string; documentation_url?: string } >({ - path: `/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}`, + path: `/repos/${owner}/${repo}/code-scanning/alerts/${alertNumber}`, method: "GET", format: "json", ...params, @@ -16205,12 +16200,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/code-scanning/alerts/${alert_number}`, + path: `/repos/${owner}/${repo}/code-scanning/alerts/${alertNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -16391,9 +16386,9 @@ export class Api extends HttpClient + reposGetCommitComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/comments/${commentId}`, method: "GET", format: "json", ...params, @@ -16410,12 +16405,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/comments/${commentId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -16431,9 +16426,9 @@ export class Api extends HttpClient + reposDeleteCommitComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/comments/${commentId}`, method: "DELETE", ...params, }), @@ -16449,7 +16444,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/comments/${commentId}/reactions`, method: "GET", query: query, format: "json", @@ -16476,12 +16471,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/comments/${commentId}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -16500,12 +16495,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/comments/${comment_id}/reactions/${reaction_id}`, + path: `/repos/${owner}/${repo}/comments/${commentId}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -16548,9 +16543,9 @@ export class Api extends HttpClient + reposListBranchesForHeadCommit: (owner: string, repo: string, commitSha: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/commits/${commit_sha}/branches-where-head`, + path: `/repos/${owner}/${repo}/commits/${commitSha}/branches-where-head`, method: "GET", format: "json", ...params, @@ -16567,12 +16562,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/commits/${commit_sha}/comments`, + path: `/repos/${owner}/${repo}/commits/${commitSha}/comments`, method: "GET", query: query, format: "json", @@ -16590,12 +16585,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/commits/${commit_sha}/comments`, + path: `/repos/${owner}/${repo}/commits/${commitSha}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -16614,12 +16609,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/commits/${commit_sha}/pulls`, + path: `/repos/${owner}/${repo}/commits/${commitSha}/pulls`, method: "GET", query: query, format: "json", @@ -16954,9 +16949,9 @@ export class Api extends HttpClient + reposGetDeployment: (owner: string, repo: string, deploymentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/deployments/${deployment_id}`, + path: `/repos/${owner}/${repo}/deployments/${deploymentId}`, method: "GET", format: "json", ...params, @@ -16970,9 +16965,9 @@ export class Api extends HttpClient + reposDeleteDeployment: (owner: string, repo: string, deploymentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/deployments/${deployment_id}`, + path: `/repos/${owner}/${repo}/deployments/${deploymentId}`, method: "DELETE", ...params, }), @@ -16988,12 +16983,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/deployments/${deployment_id}/statuses`, + path: `/repos/${owner}/${repo}/deployments/${deploymentId}/statuses`, method: "GET", query: query, format: "json", @@ -17011,7 +17006,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/deployments/${deployment_id}/statuses`, + path: `/repos/${owner}/${repo}/deployments/${deploymentId}/statuses`, method: "POST", body: data, type: ContentType.Json, @@ -17043,12 +17038,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/deployments/${deployment_id}/statuses/${status_id}`, + path: `/repos/${owner}/${repo}/deployments/${deploymentId}/statuses/${statusId}`, method: "GET", format: "json", ...params, @@ -17169,9 +17164,9 @@ export class Api extends HttpClient + gitGetBlob: (owner: string, repo: string, fileSha: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/git/blobs/${file_sha}`, + path: `/repos/${owner}/${repo}/git/blobs/${fileSha}`, method: "GET", format: "json", ...params, @@ -17215,9 +17210,9 @@ export class Api extends HttpClient + gitGetCommit: (owner: string, repo: string, commitSha: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/git/commits/${commit_sha}`, + path: `/repos/${owner}/${repo}/git/commits/${commitSha}`, method: "GET", format: "json", ...params, @@ -17361,9 +17356,9 @@ export class Api extends HttpClient + gitGetTag: (owner: string, repo: string, tagSha: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/git/tags/${tag_sha}`, + path: `/repos/${owner}/${repo}/git/tags/${tagSha}`, method: "GET", format: "json", ...params, @@ -17412,12 +17407,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/git/trees/${tree_sha}`, + path: `/repos/${owner}/${repo}/git/trees/${treeSha}`, method: "GET", query: query, format: "json", @@ -17489,9 +17484,9 @@ export class Api extends HttpClient + reposGetWebhook: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}`, + path: `/repos/${owner}/${repo}/hooks/${hookId}`, method: "GET", format: "json", ...params, @@ -17508,7 +17503,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}`, + path: `/repos/${owner}/${repo}/hooks/${hookId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -17542,9 +17537,9 @@ export class Api extends HttpClient + reposDeleteWebhook: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}`, + path: `/repos/${owner}/${repo}/hooks/${hookId}`, method: "DELETE", ...params, }), @@ -17557,9 +17552,9 @@ export class Api extends HttpClient + reposGetWebhookConfigForRepo: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}/config`, + path: `/repos/${owner}/${repo}/hooks/${hookId}/config`, method: "GET", format: "json", ...params, @@ -17576,7 +17571,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}/config`, + path: `/repos/${owner}/${repo}/hooks/${hookId}/config`, method: "PATCH", body: data, type: ContentType.Json, @@ -17602,9 +17597,9 @@ export class Api extends HttpClient + reposPingWebhook: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}/pings`, + path: `/repos/${owner}/${repo}/hooks/${hookId}/pings`, method: "POST", ...params, }), @@ -17617,9 +17612,9 @@ export class Api extends HttpClient + reposTestPushWebhook: (owner: string, repo: string, hookId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/hooks/${hook_id}/tests`, + path: `/repos/${owner}/${repo}/hooks/${hookId}/tests`, method: "POST", ...params, }), @@ -17735,12 +17730,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/import/authors/${author_id}`, + path: `/repos/${owner}/${repo}/import/authors/${authorId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -17890,12 +17885,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/invitations/${invitation_id}`, + path: `/repos/${owner}/${repo}/invitations/${invitationId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -17911,9 +17906,9 @@ export class Api extends HttpClient + reposDeleteInvitation: (owner: string, repo: string, invitationId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/invitations/${invitation_id}`, + path: `/repos/${owner}/${repo}/invitations/${invitationId}`, method: "DELETE", ...params, }), @@ -18021,9 +18016,9 @@ export class Api extends HttpClient + issuesGetComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, method: "GET", format: "json", ...params, @@ -18040,12 +18035,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -18061,9 +18056,9 @@ export class Api extends HttpClient + issuesDeleteComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, method: "DELETE", ...params, }), @@ -18079,7 +18074,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}/reactions`, method: "GET", query: query, format: "json", @@ -18106,12 +18101,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -18130,12 +18125,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/comments/${comment_id}/reactions/${reaction_id}`, + path: `/repos/${owner}/${repo}/issues/comments/${commentId}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -18170,9 +18165,9 @@ export class Api extends HttpClient + issuesGetEvent: (owner: string, repo: string, eventId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/events/${event_id}`, + path: `/repos/${owner}/${repo}/issues/events/${eventId}`, method: "GET", format: "json", ...params, @@ -18186,9 +18181,9 @@ export class Api extends HttpClient + issuesGet: (owner: string, repo: string, issueNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}`, method: "GET", format: "json", ...params, @@ -18205,7 +18200,7 @@ export class Api extends HttpClient extends HttpClient({ - path: `/repos/${owner}/${repo}/issues/${issue_number}`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -18240,12 +18235,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/assignees`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/assignees`, method: "POST", body: data, type: ContentType.Json, @@ -18264,12 +18259,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/assignees`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/assignees`, method: "DELETE", body: data, type: ContentType.Json, @@ -18288,12 +18283,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/comments`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/comments`, method: "GET", query: query, format: "json", @@ -18311,12 +18306,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/comments`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -18335,12 +18330,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/events`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/events`, method: "GET", query: query, format: "json", @@ -18358,12 +18353,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/labels`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/labels`, method: "GET", query: query, format: "json", @@ -18381,12 +18376,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/labels`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/labels`, method: "POST", body: data, type: ContentType.Json, @@ -18405,12 +18400,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/labels`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/labels`, method: "PUT", body: data, type: ContentType.Json, @@ -18426,9 +18421,9 @@ export class Api extends HttpClient + issuesRemoveAllLabels: (owner: string, repo: string, issueNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/labels`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/labels`, method: "DELETE", ...params, }), @@ -18441,9 +18436,9 @@ export class Api extends HttpClient + issuesRemoveLabel: (owner: string, repo: string, issueNumber: number, name: string, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/labels/${name}`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/labels/${name}`, method: "DELETE", format: "json", ...params, @@ -18460,12 +18455,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/lock`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/lock`, method: "PUT", body: data, type: ContentType.Json, @@ -18480,9 +18475,9 @@ export class Api extends HttpClient + issuesUnlock: (owner: string, repo: string, issueNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/lock`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/lock`, method: "DELETE", ...params, }), @@ -18498,7 +18493,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/reactions`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/reactions`, method: "GET", query: query, format: "json", @@ -18525,12 +18520,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/reactions`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -18549,12 +18544,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/reactions/${reaction_id}`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -18570,12 +18565,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/issues/${issue_number}/timeline`, + path: `/repos/${owner}/${repo}/issues/${issueNumber}/timeline`, method: "GET", query: query, format: "json", @@ -18635,9 +18630,9 @@ export class Api extends HttpClient + reposGetDeployKey: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/keys/${key_id}`, + path: `/repos/${owner}/${repo}/keys/${keyId}`, method: "GET", format: "json", ...params, @@ -18651,9 +18646,9 @@ export class Api extends HttpClient + reposDeleteDeployKey: (owner: string, repo: string, keyId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/keys/${key_id}`, + path: `/repos/${owner}/${repo}/keys/${keyId}`, method: "DELETE", ...params, }), @@ -18872,9 +18867,9 @@ export class Api extends HttpClient + issuesGetMilestone: (owner: string, repo: string, milestoneNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/milestones/${milestone_number}`, + path: `/repos/${owner}/${repo}/milestones/${milestoneNumber}`, method: "GET", format: "json", ...params, @@ -18891,12 +18886,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/milestones/${milestone_number}`, + path: `/repos/${owner}/${repo}/milestones/${milestoneNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -18912,9 +18907,9 @@ export class Api extends HttpClient + issuesDeleteMilestone: (owner: string, repo: string, milestoneNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/milestones/${milestone_number}`, + path: `/repos/${owner}/${repo}/milestones/${milestoneNumber}`, method: "DELETE", ...params, }), @@ -18930,12 +18925,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/milestones/${milestone_number}/labels`, + path: `/repos/${owner}/${repo}/milestones/${milestoneNumber}/labels`, method: "GET", query: query, format: "json", @@ -19140,9 +19135,9 @@ export class Api extends HttpClient + reposGetPagesBuild: (owner: string, repo: string, buildId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pages/builds/${build_id}`, + path: `/repos/${owner}/${repo}/pages/builds/${buildId}`, method: "GET", format: "json", ...params, @@ -19290,9 +19285,9 @@ export class Api extends HttpClient + pullsGetReviewComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, method: "GET", format: "json", ...params, @@ -19309,12 +19304,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -19330,9 +19325,9 @@ export class Api extends HttpClient + pullsDeleteReviewComment: (owner: string, repo: string, commentId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, method: "DELETE", ...params, }), @@ -19348,7 +19343,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}/reactions`, method: "GET", query: query, format: "json", @@ -19375,12 +19370,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -19399,12 +19394,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/comments/${comment_id}/reactions/${reaction_id}`, + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}/reactions/${reactionId}`, method: "DELETE", ...params, }), @@ -19417,9 +19412,9 @@ export class Api extends HttpClient + pullsGet: (owner: string, repo: string, pullNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}`, method: "GET", format: "json", ...params, @@ -19436,7 +19431,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -19466,7 +19461,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/comments`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/comments`, method: "GET", query: query, format: "json", @@ -19495,7 +19490,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/comments`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -19529,13 +19524,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/comments/${comment_id}/replies`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/comments/${commentId}/replies`, method: "POST", body: data, type: ContentType.Json, @@ -19554,12 +19549,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/commits`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/commits`, method: "GET", query: query, format: "json", @@ -19577,12 +19572,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/files`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/files`, method: "GET", query: query, format: "json", @@ -19597,9 +19592,9 @@ export class Api extends HttpClient + pullsCheckIfMerged: (owner: string, repo: string, pullNumber: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/merge`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/merge`, method: "GET", ...params, }), @@ -19615,7 +19610,7 @@ export class Api extends HttpClient extends HttpClient({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/merge`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/merge`, method: "PUT", body: data, type: ContentType.Json, @@ -19647,12 +19642,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/requested_reviewers`, method: "GET", query: query, format: "json", @@ -19670,12 +19665,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/requested_reviewers`, method: "POST", body: data, type: ContentType.Json, @@ -19694,12 +19689,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/requested_reviewers`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/requested_reviewers`, method: "DELETE", body: data, type: ContentType.Json, @@ -19717,12 +19712,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews`, method: "GET", query: query, format: "json", @@ -19740,7 +19735,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews`, method: "POST", body: data, type: ContentType.Json, @@ -19774,9 +19769,9 @@ export class Api extends HttpClient + pullsGetReview: (owner: string, repo: string, pullNumber: number, reviewId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}`, method: "GET", format: "json", ...params, @@ -19793,13 +19788,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}`, method: "PUT", body: data, type: ContentType.Json, @@ -19818,12 +19813,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}`, method: "DELETE", format: "json", ...params, @@ -19840,13 +19835,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/comments`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}/comments`, method: "GET", query: query, format: "json", @@ -19864,13 +19859,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/dismissals`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}/dismissals`, method: "PUT", body: data, type: ContentType.Json, @@ -19889,13 +19884,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/reviews/${review_id}/events`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/reviews/${reviewId}/events`, method: "POST", body: data, type: ContentType.Json, @@ -19914,7 +19909,7 @@ export class Api extends HttpClient @@ -19922,7 +19917,7 @@ export class Api extends HttpClient({ - path: `/repos/${owner}/${repo}/pulls/${pull_number}/update-branch`, + path: `/repos/${owner}/${repo}/pulls/${pullNumber}/update-branch`, method: "PUT", body: data, type: ContentType.Json, @@ -20007,9 +20002,9 @@ export class Api extends HttpClient + reposGetReleaseAsset: (owner: string, repo: string, assetId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/releases/assets/${asset_id}`, + path: `/repos/${owner}/${repo}/releases/assets/${assetId}`, method: "GET", format: "json", ...params, @@ -20026,12 +20021,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/releases/assets/${asset_id}`, + path: `/repos/${owner}/${repo}/releases/assets/${assetId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -20047,9 +20042,9 @@ export class Api extends HttpClient + reposDeleteReleaseAsset: (owner: string, repo: string, assetId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/releases/assets/${asset_id}`, + path: `/repos/${owner}/${repo}/releases/assets/${assetId}`, method: "DELETE", ...params, }), @@ -20094,9 +20089,9 @@ export class Api extends HttpClient + reposGetRelease: (owner: string, repo: string, releaseId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/releases/${release_id}`, + path: `/repos/${owner}/${repo}/releases/${releaseId}`, method: "GET", format: "json", ...params, @@ -20113,7 +20108,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/releases/${release_id}`, + path: `/repos/${owner}/${repo}/releases/${releaseId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -20141,9 +20136,9 @@ export class Api extends HttpClient + reposDeleteRelease: (owner: string, repo: string, releaseId: number, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/releases/${release_id}`, + path: `/repos/${owner}/${repo}/releases/${releaseId}`, method: "DELETE", ...params, }), @@ -20159,12 +20154,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/releases/${release_id}/assets`, + path: `/repos/${owner}/${repo}/releases/${releaseId}/assets`, method: "GET", query: query, format: "json", @@ -20182,13 +20177,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/releases/${release_id}/assets`, + path: `/repos/${owner}/${repo}/releases/${releaseId}/assets`, method: "POST", query: query, body: data, @@ -20226,9 +20221,9 @@ export class Api extends HttpClient + secretScanningGetAlert: (owner: string, repo: string, alertNumber: AlertNumber, params: RequestParams = {}) => this.request({ - path: `/repos/${owner}/${repo}/secret-scanning/alerts/${alert_number}`, + path: `/repos/${owner}/${repo}/secret-scanning/alerts/${alertNumber}`, method: "GET", format: "json", ...params, @@ -20245,12 +20240,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/secret-scanning/alerts/${alert_number}`, + path: `/repos/${owner}/${repo}/secret-scanning/alerts/${alertNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -20716,13 +20711,13 @@ export class Api extends HttpClient this.request({ - path: `/repos/${template_owner}/${template_repo}/generate`, + path: `/repos/${templateOwner}/${templateRepo}/generate`, method: "POST", body: data, type: ContentType.Json, @@ -20802,11 +20797,11 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Groups/${scim_group_id}`, + path: `/scim/v2/enterprises/${enterprise}/Groups/${scimGroupId}`, method: "GET", format: "json", ...params, @@ -20822,12 +20817,12 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Groups/${scim_group_id}`, + path: `/scim/v2/enterprises/${enterprise}/Groups/${scimGroupId}`, method: "PUT", body: data, type: ContentType.Json, @@ -20845,12 +20840,12 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Groups/${scim_group_id}`, + path: `/scim/v2/enterprises/${enterprise}/Groups/${scimGroupId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -20868,11 +20863,11 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Groups/${scim_group_id}`, + path: `/scim/v2/enterprises/${enterprise}/Groups/${scimGroupId}`, method: "DELETE", ...params, }), @@ -20936,11 +20931,11 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Users/${scim_user_id}`, + path: `/scim/v2/enterprises/${enterprise}/Users/${scimUserId}`, method: "GET", format: "json", ...params, @@ -20956,7 +20951,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Users/${scim_user_id}`, + path: `/scim/v2/enterprises/${enterprise}/Users/${scimUserId}`, method: "PUT", body: data, type: ContentType.Json, @@ -20985,12 +20980,12 @@ export class Api extends HttpClient this.request({ - path: `/scim/v2/enterprises/${enterprise}/Users/${scim_user_id}`, + path: `/scim/v2/enterprises/${enterprise}/Users/${scimUserId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -21006,9 +21001,9 @@ export class Api extends HttpClient + enterpriseAdminDeleteUserFromEnterprise: (enterprise: string, scimUserId: string, params: RequestParams = {}) => this.request({ - path: `/scim/v2/enterprises/${enterprise}/Users/${scim_user_id}`, + path: `/scim/v2/enterprises/${enterprise}/Users/${scimUserId}`, method: "DELETE", ...params, }), @@ -21073,9 +21068,9 @@ export class Api extends HttpClient + scimGetProvisioningInformationForUser: (org: string, scimUserId: string, params: RequestParams = {}) => this.request({ - path: `/scim/v2/organizations/${org}/Users/${scim_user_id}`, + path: `/scim/v2/organizations/${org}/Users/${scimUserId}`, method: "GET", format: "json", ...params, @@ -21091,7 +21086,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/scim/v2/organizations/${org}/Users/${scim_user_id}`, + path: `/scim/v2/organizations/${org}/Users/${scimUserId}`, method: "PUT", body: data, type: ContentType.Json, @@ -21123,7 +21118,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/scim/v2/organizations/${org}/Users/${scim_user_id}`, + path: `/scim/v2/organizations/${org}/Users/${scimUserId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -21160,9 +21155,9 @@ export class Api extends HttpClient + scimDeleteUserFromOrg: (org: string, scimUserId: string, params: RequestParams = {}) => this.request({ - path: `/scim/v2/organizations/${org}/Users/${scim_user_id}`, + path: `/scim/v2/organizations/${org}/Users/${scimUserId}`, method: "DELETE", ...params, }), @@ -21370,9 +21365,9 @@ export class Api extends HttpClient + teamsGetLegacy: (teamId: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}`, + path: `/teams/${teamId}`, method: "GET", format: "json", ...params, @@ -21387,7 +21382,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/teams/${team_id}`, + path: `/teams/${teamId}`, method: "PATCH", body: data, type: ContentType.Json, @@ -21414,9 +21409,9 @@ export class Api extends HttpClient + teamsDeleteLegacy: (teamId: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}`, + path: `/teams/${teamId}`, method: "DELETE", ...params, }), @@ -21430,12 +21425,12 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions`, + path: `/teams/${teamId}/discussions`, method: "GET", query: query, format: "json", @@ -21451,12 +21446,12 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions`, + path: `/teams/${teamId}/discussions`, method: "POST", body: data, type: ContentType.Json, @@ -21472,9 +21467,9 @@ export class Api extends HttpClient + teamsGetDiscussionLegacy: (teamId: number, discussionNumber: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}`, method: "GET", format: "json", ...params, @@ -21489,13 +21484,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -21511,9 +21506,9 @@ export class Api extends HttpClient + teamsDeleteDiscussionLegacy: (teamId: number, discussionNumber: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}`, method: "DELETE", ...params, }), @@ -21527,13 +21522,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments`, method: "GET", query: query, format: "json", @@ -21549,13 +21544,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments`, method: "POST", body: data, type: ContentType.Json, @@ -21572,13 +21567,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "GET", format: "json", ...params, @@ -21593,14 +21588,14 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "PATCH", body: data, type: ContentType.Json, @@ -21617,13 +21612,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments/${comment_number}`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments/${commentNumber}`, method: "DELETE", ...params, }), @@ -21637,9 +21632,9 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments/${comment_number}/reactions`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments/${commentNumber}/reactions`, method: "GET", query: query, format: "json", @@ -21664,14 +21659,14 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/comments/${comment_number}/reactions`, + path: `/teams/${teamId}/discussions/${discussionNumber}/comments/${commentNumber}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -21688,8 +21683,8 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/reactions`, + path: `/teams/${teamId}/discussions/${discussionNumber}/reactions`, method: "GET", query: query, format: "json", @@ -21714,13 +21709,13 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/discussions/${discussion_number}/reactions`, + path: `/teams/${teamId}/discussions/${discussionNumber}/reactions`, method: "POST", body: data, type: ContentType.Json, @@ -21737,12 +21732,12 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/invitations`, + path: `/teams/${teamId}/invitations`, method: "GET", query: query, format: "json", @@ -21758,12 +21753,12 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/members`, + path: `/teams/${teamId}/members`, method: "GET", query: query, format: "json", @@ -21778,9 +21773,9 @@ export class Api extends HttpClient + teamsGetMemberLegacy: (teamId: number, username: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/members/${username}`, + path: `/teams/${teamId}/members/${username}`, method: "GET", ...params, }), @@ -21793,7 +21788,7 @@ export class Api extends HttpClient + teamsAddMemberLegacy: (teamId: number, username: string, params: RequestParams = {}) => this.request< void, | BasicError @@ -21804,7 +21799,7 @@ export class Api extends HttpClient({ - path: `/teams/${team_id}/members/${username}`, + path: `/teams/${teamId}/members/${username}`, method: "PUT", ...params, }), @@ -21817,9 +21812,9 @@ export class Api extends HttpClient + teamsRemoveMemberLegacy: (teamId: number, username: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/members/${username}`, + path: `/teams/${teamId}/members/${username}`, method: "DELETE", ...params, }), @@ -21832,9 +21827,9 @@ export class Api extends HttpClient + teamsGetMembershipForUserLegacy: (teamId: number, username: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/memberships/${username}`, + path: `/teams/${teamId}/memberships/${username}`, method: "GET", format: "json", ...params, @@ -21849,7 +21844,7 @@ export class Api extends HttpClient extends HttpClient({ - path: `/teams/${team_id}/memberships/${username}`, + path: `/teams/${teamId}/memberships/${username}`, method: "PUT", body: data, type: ContentType.Json, @@ -21880,9 +21875,9 @@ export class Api extends HttpClient + teamsRemoveMembershipForUserLegacy: (teamId: number, username: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/memberships/${username}`, + path: `/teams/${teamId}/memberships/${username}`, method: "DELETE", ...params, }), @@ -21896,12 +21891,12 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/projects`, + path: `/teams/${teamId}/projects`, method: "GET", query: query, format: "json", @@ -21916,9 +21911,9 @@ export class Api extends HttpClient + teamsCheckPermissionsForProjectLegacy: (teamId: number, projectId: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/projects/${project_id}`, + path: `/teams/${teamId}/projects/${projectId}`, method: "GET", format: "json", ...params, @@ -21933,8 +21928,8 @@ export class Api extends HttpClient @@ -21945,7 +21940,7 @@ export class Api extends HttpClient({ - path: `/teams/${team_id}/projects/${project_id}`, + path: `/teams/${teamId}/projects/${projectId}`, method: "PUT", body: data, type: ContentType.Json, @@ -21960,9 +21955,9 @@ export class Api extends HttpClient + teamsRemoveProjectLegacy: (teamId: number, projectId: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/projects/${project_id}`, + path: `/teams/${teamId}/projects/${projectId}`, method: "DELETE", ...params, }), @@ -21975,9 +21970,9 @@ export class Api extends HttpClient + teamsListReposLegacy: (teamId: number, query?: { per_page?: number; page?: number }, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/repos`, + path: `/teams/${teamId}/repos`, method: "GET", query: query, format: "json", @@ -21992,9 +21987,9 @@ export class Api extends HttpClient + teamsCheckPermissionsForRepoLegacy: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/repos/${owner}/${repo}`, + path: `/teams/${teamId}/repos/${owner}/${repo}`, method: "GET", format: "json", ...params, @@ -22009,14 +22004,14 @@ export class Api extends HttpClient this.request({ - path: `/teams/${team_id}/repos/${owner}/${repo}`, + path: `/teams/${teamId}/repos/${owner}/${repo}`, method: "PUT", body: data, type: ContentType.Json, @@ -22031,9 +22026,9 @@ export class Api extends HttpClient + teamsRemoveRepoLegacy: (teamId: number, owner: string, repo: string, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/repos/${owner}/${repo}`, + path: `/teams/${teamId}/repos/${owner}/${repo}`, method: "DELETE", ...params, }), @@ -22046,9 +22041,9 @@ export class Api extends HttpClient + teamsListIdpGroupsForLegacy: (teamId: number, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/team-sync/group-mappings`, + path: `/teams/${teamId}/team-sync/group-mappings`, method: "GET", format: "json", ...params, @@ -22063,7 +22058,7 @@ export class Api extends HttpClient extends HttpClient this.request({ - path: `/teams/${team_id}/team-sync/group-mappings`, + path: `/teams/${teamId}/team-sync/group-mappings`, method: "PATCH", body: data, type: ContentType.Json, @@ -22094,9 +22089,9 @@ export class Api extends HttpClient + teamsListChildLegacy: (teamId: number, query?: { per_page?: number; page?: number }, params: RequestParams = {}) => this.request({ - path: `/teams/${team_id}/teams`, + path: `/teams/${teamId}/teams`, method: "GET", query: query, format: "json", @@ -22409,9 +22404,9 @@ export class Api extends HttpClient + usersGetGpgKeyForAuthenticated: (gpgKeyId: number, params: RequestParams = {}) => this.request({ - path: `/user/gpg_keys/${gpg_key_id}`, + path: `/user/gpg_keys/${gpgKeyId}`, method: "GET", format: "json", ...params, @@ -22425,9 +22420,9 @@ export class Api extends HttpClient + usersDeleteGpgKeyForAuthenticated: (gpgKeyId: number, params: RequestParams = {}) => this.request({ - path: `/user/gpg_keys/${gpg_key_id}`, + path: `/user/gpg_keys/${gpgKeyId}`, method: "DELETE", ...params, }), @@ -22464,12 +22459,12 @@ export class Api extends HttpClient this.request<{ total_count: number; repository_selection?: string; repositories: Repository[] }, BasicError>({ - path: `/user/installations/${installation_id}/repositories`, + path: `/user/installations/${installationId}/repositories`, method: "GET", query: query, format: "json", @@ -22484,9 +22479,9 @@ export class Api extends HttpClient + appsAddRepoToInstallation: (installationId: number, repositoryId: number, params: RequestParams = {}) => this.request({ - path: `/user/installations/${installation_id}/repositories/${repository_id}`, + path: `/user/installations/${installationId}/repositories/${repositoryId}`, method: "PUT", ...params, }), @@ -22499,9 +22494,9 @@ export class Api extends HttpClient + appsRemoveRepoFromInstallation: (installationId: number, repositoryId: number, params: RequestParams = {}) => this.request({ - path: `/user/installations/${installation_id}/repositories/${repository_id}`, + path: `/user/installations/${installationId}/repositories/${repositoryId}`, method: "DELETE", ...params, }), @@ -22630,9 +22625,9 @@ export class Api extends HttpClient + usersGetPublicSshKeyForAuthenticated: (keyId: number, params: RequestParams = {}) => this.request({ - path: `/user/keys/${key_id}`, + path: `/user/keys/${keyId}`, method: "GET", format: "json", ...params, @@ -22646,9 +22641,9 @@ export class Api extends HttpClient + usersDeletePublicSshKeyForAuthenticated: (keyId: number, params: RequestParams = {}) => this.request({ - path: `/user/keys/${key_id}`, + path: `/user/keys/${keyId}`, method: "DELETE", ...params, }), @@ -22799,12 +22794,12 @@ export class Api extends HttpClient this.request({ - path: `/user/migrations/${migration_id}`, + path: `/user/migrations/${migrationId}`, method: "GET", query: query, format: "json", @@ -22819,9 +22814,9 @@ export class Api extends HttpClient + migrationsGetArchiveForAuthenticatedUser: (migrationId: number, params: RequestParams = {}) => this.request({ - path: `/user/migrations/${migration_id}/archive`, + path: `/user/migrations/${migrationId}/archive`, method: "GET", ...params, }), @@ -22834,9 +22829,9 @@ export class Api extends HttpClient + migrationsDeleteArchiveForAuthenticatedUser: (migrationId: number, params: RequestParams = {}) => this.request({ - path: `/user/migrations/${migration_id}/archive`, + path: `/user/migrations/${migrationId}/archive`, method: "DELETE", ...params, }), @@ -22849,9 +22844,9 @@ export class Api extends HttpClient + migrationsUnlockRepoForAuthenticatedUser: (migrationId: number, repoName: string, params: RequestParams = {}) => this.request({ - path: `/user/migrations/${migration_id}/repos/${repo_name}/lock`, + path: `/user/migrations/${migrationId}/repos/${repoName}/lock`, method: "DELETE", ...params, }), @@ -22865,12 +22860,12 @@ export class Api extends HttpClient this.request({ - path: `/user/migrations/${migration_id}/repositories`, + path: `/user/migrations/${migrationId}/repositories`, method: "GET", query: query, format: "json", @@ -23026,9 +23021,9 @@ export class Api extends HttpClient + reposAcceptInvitation: (invitationId: number, params: RequestParams = {}) => this.request({ - path: `/user/repository_invitations/${invitation_id}`, + path: `/user/repository_invitations/${invitationId}`, method: "PATCH", ...params, }), @@ -23041,9 +23036,9 @@ export class Api extends HttpClient + reposDeclineInvitation: (invitationId: number, params: RequestParams = {}) => this.request({ - path: `/user/repository_invitations/${invitation_id}`, + path: `/user/repository_invitations/${invitationId}`, method: "DELETE", ...params, }), @@ -23298,9 +23293,9 @@ export class Api extends HttpClient + usersCheckFollowingForUser: (username: string, targetUser: string, params: RequestParams = {}) => this.request({ - path: `/users/${username}/following/${target_user}`, + path: `/users/${username}/following/${targetUser}`, method: "GET", ...params, }), diff --git a/tests/schemas/v2.0/petstore-expanded.json b/tests/schemas/v2.0/petstore-expanded.json index 324e45b7..c3a4a7a9 100644 --- a/tests/schemas/v2.0/petstore-expanded.json +++ b/tests/schemas/v2.0/petstore-expanded.json @@ -21,6 +21,26 @@ "consumes": ["application/json"], "produces": ["application/json"], "paths": { + "/path-params/{path-param}/{foo-bar-baz}": { + "get": { + "parameters": [ + { + "in": "path", + "name": "path-param", + "description": "path-param", + "type": "string", + "required": true + }, + { + "in": "path", + "name": "foo-bar-baz", + "description": "foo bar baz", + "type": "string", + "required": true + } + ] + } + }, "/pets": { "get": { "description": "Returns all pets from the system that the user has access to\nNam sed condimentum est. Maecenas tempor sagittis sapien, nec rhoncus sem sagittis sit amet. Aenean at gravida augue, ac iaculis sem. Curabitur odio lorem, ornare eget elementum nec, cursus id lectus. Duis mi turpis, pulvinar ac eros ac, tincidunt varius justo. In hac habitasse platea dictumst. Integer at adipiscing ante, a sagittis ligula. Aenean pharetra tempor ante molestie imperdiet. Vivamus id aliquam diam. Cras quis velit non tortor eleifend sagittis. Praesent at enim pharetra urna volutpat venenatis eget eget mauris. In eleifend fermentum facilisis. Praesent enim enim, gravida ac sodales sed, placerat id erat. Suspendisse lacus dolor, consectetur non augue vel, vehicula interdum libero. Morbi euismod sagittis libero sed lacinia.\n\nSed tempus felis lobortis leo pulvinar rutrum. Nam mattis velit nisl, eu condimentum ligula luctus nec. Phasellus semper velit eget aliquet faucibus. In a mattis elit. Phasellus vel urna viverra, condimentum lorem id, rhoncus nibh. Ut pellentesque posuere elementum. Sed a varius odio. Morbi rhoncus ligula libero, vel eleifend nunc tristique vitae. Fusce et sem dui. Aenean nec scelerisque tortor. Fusce malesuada accumsan magna vel tempus. Quisque mollis felis eu dolor tristique, sit amet auctor felis gravida. Sed libero lorem, molestie sed nisl in, accumsan tempor nisi. Fusce sollicitudin massa ut lacinia mattis. Sed vel eleifend lorem. Pellentesque vitae felis pretium, pulvinar elit eu, euismod sapien.\n", diff --git a/tests/spec/axios/schema.ts b/tests/spec/axios/schema.ts index 5713d989..0b9d6c62 100644 --- a/tests/spec/axios/schema.ts +++ b/tests/spec/axios/schema.ts @@ -4413,12 +4413,12 @@ export class Api extends HttpClient this.request({ - path: `/repos/${owner}/${repo}/${archive_format}/${path}`, + path: `/repos/${owner}/${repo}/${archiveFormat}/${path}`, method: "GET", ...params, }), diff --git a/tests/spec/axios/test.js b/tests/spec/axios/test.js index 3aa46017..b464dd35 100644 --- a/tests/spec/axios/test.js +++ b/tests/spec/axios/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/defaultAsSuccess/schema.ts b/tests/spec/defaultAsSuccess/schema.ts index fcc915af..5b865fd2 100644 --- a/tests/spec/defaultAsSuccess/schema.ts +++ b/tests/spec/defaultAsSuccess/schema.ts @@ -299,9 +299,9 @@ export class Api extends HttpClient + keyRevoke: (pk: string, query: { secret: string }, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "DELETE", query: query, format: "json", @@ -315,9 +315,9 @@ export class Api extends HttpClient + getKey: (pk: string, params: RequestParams = {}) => this.request<{ since?: string; status?: string; sub?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "GET", format: "json", ...params, @@ -330,9 +330,9 @@ export class Api extends HttpClient + headKey: (pk: string, params: RequestParams = {}) => this.request({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "HEAD", ...params, }), @@ -344,9 +344,9 @@ export class Api extends HttpClient + keyUpdate: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "POST", body: body, format: "json", @@ -360,9 +360,9 @@ export class Api extends HttpClient + keyBind: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "PUT", body: body, format: "json", diff --git a/tests/spec/defaultAsSuccess/test.js b/tests/spec/defaultAsSuccess/test.js index 94a2c83d..c497fe0c 100644 --- a/tests/spec/defaultAsSuccess/test.js +++ b/tests/spec/defaultAsSuccess/test.js @@ -1,23 +1,26 @@ const { generateApi } = require("../../../src"); const { resolve } = require("path"); -const validateGeneratedModule = require("../../helpers/validateGeneratedModule") -const createSchemasInfos = require("../../helpers/createSchemaInfos") +const validateGeneratedModule = require("../../helpers/validateGeneratedModule"); +const createSchemasInfos = require("../../helpers/createSchemaInfos"); -const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }) +const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }); schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, - output: resolve(__dirname, './'), + output: resolve(__dirname, "./"), defaultResponseAsSuccess: true, }) - .then(() => { - const diagnostics = validateGeneratedModule({ pathToFile: resolve(__dirname, `./${apiFileName}`) }) - if (diagnostics.length) throw "Failed" - }) - .catch(e => { - console.error("defaultAsSuccess option test failed.") - throw e - }) -}) \ No newline at end of file + .then(() => { + const diagnostics = validateGeneratedModule({ + pathToFile: resolve(__dirname, `./${apiFileName}`), + }); + if (diagnostics.length) throw "Failed"; + }) + .catch((e) => { + console.error("defaultAsSuccess option test failed."); + throw e; + }); +}); diff --git a/tests/spec/defaultResponse/test.js b/tests/spec/defaultResponse/test.js index bc3609ad..94cd24d8 100644 --- a/tests/spec/defaultResponse/test.js +++ b/tests/spec/defaultResponse/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, spec: require(absolutePath), output: resolve(__dirname, "./"), diff --git a/tests/spec/enumNamesAsValues/test.js b/tests/spec/enumNamesAsValues/test.js index 0f2b0806..86f1398b 100644 --- a/tests/spec/enumNamesAsValues/test.js +++ b/tests/spec/enumNamesAsValues/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/extractRequestParams/schema.json b/tests/spec/extractRequestParams/schema.json index 8c57124b..c9fc4a0a 100644 --- a/tests/spec/extractRequestParams/schema.json +++ b/tests/spec/extractRequestParams/schema.json @@ -56,6 +56,13 @@ "required": true, "type": "string" }, + "BarBaz": { + "description": "bar baz", + "in": "path", + "name": "bar-baz", + "required": true, + "type": "string" + }, "PushToken": { "description": "Push Token.", "in": "body", @@ -189,6 +196,27 @@ "tags": ["key", "post"] } }, + "/key/{bar-baz}/{PK}": { + "delete": { + "description": "Revoke an Identity (Key) with a revocation secret", + "operationId": "key_revoke", + "parameters": [ + { + "$ref": "#/parameters/BarBaz" + }, + { + "$ref": "#/parameters/PK" + }, + { + "description": "revokation secret", + "in": "query", + "name": "secret", + "required": true, + "type": "string" + } + ] + } + }, "/key/{PK}": { "delete": { "description": "Revoke an Identity (Key) with a revocation secret", diff --git a/tests/spec/extractRequestParams/schema.ts b/tests/spec/extractRequestParams/schema.ts index 7485cd6b..127325bd 100644 --- a/tests/spec/extractRequestParams/schema.ts +++ b/tests/spec/extractRequestParams/schema.ts @@ -76,8 +76,19 @@ export interface KeyRevokeParams { /** revokation secret */ secret: string; + /** bar baz */ + barBaz: string; + /** Public Signing Key - Authentiq ID (43 chars) */ - PK: string; + pk: string; +} + +export interface KeyRevoke2Params { + /** revokation secret */ + secret: string; + + /** Public Signing Key - Authentiq ID (43 chars) */ + pk: string; } export interface PushLoginRequestParams { @@ -324,13 +335,29 @@ export class Api extends HttpClient + this.request({ + path: `/key/${barBaz}/${pk}`, + method: "DELETE", + query: query, + ...params, + }), + + /** + * @description Revoke an Identity (Key) with a revocation secret + * + * @tags key, delete + * @name KeyRevoke2 * @request DELETE:/key/{PK} + * @originalName keyRevoke + * @duplicate */ - keyRevoke: ({ PK, ...query }: KeyRevokeParams, params: RequestParams = {}) => + keyRevoke2: ({ pk, ...query }: KeyRevoke2Params, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "DELETE", query: query, format: "json", @@ -344,9 +371,9 @@ export class Api extends HttpClient + getKey: (pk: string, params: RequestParams = {}) => this.request<{ since?: string; status?: string; sub?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "GET", format: "json", ...params, @@ -359,9 +386,9 @@ export class Api extends HttpClient + headKey: (pk: string, params: RequestParams = {}) => this.request({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "HEAD", ...params, }), @@ -373,9 +400,9 @@ export class Api extends HttpClient + keyUpdate: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "POST", body: body, format: "json", @@ -389,9 +416,9 @@ export class Api extends HttpClient + keyBind: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "PUT", body: body, format: "json", diff --git a/tests/spec/extractRequestParams/test.js b/tests/spec/extractRequestParams/test.js index 1a3d1940..e4160db0 100644 --- a/tests/spec/extractRequestParams/test.js +++ b/tests/spec/extractRequestParams/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/js/schema.d.ts b/tests/spec/js/schema.d.ts index fe033df8..7c28689e 100644 --- a/tests/spec/js/schema.d.ts +++ b/tests/spec/js/schema.d.ts @@ -1771,7 +1771,7 @@ export declare class Api extends HttpClient Promise, void>>; + emojisList: (params?: RequestParams) => Promise>; }; events: { /** @@ -2118,14 +2118,18 @@ export declare class Api extends HttpClient Promise>; + orgsDetail: (org: string, params?: RequestParams) => Promise>; /** * @description Edit an Organization. * * @name OrgsPartialUpdate * @request PATCH:/orgs/{org} */ - orgsPartialUpdate: (org: string, body: PatchOrg, params?: RequestParams) => Promise>; + orgsPartialUpdate: ( + org: string, + body: PatchOrg, + params?: RequestParams, + ) => Promise>; /** * @description List public events for an organization. * @@ -2647,7 +2651,7 @@ export declare class Api extends HttpClient Promise>; + ) => Promise>; /** * @description Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wai a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support. * @@ -3240,11 +3244,7 @@ export declare class Api extends HttpClient Promise, void>>; + languagesDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; /** * @description Perform a merge. * @@ -3829,7 +3829,7 @@ export declare class Api extends HttpClient Promise>; @@ -3997,7 +3997,7 @@ export declare class Api extends HttpClient Promise>; + reposDetail: (teamId: number, params?: RequestParams) => Promise>; /** * @description In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team. * @@ -4044,14 +4044,14 @@ export declare class Api extends HttpClient Promise>; + userList: (params?: RequestParams) => Promise>; /** * @description Update the authenticated user. * * @name UserPartialUpdate * @request PATCH:/user */ - userPartialUpdate: (body: UserUpdate, params?: RequestParams) => Promise>; + userPartialUpdate: (body: UserUpdate, params?: RequestParams) => Promise>; /** * @description Delete email address(es). You can include a single email address or an array of addresses. * @@ -4268,7 +4268,7 @@ export declare class Api extends HttpClient Promise>; + usersDetail: (username: string, params?: RequestParams) => Promise>; /** * @description If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. * diff --git a/tests/spec/js/schema.js b/tests/spec/js/schema.js index 7a9252c3..c188fd79 100644 --- a/tests/spec/js/schema.js +++ b/tests/spec/js/schema.js @@ -2665,9 +2665,9 @@ export class Api extends HttpClient { * @originalName reposDetail * @duplicate */ - reposDetail2: (owner, repo, archive_format, path, params = {}) => + reposDetail2: (owner, repo, archiveFormat, path, params = {}) => this.request({ - path: `/repos/${owner}/${repo}/${archive_format}/${path}`, + path: `/repos/${owner}/${repo}/${archiveFormat}/${path}`, method: "GET", ...params, }), diff --git a/tests/spec/js/test.js b/tests/spec/js/test.js index 1da7377b..cd7b8d89 100644 --- a/tests/spec/js/test.js +++ b/tests/spec/js/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/jsAxios/schema.d.ts b/tests/spec/jsAxios/schema.d.ts new file mode 100644 index 00000000..3125f7ad --- /dev/null +++ b/tests/spec/jsAxios/schema.d.ts @@ -0,0 +1,4240 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +/** + * A user or organization + */ +export interface Actor { + avatar_url?: string; + bio?: string; + /** The website URL from the profile page */ + blog?: string; + collaborators?: number; + company?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + disk_usage?: number; + /** Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile). */ + email?: string; + followers?: number; + followers_url?: string; + following?: number; + following_url?: string; + gists_url?: string; + gravatar_id?: string; + hireable?: boolean; + html_url?: string; + id?: number; + location?: string; + /** The account username */ + login?: string; + /** The full account name */ + name?: string; + organizations_url?: string; + owned_private_repos?: number; + plan?: { + collaborators?: number; + name?: string; + private_repos?: number; + space?: number; + }; + private_gists?: number; + public_gists?: number; + public_repos?: number; + starred_url?: string; + subscriptions_url?: string; + total_private_repos?: number; + type?: "User" | "Organization"; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; +} +export interface Asset { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + /** A GitHub user */ + uploader?: User; + url?: string; +} +export interface AssetPatch { + label?: string; + name: string; +} +export declare type Assets = Asset[]; +export declare type Assignees = User[]; +export interface Blob { + content?: string; + encoding?: "utf-8" | "base64"; + sha?: string; + size?: number; +} +export interface Blobs { + sha?: string; +} +export interface Branch { + _links?: { + html?: string; + self?: string; + }; + commit?: { + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + name?: string; +} +export declare type Branches = { + commit?: { + sha?: string; + url?: string; + }; + name?: string; +}[]; +export declare type CodeFrequencyStats = number[]; +export interface Comment { + body?: string; +} +export interface CommentBody { + body: string; +} +export declare type Comments = { + body?: string; + created_at?: string; + id?: number; + url?: string; + user?: User; +}[]; +export interface Commit { + /** A GitHub user */ + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + status?: string; + }[]; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + stats?: { + additions?: number; + deletions?: number; + total?: number; + }; + url?: string; +} +export declare type CommitActivityStats = { + days?: number[]; + total?: number; + week?: number; +}[]; +export interface CommitComment { + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +} +export interface CommitCommentBody { + body: string; + /** Deprecated - Use position parameter instead. */ + line?: string; + /** Line number in the file to comment on. Defaults to null. */ + number?: string; + /** Relative path of the file to comment on. */ + path?: string; + /** Line index in the diff to comment on. */ + position?: number; + /** SHA of the commit to comment on. */ + sha: string; +} +export declare type Commits = { + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +}[]; +export interface CompareCommits { + ahead_by?: number; + base_commit?: { + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }; + behind_by?: number; + commits?: { + author?: User; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + committer?: User; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; + }[]; + diff_url?: string; + files?: { + additions?: number; + blob_url?: string; + changes?: number; + contents_url?: string; + deletions?: number; + filename?: string; + patch?: string; + raw_url?: string; + sha?: string; + status?: string; + }[]; + html_url?: string; + patch_url?: string; + permalink_url?: string; + status?: string; + total_commits?: number; + url?: string; +} +export interface ContentsPath { + _links?: { + git?: string; + html?: string; + self?: string; + }; + content?: string; + encoding?: string; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; +} +export declare type ContributorsStats = { + author?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + total?: number; + weeks?: { + a?: number; + c?: number; + d?: number; + w?: string; + }[]; +}[]; +export interface CreateFile { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: { + _links?: { + git?: string; + html?: string; + self?: string; + }; + git_url?: string; + html_url?: string; + name?: string; + path?: string; + sha?: string; + size?: number; + type?: string; + url?: string; + }; +} +export interface CreateFileBody { + committer?: { + email?: string; + name?: string; + }; + content?: string; + message?: string; +} +export interface DeleteFile { + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + html_url?: string; + message?: string; + parents?: { + html_url?: string; + sha?: string; + url?: string; + }; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + content?: string; +} +export interface DeleteFileBody { + committer?: { + email?: string; + name?: string; + }; + message?: string; + sha?: string; +} +export interface Deployment { + description?: string; + payload?: { + deploy_user?: string; + environment?: string; + room_id?: number; + }; + ref?: string; +} +export interface DeploymentResp { + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +} +export declare type DeploymentStatuses = { + created_at?: string; + creator?: User; + description?: string; + id?: number; + payload?: string; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; +}[]; +export interface DeploymentStatusesCreate { + description?: string; + state?: string; + target_url?: string; +} +export interface Download { + content_type?: string; + description?: string; + download_count?: number; + html_url?: string; + id?: number; + name?: string; + size?: number; + url?: string; +} +export declare type Downloads = Download[]; +export interface EditTeam { + name: string; + permission?: "pull" | "push" | "admin"; +} +export declare type EmailsPost = string[]; +export declare type Emojis = Record; +export interface Event { + /** A user or organization */ + actor?: Actor; + created_at?: object; + id?: number; + /** A GitHub organization */ + org?: Organization; + payload?: object; + public?: boolean; + repo?: { + id?: number; + name?: string; + url?: string; + }; + type?: string; +} +export declare type Events = Event[]; +export interface Feeds { + _links?: { + current_user?: { + href?: string; + type?: string; + }; + current_user_actor?: { + href?: string; + type?: string; + }; + current_user_organization?: { + href?: string; + type?: string; + }; + current_user_public?: { + href?: string; + type?: string; + }; + timeline?: { + href?: string; + type?: string; + }; + user?: { + href?: string; + type?: string; + }; + }; + current_user_actor_url?: string; + current_user_organization_url?: string; + current_user_public?: string; + current_user_url?: string; + timeline_url?: string; + user_url?: string; +} +export interface ForkBody { + organization?: string; +} +export declare type Forks = Repos; +export interface Gist { + comments?: number; + comments_url?: string; + /** Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. */ + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + forks?: { + created_at?: string; + url?: string; + user?: User; + }[]; + git_pull_url?: string; + git_push_url?: string; + history?: { + change_status?: { + additions?: number; + deletions?: number; + total?: number; + }; + committed_at?: string; + url?: string; + user?: User; + version?: string; + }[]; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + /** A GitHub user */ + user?: User; +} +export declare type Gists = { + comments?: number; + comments_url?: string; + created_at?: string; + description?: string; + files?: { + "ring.erl"?: { + filename?: string; + raw_url?: string; + size?: number; + }; + }; + git_pull_url?: string; + git_push_url?: string; + html_url?: string; + id?: string; + public?: boolean; + url?: string; + user?: User; +}[]; +export interface GitCommit { + author?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: string; + tree?: string; +} +export interface GitRefPatch { + force?: boolean; + sha?: string; +} +export declare type Gitignore = any[]; +export interface GitignoreLang { + name?: string; + source?: string; +} +export interface HeadBranch { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +} +export declare type Hook = { + active?: boolean; + config?: { + content_type?: string; + url?: string; + }; + created_at?: string; + events?: ( + | "push" + | "issues" + | "issue_comment" + | "commit_comment" + | "pull_request" + | "pull_request_review_comment" + | "gollum" + | "watch" + | "download" + | "fork" + | "fork_apply" + | "member" + | "public" + | "team_add" + | "status" + )[]; + id?: number; + name?: string; + updated_at?: string; + url?: string; +}[]; +export interface HookBody { + active?: boolean; + add_events?: string[]; +} +export interface Issue { + assignee?: string; + body?: string; + labels?: string[]; + milestone?: number; + title?: string; +} +export interface IssueEvent { + /** A user or organization */ + actor?: Actor; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + event?: string; + issue?: { + assignee?: User; + body?: string; + closed_at?: string; + comments?: number; + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + created_at?: string; + creator?: User; + description?: string; + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: "open" | "closed"; + title?: string; + updated_at?: string; + url?: string; + user?: User; + }; + url?: string; +} +export declare type IssueEvents = IssueEvent[]; +export declare type Issues = { + assignee?: User; + body?: string; + closed_at?: string; + comments?: number; + created_at?: string; + html_url?: string; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + milestone?: { + closed_issues?: number; + created_at?: string; + creator?: User; + description?: string; + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; + }; + number?: number; + pull_request?: { + diff_url?: string; + html_url?: string; + patch_url?: string; + }; + state?: "open" | "closed"; + title?: string; + updated_at?: string; + url?: string; + user?: User; +}[]; +export interface IssuesComment { + body?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + html_url?: string; + id?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + /** A GitHub user */ + user?: User; +} +export declare type IssuesComments = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + created_at?: string; + id?: number; + path?: string; + position?: number; + updated_at?: string; + url?: string; + user?: User; +}[]; +export declare type Keys = { + id?: number; + key?: string; + title?: string; + url?: string; +}[]; +export interface Label { + color?: string; + name?: string; + url?: string; +} +export declare type Labels = { + color?: string; + name?: string; + url?: string; +}[]; +export declare type Languages = Record; +export interface Markdown { + context?: string; + mode?: string; + text?: string; +} +export interface Merge { + merged?: boolean; + message?: string; + sha?: string; +} +export interface MergePullBody { + commit_message?: string; +} +export interface MergesBody { + base?: string; + commit_message?: string; + head?: string; +} +export interface MergesConflict { + /** Error message */ + message?: string; +} +export interface MergesSuccessful { + /** A GitHub user */ + author?: User; + comments_url?: string; + commit?: { + author?: { + date?: string; + email?: string; + name?: string; + }; + comment_count?: number; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; + }; + /** A GitHub user */ + committer?: User; + merged?: boolean; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + url?: string; +} +export interface Meta { + git?: string[]; + hooks?: string[]; +} +export interface Milestone { + closed_issues?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + /** A GitHub user */ + creator?: User; + description?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + due_on?: string; + number?: number; + open_issues?: number; + state?: "open" | "closed"; + title?: string; + url?: string; +} +export interface MilestoneUpdate { + description?: string; + due_on?: string; + state?: string; + title?: string; +} +export interface NotificationMarkRead { + last_read_at?: string; +} +export interface Notifications { + id?: number; + last_read_at?: string; + reason?: string; + repository?: { + description?: string; + fork?: boolean; + full_name?: string; + html_url?: string; + id?: number; + name?: string; + owner?: Actor; + private?: boolean; + url?: string; + }; + subject?: { + latest_comment_url?: string; + title?: string; + type?: string; + url?: string; + }; + unread?: boolean; + updated_at?: string; + url?: string; +} +export interface OrgTeamsPost { + name: string; + permission?: "pull" | "push" | "admin"; + repo_names?: string[]; +} +export declare type Organization = Actor & any; +export interface OrganizationAsTeamMember { + errors?: { + code?: string; + field?: string; + resource?: string; + }[]; + message?: string; +} +export interface ParticipationStats { + all?: number[]; + owner?: number[]; +} +export interface PatchGist { + description?: string; + files?: { + "delete_this_file.txt"?: string; + "file1.txt"?: { + content?: string; + }; + "new_file.txt"?: { + content?: string; + }; + "old_name.txt"?: { + content?: string; + filename?: string; + }; + }; +} +export interface PatchOrg { + /** Billing email address. This address is not publicized. */ + billing_email?: string; + company?: string; + /** Publicly visible email address. */ + email?: string; + location?: string; + name?: string; +} +export interface PostGist { + description?: string; + files?: { + "file1.txt"?: { + content?: string; + }; + }; + public?: boolean; +} +export interface PostRepo { + /** True to create an initial commit with empty README. Default is false. */ + auto_init?: boolean; + description?: string; + /** Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, "Haskell" Ignored if auto_init parameter is not provided. */ + gitignore_template?: string; + /** True to enable downloads for this repository, false to disable them. Default is true. */ + has_downloads?: boolean; + /** True to enable issues for this repository, false to disable them. Default is true. */ + has_issues?: boolean; + /** True to enable the wiki for this repository, false to disable it. Default is true. */ + has_wiki?: boolean; + homepage?: string; + name: string; + /** True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account. */ + private?: boolean; + /** The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization. */ + team_id?: number; +} +export interface PullRequest { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + additions?: number; + base?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + changed_files?: number; + closed_at?: string; + comments?: number; + commits?: number; + created_at?: string; + deletions?: number; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + merge_commit_sha?: string; + mergeable?: boolean; + merged?: boolean; + merged_at?: string; + merged_by?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + number?: number; + patch_url?: string; + state?: string; + title?: string; + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} +export interface PullUpdate { + body?: string; + state?: string; + title?: string; +} +export declare type Pulls = { + _links?: { + comments?: { + href?: string; + }; + html?: { + href?: string; + }; + review_comments?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + base?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + body?: string; + closed_at?: string; + created_at?: string; + diff_url?: string; + head?: { + label?: string; + ref?: string; + repo?: Repo; + sha?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + }; + html_url?: string; + issue_url?: string; + merged_at?: string; + number?: number; + patch_url?: string; + state?: "open" | "closed"; + title?: string; + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; +export interface PullsComment { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + id?: number; + path?: string; + position?: number; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +} +export interface PullsCommentPost { + body?: string; + commit_id?: string; + path?: string; + position?: number; +} +export declare type PullsComments = { + _links?: { + html?: { + href?: string; + }; + pull_request?: { + href?: string; + }; + self?: { + href?: string; + }; + }; + body?: string; + commit_id?: string; + created_at?: string; + id?: number; + path?: string; + position?: number; + updated_at?: string; + url?: string; + user?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; +}[]; +export interface PullsPost { + base?: string; + body?: string; + head?: string; + title?: string; +} +export interface PutSubscription { + created_at?: string; + ignored?: boolean; + reason?: object; + subscribed?: boolean; + thread_url?: string; + url?: string; +} +export interface RateLimit { + rate?: { + limit?: number; + remaining?: number; + reset?: number; + }; +} +export declare type Ref = { + created_at?: string; + creator?: { + avatar_url?: string; + gravatar_id?: string; + id?: number; + login?: string; + url?: string; + }; + description?: string; + id?: number; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; +}[]; +export declare type RefStatus = { + commit_url?: string; + name?: string; + repository_url?: string; + sha?: string; + state?: string; + statuses?: { + context?: string; + created_at?: string; + description?: string; + id?: number; + state?: string; + target_url?: string; + updated_at?: string; + url?: string; + }[]; +}[]; +export declare type Refs = { + object?: { + sha?: string; + type?: string; + url?: string; + }; + ref?: string; + url?: string; +}[]; +export interface RefsBody { + ref?: string; + sha?: string; +} +export interface Release { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + uploader?: User; + url?: string; + }[]; + assets_url?: string; + /** A GitHub user */ + author?: User; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +} +export interface ReleaseCreate { + body?: string; + draft?: boolean; + name?: string; + prerelease?: boolean; + tag_name?: string; + target_commitish?: string; +} +export declare type Releases = { + assets?: { + content_type?: string; + created_at?: string; + download_count?: number; + id?: number; + label?: string; + name?: string; + size?: number; + state?: string; + updated_at?: string; + uploader?: User; + url?: string; + }[]; + assets_url?: string; + author?: User; + body?: string; + created_at?: string; + draft?: boolean; + html_url?: string; + id?: number; + name?: string; + prerelease?: boolean; + published_at?: string; + tag_name?: string; + tarball_url?: string; + target_commitish?: string; + upload_url?: string; + url?: string; + zipball_url?: string; +}[]; +export interface Repo { + clone_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + description?: string; + fork?: boolean; + forks?: number; + forks_count?: number; + full_name?: string; + git_url?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + html_url?: string; + id?: number; + language?: string; + master_branch?: string; + mirror_url?: string; + name?: string; + open_issues?: number; + open_issues_count?: number; + /** A GitHub organization */ + organization?: Organization; + /** A user or organization */ + owner?: Actor; + parent?: Repo & any; + private?: boolean; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + pushed_at?: string; + size?: number; + source?: Repo & any; + ssh_url?: string; + svn_url?: string; + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + updated_at?: string; + url?: string; + watchers?: number; + watchers_count?: number; +} +export declare type RepoDeployments = { + created_at?: string; + creator?: User; + description?: string; + id?: number; + payload?: string; + sha?: string; + statuses_url?: string; + updated_at?: string; + url?: string; +}[]; +export declare type RepoComments = { + body?: string; + commit_id?: string; + created_at?: string; + html_url?: string; + id?: number; + line?: number; + path?: string; + position?: number; + updated_at?: string; + url?: string; + user?: User; +}[]; +export interface RepoCommit { + author?: { + date?: string; + email?: string; + name?: string; + }; + committer?: { + date?: string; + email?: string; + name?: string; + }; + message?: string; + parents?: { + sha?: string; + url?: string; + }[]; + sha?: string; + tree?: { + sha?: string; + url?: string; + }; + url?: string; +} +export interface RepoCommitBody { + author?: { + date?: string; + email?: string; + name?: string; + }; + message: string; + parents: string[]; + tree: string; +} +export interface RepoEdit { + description?: string; + has_downloads?: boolean; + has_issues?: boolean; + has_wiki?: boolean; + homepage?: string; + name?: string; + private?: boolean; +} +export declare type Repos = Repo[]; +export interface SearchCode { + items?: { + git_url?: string; + html_url?: string; + name?: string; + path?: string; + repository?: { + archive_url?: string; + assignees_url?: string; + blobs_url?: string; + branches_url?: string; + collaborators_url?: string; + comments_url?: string; + commits_url?: string; + compare_url?: string; + contents_url?: string; + contributors_url?: string; + description?: string; + downloads_url?: string; + events_url?: string; + fork?: boolean; + forks_url?: string; + full_name?: string; + git_commits_url?: string; + git_refs_url?: string; + git_tags_url?: string; + hooks_url?: string; + html_url?: string; + id?: number; + issue_comment_url?: string; + issue_events_url?: string; + issues_url?: string; + keys_url?: string; + labels_url?: string; + languages_url?: string; + merges_url?: string; + milestones_url?: string; + name?: string; + notifications_url?: string; + owner?: Actor; + private?: boolean; + pulls_url?: string; + stargazers_url?: string; + statuses_url?: string; + subscribers_url?: string; + subscription_url?: string; + tags_url?: string; + teams_url?: string; + trees_url?: string; + url?: string; + }; + score?: number; + sha?: string; + url?: string; + }[]; + total_count?: number; +} +export interface SearchIssues { + items?: { + assignee?: any; + body?: string; + closed_at?: any; + comments?: number; + comments_url?: string; + created_at?: string; + events_url?: string; + html_url?: string; + id?: number; + labels?: { + color?: string; + name?: string; + url?: string; + }[]; + labels_url?: string; + milestone?: any; + number?: number; + pull_request?: { + diff_url?: any; + html_url?: any; + patch_url?: any; + }; + score?: number; + state?: string; + title?: string; + updated_at?: string; + url?: string; + user?: User; + }[]; + total_count?: number; +} +export interface SearchIssuesByKeyword { + issues?: { + body?: string; + comments?: number; + created_at?: string; + gravatar_id?: string; + html_url?: string; + labels?: string[]; + number?: number; + position?: number; + state?: string; + title?: string; + updated_at?: string; + user?: string; + votes?: number; + }[]; +} +export interface SearchRepositories { + items?: Repo[]; + total_count?: number; +} +export interface SearchRepositoriesByKeyword { + repositories?: Repo[]; +} +export interface SearchUserByEmail { + /** A GitHub user */ + user?: User; +} +export interface SearchUsers { + items?: Users; + total_count?: number; +} +export interface SearchUsersByKeyword { + users?: Users; +} +export interface Subscription { + /** ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ */ + created_at?: string; + ignored?: boolean; + reason?: string; + repository_url?: string; + subscribed?: boolean; + thread_url?: string; + url?: string; +} +export interface SubscriptionBody { + ignored?: boolean; + subscribed?: boolean; +} +export interface Tag { + /** String of the tag message. */ + message?: string; + object?: { + sha?: string; + type?: "commit" | "tree" | "blob"; + url?: string; + }; + sha?: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag?: string; + tagger?: { + date?: string; + email?: string; + name?: string; + }; + url?: string; +} +export interface TagBody { + /** String of the tag message. */ + message: string; + /** String of the SHA of the git object this is tagging. */ + object: string; + /** The tag's name. This is typically a version (e.g., "v0.0.1"). */ + tag: string; + tagger: { + date?: string; + email?: string; + name?: string; + }; + /** String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob. */ + type: "commit" | "tree" | "blob"; +} +export declare type Tags = Tag[]; +export interface Team { + id?: number; + members_count?: number; + name?: string; + permission?: string; + repos_count?: number; + url?: string; +} +export interface TeamMembership { + state?: string; + url?: string; +} +export declare type TeamRepos = Repos; +export declare type Teams = { + id?: number; + name?: string; + url?: string; +}[]; +export declare type TeamsList = { + id?: number; + members_count?: number; + name?: string; + organization?: { + avatar_url?: string; + id?: number; + login?: string; + url?: string; + }; + permission?: string; + repos_count?: number; + url?: string; +}[]; +export interface Tree { + sha?: string; + tree?: { + mode?: "100644" | "100755" | "040000" | "160000" | "120000"; + path?: string; + sha?: string; + size?: number; + type?: "blob" | "tree" | "commit"; + url?: string; + }[]; + url?: string; +} +export interface Trees { + base_tree?: string; + /** SHA1 checksum ID of the object in the tree. */ + sha?: string; + tree?: Tree[]; + url?: string; +} +export declare type User = Actor & any; +export declare type UserEmails = string[]; +export interface UserKeysKeyId { + id?: number; + key?: string; + title?: string; + url?: string; +} +export interface UserKeysPost { + key?: string; + title?: string; +} +export interface UserUpdate { + bio?: string; + blog?: string; + company?: string; + email?: string; + hireable?: boolean; + location?: string; + name?: string; +} +export declare type Users = User[]; +import { AxiosRequestConfig, AxiosResponse } from "axios"; +export declare type QueryParamsType = Record; +export declare type ResponseFormat = keyof Omit; +export interface FullRequestParams extends Omit { + /** set parameter to `true` for call `securityWorker` for this request */ + secure?: boolean; + /** request path */ + path: string; + /** content type of request body */ + type?: ContentType; + /** query params */ + query?: QueryParamsType; + /** format of response (i.e. response.json() -> format: "json") */ + format?: keyof Omit; + /** request body */ + body?: unknown; +} +export declare type RequestParams = Omit; +export interface ApiConfig extends Omit { + securityWorker?: ( + securityData: SecurityDataType | null, + ) => Promise | AxiosRequestConfig | void; +} +export declare enum ContentType { + Json = "application/json", + FormData = "multipart/form-data", + UrlEncoded = "application/x-www-form-urlencoded", +} +export declare class HttpClient { + private instance; + private securityData; + private securityWorker?; + constructor({ securityWorker, ...axiosConfig }?: ApiConfig); + setSecurityData: (data: SecurityDataType | null) => void; + private mergeRequestParams; + request: ({ + secure, + path, + type, + query, + format, + body, + ...params + }: FullRequestParams) => Promise; +} +export declare class Api extends HttpClient { + emojis: { + /** + * @description Lists all the emojis available to use on GitHub. + * + * @name EmojisList + * @request GET:/emojis + */ + emojisList: (params?: RequestParams) => Promise>; + }; + events: { + /** + * @description List public events. + * + * @name EventsList + * @request GET:/events + */ + eventsList: (params?: RequestParams) => Promise>; + }; + feeds: { + /** + * @description List Feeds. GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticating user. + * + * @name FeedsList + * @request GET:/feeds + */ + feedsList: (params?: RequestParams) => Promise>; + }; + gists: { + /** + * @description List the authenticated user's gists or if called anonymously, this will return all public gists. + * + * @name GistsList + * @request GET:/gists + */ + gistsList: ( + query?: { + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a gist. + * + * @name GistsCreate + * @request POST:/gists + */ + gistsCreate: (body: PostGist, params?: RequestParams) => Promise>; + /** + * @description List all public gists. + * + * @name PublicList + * @request GET:/gists/public + */ + publicList: ( + query?: { + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description List the authenticated user's starred gists. + * + * @name StarredList + * @request GET:/gists/starred + */ + starredList: ( + query?: { + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a gist. + * + * @name GistsDelete + * @request DELETE:/gists/{id} + */ + gistsDelete: (id: number, params?: RequestParams) => Promise>; + /** + * @description Get a single gist. + * + * @name GistsDetail + * @request GET:/gists/{id} + */ + gistsDetail: (id: number, params?: RequestParams) => Promise>; + /** + * @description Edit a gist. + * + * @name GistsPartialUpdate + * @request PATCH:/gists/{id} + */ + gistsPartialUpdate: (id: number, body: PatchGist, params?: RequestParams) => Promise>; + /** + * @description List comments on a gist. + * + * @name CommentsDetail + * @request GET:/gists/{id}/comments + */ + commentsDetail: (id: number, params?: RequestParams) => Promise>; + /** + * @description Create a commen + * + * @name CommentsCreate + * @request POST:/gists/{id}/comments + */ + commentsCreate: (id: number, body: CommentBody, params?: RequestParams) => Promise>; + /** + * @description Delete a comment. + * + * @name CommentsDelete + * @request DELETE:/gists/{id}/comments/{commentId} + */ + commentsDelete: (id: number, commentId: number, params?: RequestParams) => Promise>; + /** + * @description Get a single comment. + * + * @name CommentsDetail2 + * @request GET:/gists/{id}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (id: number, commentId: number, params?: RequestParams) => Promise>; + /** + * @description Edit a comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/gists/{id}/comments/{commentId} + */ + commentsPartialUpdate: ( + id: number, + commentId: number, + body: Comment, + params?: RequestParams, + ) => Promise>; + /** + * @description Fork a gist. + * + * @name ForksCreate + * @request POST:/gists/{id}/forks + */ + forksCreate: (id: number, params?: RequestParams) => Promise>; + /** + * @description Unstar a gist. + * + * @name StarDelete + * @request DELETE:/gists/{id}/star + */ + starDelete: (id: number, params?: RequestParams) => Promise>; + /** + * @description Check if a gist is starred. + * + * @name StarDetail + * @request GET:/gists/{id}/star + */ + starDetail: (id: number, params?: RequestParams) => Promise>; + /** + * @description Star a gist. + * + * @name StarUpdate + * @request PUT:/gists/{id}/star + */ + starUpdate: (id: number, params?: RequestParams) => Promise>; + }; + gitignore: { + /** + * @description Listing available templates. List all templates available to pass as an option when creating a repository. + * + * @name TemplatesList + * @request GET:/gitignore/templates + */ + templatesList: (params?: RequestParams) => Promise>; + /** + * @description Get a single template. + * + * @name TemplatesDetail + * @request GET:/gitignore/templates/{language} + */ + templatesDetail: (language: string, params?: RequestParams) => Promise>; + }; + issues: { + /** + * @description List issues. List all issues across all the authenticated user's visible repositories. + * + * @name IssuesList + * @request GET:/issues + */ + issuesList: ( + query: { + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + state: "open" | "closed"; + labels: string; + sort: "created" | "updated" | "comments"; + direction: "asc" | "desc"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + }; + legacy: { + /** + * @description Find issues by state and keyword. + * + * @name IssuesSearchDetail + * @request GET:/legacy/issues/search/{owner}/{repository}/{state}/{keyword} + */ + issuesSearchDetail: ( + keyword: string, + state: "open" | "closed", + owner: string, + repository: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter. + * + * @name ReposSearchDetail + * @request GET:/legacy/repos/search/{keyword} + */ + reposSearchDetail: ( + keyword: string, + query?: { + order?: "desc" | "asc"; + language?: string; + start_page?: string; + sort?: "updated" | "stars" | "forks"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description This API call is added for compatibility reasons only. + * + * @name UserEmailDetail + * @request GET:/legacy/user/email/{email} + */ + userEmailDetail: (email: string, params?: RequestParams) => Promise>; + /** + * @description Find users by keyword. + * + * @name UserSearchDetail + * @request GET:/legacy/user/search/{keyword} + */ + userSearchDetail: ( + keyword: string, + query?: { + order?: "desc" | "asc"; + start_page?: string; + sort?: "updated" | "stars" | "forks"; + }, + params?: RequestParams, + ) => Promise>; + }; + markdown: { + /** + * @description Render an arbitrary Markdown document + * + * @name MarkdownCreate + * @request POST:/markdown + */ + markdownCreate: (body: Markdown, params?: RequestParams) => Promise>; + /** + * @description Render a Markdown document in raw mode + * + * @name PostMarkdown + * @request POST:/markdown/raw + */ + postMarkdown: (params?: RequestParams) => Promise>; + }; + meta: { + /** + * @description This gives some information about GitHub.com, the service. + * + * @name MetaList + * @request GET:/meta + */ + metaList: (params?: RequestParams) => Promise>; + }; + networks: { + /** + * @description List public events for a network of repositories. + * + * @name EventsDetail + * @request GET:/networks/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + }; + notifications: { + /** + * @description List your notifications. List all notifications for the current user, grouped by repository. + * + * @name NotificationsList + * @request GET:/notifications + */ + notificationsList: ( + query?: { + all?: boolean; + participating?: boolean; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Mark as read. Marking a notification as "read" removes it from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/notifications + */ + notificationsUpdate: (body: NotificationMarkRead, params?: RequestParams) => Promise>; + /** + * @description View a single thread. + * + * @name ThreadsDetail + * @request GET:/notifications/threads/{id} + */ + threadsDetail: (id: number, params?: RequestParams) => Promise>; + /** + * @description Mark a thread as read + * + * @name ThreadsPartialUpdate + * @request PATCH:/notifications/threads/{id} + */ + threadsPartialUpdate: (id: number, params?: RequestParams) => Promise>; + /** + * @description Delete a Thread Subscription. + * + * @name ThreadsSubscriptionDelete + * @request DELETE:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDelete: (id: number, params?: RequestParams) => Promise>; + /** + * @description Get a Thread Subscription. + * + * @name ThreadsSubscriptionDetail + * @request GET:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDetail: (id: number, params?: RequestParams) => Promise>; + /** + * @description Set a Thread Subscription. This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned). + * + * @name ThreadsSubscriptionUpdate + * @request PUT:/notifications/threads/{id}/subscription + */ + threadsSubscriptionUpdate: ( + id: number, + body: PutSubscription, + params?: RequestParams, + ) => Promise>; + }; + orgs: { + /** + * @description Get an Organization. + * + * @name OrgsDetail + * @request GET:/orgs/{org} + */ + orgsDetail: (org: string, params?: RequestParams) => Promise>; + /** + * @description Edit an Organization. + * + * @name OrgsPartialUpdate + * @request PATCH:/orgs/{org} + */ + orgsPartialUpdate: (org: string, body: PatchOrg, params?: RequestParams) => Promise>; + /** + * @description List public events for an organization. + * + * @name EventsDetail + * @request GET:/orgs/{org}/events + */ + eventsDetail: (org: string, params?: RequestParams) => Promise>; + /** + * @description List issues. List all issues for a given organization for the authenticated user. + * + * @name IssuesDetail + * @request GET:/orgs/{org}/issues + */ + issuesDetail: ( + org: string, + query: { + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + state: "open" | "closed"; + labels: string; + sort: "created" | "updated" | "comments"; + direction: "asc" | "desc"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list. + * + * @name MembersDetail + * @request GET:/orgs/{org}/members + */ + membersDetail: (org: string, params?: RequestParams) => Promise>; + /** + * @description Remove a member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + * + * @name MembersDelete + * @request DELETE:/orgs/{org}/members/{username} + */ + membersDelete: (org: string, username: string, params?: RequestParams) => Promise>; + /** + * @description Check if a user is, publicly or privately, a member of the organization. + * + * @name MembersDetail2 + * @request GET:/orgs/{org}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (org: string, username: string, params?: RequestParams) => Promise>; + /** + * @description Public members list. Members of an organization can choose to have their membership publicized or not. + * + * @name PublicMembersDetail + * @request GET:/orgs/{org}/public_members + */ + publicMembersDetail: (org: string, params?: RequestParams) => Promise>; + /** + * @description Conceal a user's membership. + * + * @name PublicMembersDelete + * @request DELETE:/orgs/{org}/public_members/{username} + */ + publicMembersDelete: (org: string, username: string, params?: RequestParams) => Promise>; + /** + * @description Check public membership. + * + * @name PublicMembersDetail2 + * @request GET:/orgs/{org}/public_members/{username} + * @originalName publicMembersDetail + * @duplicate + */ + publicMembersDetail2: (org: string, username: string, params?: RequestParams) => Promise>; + /** + * @description Publicize a user's membership. + * + * @name PublicMembersUpdate + * @request PUT:/orgs/{org}/public_members/{username} + */ + publicMembersUpdate: (org: string, username: string, params?: RequestParams) => Promise>; + /** + * @description List repositories for the specified org. + * + * @name ReposDetail + * @request GET:/orgs/{org}/repos + */ + reposDetail: ( + org: string, + query?: { + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/orgs/{org}/repos + */ + reposCreate: (org: string, body: PostRepo, params?: RequestParams) => Promise>; + /** + * @description List teams. + * + * @name TeamsDetail + * @request GET:/orgs/{org}/teams + */ + teamsDetail: (org: string, params?: RequestParams) => Promise>; + /** + * @description Create team. In order to create a team, the authenticated user must be an owner of organization. + * + * @name TeamsCreate + * @request POST:/orgs/{org}/teams + */ + teamsCreate: (org: string, body: OrgTeamsPost, params?: RequestParams) => Promise>; + }; + rateLimit: { + /** + * @description Get your current rate limit status Note: Accessing this endpoint does not count against your rate limit. + * + * @name RateLimitList + * @request GET:/rate_limit + */ + rateLimitList: (params?: RequestParams) => Promise>; + }; + repos: { + /** + * @description Delete a Repository. Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required. + * + * @name ReposDelete + * @request DELETE:/repos/{owner}/{repo} + */ + reposDelete: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get repository. + * + * @name ReposDetail + * @request GET:/repos/{owner}/{repo} + */ + reposDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Edit repository. + * + * @name ReposPartialUpdate + * @request PATCH:/repos/{owner}/{repo} + */ + reposPartialUpdate: ( + owner: string, + repo: string, + body: RepoEdit, + params?: RequestParams, + ) => Promise>; + /** + * @description List assignees. This call lists all the available assignees (owner + collaborators) to which issues may be assigned. + * + * @name AssigneesDetail + * @request GET:/repos/{owner}/{repo}/assignees + */ + assigneesDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Check assignee. You may also check to see if a particular user is an assignee for a repository. + * + * @name AssigneesDetail2 + * @request GET:/repos/{owner}/{repo}/assignees/{assignee} + * @originalName assigneesDetail + * @duplicate + */ + assigneesDetail2: ( + owner: string, + repo: string, + assignee: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of branches + * + * @name BranchesDetail + * @request GET:/repos/{owner}/{repo}/branches + */ + branchesDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get Branch + * + * @name BranchesDetail2 + * @request GET:/repos/{owner}/{repo}/branches/{branch} + * @originalName branchesDetail + * @duplicate + */ + branchesDetail2: ( + owner: string, + repo: string, + branch: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List. When authenticating as an organization owner of an organization-owned repository, all organization owners are included in the list of collaborators. Otherwise, only users with access to the repository are returned in the collaborators list. + * + * @name CollaboratorsDetail + * @request GET:/repos/{owner}/{repo}/collaborators + */ + collaboratorsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Remove collaborator. + * + * @name CollaboratorsDelete + * @request DELETE:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsDelete: ( + owner: string, + repo: string, + user: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Check if user is a collaborator + * + * @name CollaboratorsDetail2 + * @request GET:/repos/{owner}/{repo}/collaborators/{user} + * @originalName collaboratorsDetail + * @duplicate + */ + collaboratorsDetail2: ( + owner: string, + repo: string, + user: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Add collaborator. + * + * @name CollaboratorsUpdate + * @request PUT:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsUpdate: ( + owner: string, + repo: string, + user: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List commit comments for a repository. Comments are ordered by ascending ID. + * + * @name CommentsDetail + * @request GET:/repos/{owner}/{repo}/comments + */ + commentsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Delete a commit comment + * + * @name CommentsDelete + * @request DELETE:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsDelete: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single commit comment. + * + * @name CommentsDetail2 + * @request GET:/repos/{owner}/{repo}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Update a commit comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params?: RequestParams, + ) => Promise>; + /** + * @description List commits on a repository. + * + * @name CommitsDetail + * @request GET:/repos/{owner}/{repo}/commits + */ + commitsDetail: ( + owner: string, + repo: string, + query?: { + since?: string; + sha?: string; + path?: string; + author?: string; + until?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Get the combined Status for a specific Ref The Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details. To access this endpoint during the preview period, you must provide a custom media type in the Accept header: application/vnd.github.she-hulk-preview+json + * + * @name CommitsStatusDetail + * @request GET:/repos/{owner}/{repo}/commits/{ref}/status + */ + commitsStatusDetail: ( + owner: string, + repo: string, + ref: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single commit. + * + * @name CommitsDetail2 + * @request GET:/repos/{owner}/{repo}/commits/{shaCode} + * @originalName commitsDetail + * @duplicate + */ + commitsDetail2: ( + owner: string, + repo: string, + shaCode: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List comments for a single commitList comments for a single commit. + * + * @name CommitsCommentsDetail + * @request GET:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsDetail: ( + owner: string, + repo: string, + shaCode: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a commit comment. + * + * @name CommitsCommentsCreate + * @request POST:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsCreate: ( + owner: string, + repo: string, + shaCode: string, + body: CommitCommentBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Compare two commits + * + * @name CompareDetail + * @request GET:/repos/{owner}/{repo}/compare/{baseId}...{headId} + */ + compareDetail: ( + owner: string, + repo: string, + baseId: string, + headId: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a file. This method deletes a file in a repository. + * + * @name ContentsDelete + * @request DELETE:/repos/{owner}/{repo}/contents/{path} + */ + contentsDelete: ( + owner: string, + repo: string, + path: string, + body: DeleteFileBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get contents. This method returns the contents of a file or directory in a repository. Files and symlinks support a custom media type for getting the raw content. Directories and submodules do not support custom media types. Note: This API supports files up to 1 megabyte in size. Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/" + * + * @name ContentsDetail + * @request GET:/repos/{owner}/{repo}/contents/{path} + */ + contentsDetail: ( + owner: string, + repo: string, + path: string, + query?: { + path?: string; + ref?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a file. + * + * @name ContentsUpdate + * @request PUT:/repos/{owner}/{repo}/contents/{path} + */ + contentsUpdate: ( + owner: string, + repo: string, + path: string, + body: CreateFileBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of contributors. + * + * @name ContributorsDetail + * @request GET:/repos/{owner}/{repo}/contributors + */ + contributorsDetail: ( + owner: string, + repo: string, + query: { + anon: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Users with pull access can view deployments for a repository + * + * @name DeploymentsDetail + * @request GET:/repos/{owner}/{repo}/deployments + */ + deploymentsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Users with push access can create a deployment for a given ref + * + * @name DeploymentsCreate + * @request POST:/repos/{owner}/{repo}/deployments + */ + deploymentsCreate: ( + owner: string, + repo: string, + body: Deployment, + params?: RequestParams, + ) => Promise>; + /** + * @description Users with pull access can view deployment statuses for a deployment + * + * @name DeploymentsStatusesDetail + * @request GET:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesDetail: ( + owner: string, + repo: string, + id: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a Deployment Status Users with push access can create deployment statuses for a given deployment: + * + * @name DeploymentsStatusesCreate + * @request POST:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesCreate: ( + owner: string, + repo: string, + id: number, + body: DeploymentStatusesCreate, + params?: RequestParams, + ) => Promise>; + /** + * @description Deprecated. List downloads for a repository. + * + * @name DownloadsDetail + * @request GET:/repos/{owner}/{repo}/downloads + */ + downloadsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Deprecated. Delete a download. + * + * @name DownloadsDelete + * @request DELETE:/repos/{owner}/{repo}/downloads/{downloadId} + */ + downloadsDelete: ( + owner: string, + repo: string, + downloadId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Deprecated. Get a single download. + * + * @name DownloadsDetail2 + * @request GET:/repos/{owner}/{repo}/downloads/{downloadId} + * @originalName downloadsDetail + * @duplicate + */ + downloadsDetail2: ( + owner: string, + repo: string, + downloadId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of repository events. + * + * @name EventsDetail + * @request GET:/repos/{owner}/{repo}/events + */ + eventsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description List forks. + * + * @name ForksDetail + * @request GET:/repos/{owner}/{repo}/forks + */ + forksDetail: ( + owner: string, + repo: string, + query?: { + sort?: "newes" | "oldes" | "watchers"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wai a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support. + * + * @name ForksCreate + * @request POST:/repos/{owner}/{repo}/forks + */ + forksCreate: (owner: string, repo: string, body: ForkBody, params?: RequestParams) => Promise>; + /** + * @description Create a Blob. + * + * @name GitBlobsCreate + * @request POST:/repos/{owner}/{repo}/git/blobs + */ + gitBlobsCreate: (owner: string, repo: string, body: Blob, params?: RequestParams) => Promise>; + /** + * @description Get a Blob. Since blobs can be any arbitrary binary data, the input and responses for the blob API takes an encoding parameter that can be either utf-8 or base64. If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it. + * + * @name GitBlobsDetail + * @request GET:/repos/{owner}/{repo}/git/blobs/{shaCode} + */ + gitBlobsDetail: ( + owner: string, + repo: string, + shaCode: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a Commit. + * + * @name GitCommitsCreate + * @request POST:/repos/{owner}/{repo}/git/commits + */ + gitCommitsCreate: ( + owner: string, + repo: string, + body: RepoCommitBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a Commit. + * + * @name GitCommitsDetail + * @request GET:/repos/{owner}/{repo}/git/commits/{shaCode} + */ + gitCommitsDetail: ( + owner: string, + repo: string, + shaCode: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get all References + * + * @name GitRefsDetail + * @request GET:/repos/{owner}/{repo}/git/refs + */ + gitRefsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Create a Reference + * + * @name GitRefsCreate + * @request POST:/repos/{owner}/{repo}/git/refs + */ + gitRefsCreate: ( + owner: string, + repo: string, + body: RefsBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a Reference Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a Example: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 + * + * @name GitRefsDelete + * @request DELETE:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsDelete: (owner: string, repo: string, ref: string, params?: RequestParams) => Promise>; + /** + * @description Get a Reference + * + * @name GitRefsDetail2 + * @request GET:/repos/{owner}/{repo}/git/refs/{ref} + * @originalName gitRefsDetail + * @duplicate + */ + gitRefsDetail2: ( + owner: string, + repo: string, + ref: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Update a Reference + * + * @name GitRefsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsPartialUpdate: ( + owner: string, + repo: string, + ref: string, + body: GitRefPatch, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a Tag Object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you only have to create the tag reference - this call would be unnecessary. + * + * @name GitTagsCreate + * @request POST:/repos/{owner}/{repo}/git/tags + */ + gitTagsCreate: (owner: string, repo: string, body: TagBody, params?: RequestParams) => Promise>; + /** + * @description Get a Tag. + * + * @name GitTagsDetail + * @request GET:/repos/{owner}/{repo}/git/tags/{shaCode} + */ + gitTagsDetail: ( + owner: string, + repo: string, + shaCode: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a Tree. The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out. + * + * @name GitTreesCreate + * @request POST:/repos/{owner}/{repo}/git/trees + */ + gitTreesCreate: (owner: string, repo: string, body: Tree, params?: RequestParams) => Promise>; + /** + * @description Get a Tree. + * + * @name GitTreesDetail + * @request GET:/repos/{owner}/{repo}/git/trees/{shaCode} + */ + gitTreesDetail: ( + owner: string, + repo: string, + shaCode: string, + query?: { + recursive?: number; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of hooks. + * + * @name HooksDetail + * @request GET:/repos/{owner}/{repo}/hooks + */ + hooksDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Create a hook. + * + * @name HooksCreate + * @request POST:/repos/{owner}/{repo}/hooks + */ + hooksCreate: (owner: string, repo: string, body: HookBody, params?: RequestParams) => Promise>; + /** + * @description Delete a hook. + * + * @name HooksDelete + * @request DELETE:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksDelete: (owner: string, repo: string, hookId: number, params?: RequestParams) => Promise>; + /** + * @description Get single hook. + * + * @name HooksDetail2 + * @request GET:/repos/{owner}/{repo}/hooks/{hookId} + * @originalName hooksDetail + * @duplicate + */ + hooksDetail2: (owner: string, repo: string, hookId: number, params?: RequestParams) => Promise>; + /** + * @description Edit a hook. + * + * @name HooksPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksPartialUpdate: ( + owner: string, + repo: string, + hookId: number, + body: HookBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Test a push hook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated. Note: Previously /repos/:owner/:repo/hooks/:id/tes + * + * @name HooksTestsCreate + * @request POST:/repos/{owner}/{repo}/hooks/{hookId}/tests + */ + hooksTestsCreate: ( + owner: string, + repo: string, + hookId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description List issues for a repository. + * + * @name IssuesDetail + * @request GET:/repos/{owner}/{repo}/issues + */ + issuesDetail: ( + owner: string, + repo: string, + query: { + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + state: "open" | "closed"; + labels: string; + sort: "created" | "updated" | "comments"; + direction: "asc" | "desc"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create an issue. Any user with pull access to a repository can create an issue. + * + * @name IssuesCreate + * @request POST:/repos/{owner}/{repo}/issues + */ + issuesCreate: (owner: string, repo: string, body: Issue, params?: RequestParams) => Promise>; + /** + * @description List comments in a repository. + * + * @name IssuesCommentsDetail + * @request GET:/repos/{owner}/{repo}/issues/comments + */ + issuesCommentsDetail: ( + owner: string, + repo: string, + query?: { + direction?: string; + sort?: "created" | "updated"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a comment. + * + * @name IssuesCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsDelete: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single comment. + * + * @name IssuesCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/comments/{commentId} + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail2: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Edit a comment. + * + * @name IssuesCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params?: RequestParams, + ) => Promise>; + /** + * @description List issue events for a repository. + * + * @name IssuesEventsDetail + * @request GET:/repos/{owner}/{repo}/issues/events + */ + issuesEventsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get a single event. + * + * @name IssuesEventsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/events/{eventId} + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail2: ( + owner: string, + repo: string, + eventId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single issue + * + * @name IssuesDetail2 + * @request GET:/repos/{owner}/{repo}/issues/{number} + * @originalName issuesDetail + * @duplicate + */ + issuesDetail2: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Edit an issue. Issue owners and users with push access can edit an issue. + * + * @name IssuesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/{number} + */ + issuesPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: Issue, + params?: RequestParams, + ) => Promise>; + /** + * @description List comments on an issue. + * + * @name IssuesCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/comments + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail3: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a comment. + * + * @name IssuesCommentsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/comments + */ + issuesCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: CommentBody, + params?: RequestParams, + ) => Promise>; + /** + * @description List events for an issue. + * + * @name IssuesEventsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/events + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail3: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Remove all labels from an issue. + * + * @name IssuesLabelsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDelete: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description List labels on an issue. + * + * @name IssuesLabelsDetail + * @request GET:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDetail: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Add labels to an issue. + * + * @name IssuesLabelsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsCreate: ( + owner: string, + repo: string, + number: number, + body: EmailsPost, + params?: RequestParams, + ) => Promise>; + /** + * @description Replace all labels for an issue. Sending an empty array ([]) will remove all Labels from the Issue. + * + * @name IssuesLabelsUpdate + * @request PUT:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsUpdate: ( + owner: string, + repo: string, + number: number, + body: EmailsPost, + params?: RequestParams, + ) => Promise>; + /** + * @description Remove a label from an issue. + * + * @name IssuesLabelsDelete2 + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels/{name} + * @originalName issuesLabelsDelete + * @duplicate + */ + issuesLabelsDelete2: ( + owner: string, + repo: string, + number: number, + name: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of keys. + * + * @name KeysDetail + * @request GET:/repos/{owner}/{repo}/keys + */ + keysDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Create a key. + * + * @name KeysCreate + * @request POST:/repos/{owner}/{repo}/keys + */ + keysCreate: ( + owner: string, + repo: string, + body: UserKeysPost, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a key. + * + * @name KeysDelete + * @request DELETE:/repos/{owner}/{repo}/keys/{keyId} + */ + keysDelete: (owner: string, repo: string, keyId: number, params?: RequestParams) => Promise>; + /** + * @description Get a key + * + * @name KeysDetail2 + * @request GET:/repos/{owner}/{repo}/keys/{keyId} + * @originalName keysDetail + * @duplicate + */ + keysDetail2: ( + owner: string, + repo: string, + keyId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description List all labels for this repository. + * + * @name LabelsDetail + * @request GET:/repos/{owner}/{repo}/labels + */ + labelsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Create a label. + * + * @name LabelsCreate + * @request POST:/repos/{owner}/{repo}/labels + */ + labelsCreate: ( + owner: string, + repo: string, + body: EmailsPost, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a label. + * + * @name LabelsDelete + * @request DELETE:/repos/{owner}/{repo}/labels/{name} + */ + labelsDelete: (owner: string, repo: string, name: string, params?: RequestParams) => Promise>; + /** + * @description Get a single label. + * + * @name LabelsDetail2 + * @request GET:/repos/{owner}/{repo}/labels/{name} + * @originalName labelsDetail + * @duplicate + */ + labelsDetail2: (owner: string, repo: string, name: string, params?: RequestParams) => Promise>; + /** + * @description Update a label. + * + * @name LabelsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/labels/{name} + */ + labelsPartialUpdate: ( + owner: string, + repo: string, + name: string, + body: EmailsPost, + params?: RequestParams, + ) => Promise>; + /** + * @description List languages. List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language. + * + * @name LanguagesDetail + * @request GET:/repos/{owner}/{repo}/languages + */ + languagesDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Perform a merge. + * + * @name MergesCreate + * @request POST:/repos/{owner}/{repo}/merges + */ + mergesCreate: ( + owner: string, + repo: string, + body: MergesBody, + params?: RequestParams, + ) => Promise>; + /** + * @description List milestones for a repository. + * + * @name MilestonesDetail + * @request GET:/repos/{owner}/{repo}/milestones + */ + milestonesDetail: ( + owner: string, + repo: string, + query?: { + state?: "open" | "closed"; + direction?: string; + sort?: "due_date" | "completeness"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a milestone. + * + * @name MilestonesCreate + * @request POST:/repos/{owner}/{repo}/milestones + */ + milestonesCreate: ( + owner: string, + repo: string, + body: MilestoneUpdate, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a milestone. + * + * @name MilestonesDelete + * @request DELETE:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesDelete: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single milestone. + * + * @name MilestonesDetail2 + * @request GET:/repos/{owner}/{repo}/milestones/{number} + * @originalName milestonesDetail + * @duplicate + */ + milestonesDetail2: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Update a milestone. + * + * @name MilestonesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: MilestoneUpdate, + params?: RequestParams, + ) => Promise>; + /** + * @description Get labels for every issue in a milestone. + * + * @name MilestonesLabelsDetail + * @request GET:/repos/{owner}/{repo}/milestones/{number}/labels + */ + milestonesLabelsDetail: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description List your notifications in a repository List all notifications for the current user. + * + * @name NotificationsDetail + * @request GET:/repos/{owner}/{repo}/notifications + */ + notificationsDetail: ( + owner: string, + repo: string, + query?: { + all?: boolean; + participating?: boolean; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Mark notifications as read in a repository. Marking all notifications in a repository as "read" removes them from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/repos/{owner}/{repo}/notifications + */ + notificationsUpdate: ( + owner: string, + repo: string, + body: NotificationMarkRead, + params?: RequestParams, + ) => Promise>; + /** + * @description List pull requests. + * + * @name PullsDetail + * @request GET:/repos/{owner}/{repo}/pulls + */ + pullsDetail: ( + owner: string, + repo: string, + query?: { + state?: "open" | "closed"; + head?: string; + base?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a pull request. + * + * @name PullsCreate + * @request POST:/repos/{owner}/{repo}/pulls + */ + pullsCreate: ( + owner: string, + repo: string, + body: PullsPost, + params?: RequestParams, + ) => Promise>; + /** + * @description List comments in a repository. By default, Review Comments are ordered by ascending ID. + * + * @name PullsCommentsDetail + * @request GET:/repos/{owner}/{repo}/pulls/comments + */ + pullsCommentsDetail: ( + owner: string, + repo: string, + query?: { + direction?: string; + sort?: "created" | "updated"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a comment. + * + * @name PullsCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsDelete: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single comment. + * + * @name PullsCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/comments/{commentId} + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail2: ( + owner: string, + repo: string, + commentId: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Edit a comment. + * + * @name PullsCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsPartialUpdate: ( + owner: string, + repo: string, + commentId: number, + body: CommentBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single pull request. + * + * @name PullsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/{number} + * @originalName pullsDetail + * @duplicate + */ + pullsDetail2: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Update a pull request. + * + * @name PullsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/{number} + */ + pullsPartialUpdate: ( + owner: string, + repo: string, + number: number, + body: PullUpdate, + params?: RequestParams, + ) => Promise>; + /** + * @description List comments on a pull request. + * + * @name PullsCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/pulls/{number}/comments + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail3: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a comment. #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ ) description: | Alternative Input. Instead of passing commit_id, path, and position you can reply to an existing Pull Request Comment like this: body Required string in_reply_to Required number - Comment id to reply to. + * + * @name PullsCommentsCreate + * @request POST:/repos/{owner}/{repo}/pulls/{number}/comments + */ + pullsCommentsCreate: ( + owner: string, + repo: string, + number: number, + body: PullsCommentPost, + params?: RequestParams, + ) => Promise>; + /** + * @description List commits on a pull request. + * + * @name PullsCommitsDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/commits + */ + pullsCommitsDetail: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description List pull requests files. + * + * @name PullsFilesDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/files + */ + pullsFilesDetail: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Get if a pull request has been merged. + * + * @name PullsMergeDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeDetail: ( + owner: string, + repo: string, + number: number, + params?: RequestParams, + ) => Promise>; + /** + * @description Merge a pull request (Merge Button's) + * + * @name PullsMergeUpdate + * @request PUT:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeUpdate: ( + owner: string, + repo: string, + number: number, + body: MergePullBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get the README. This method returns the preferred README for a repository. + * + * @name ReadmeDetail + * @request GET:/repos/{owner}/{repo}/readme + */ + readmeDetail: ( + owner: string, + repo: string, + query?: { + ref?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only + * + * @name ReleasesDetail + * @request GET:/repos/{owner}/{repo}/releases + */ + releasesDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Create a release Users with push access to the repository can create a release. + * + * @name ReleasesCreate + * @request POST:/repos/{owner}/{repo}/releases + */ + releasesCreate: ( + owner: string, + repo: string, + body: ReleaseCreate, + params?: RequestParams, + ) => Promise>; + /** + * @description Delete a release asset + * + * @name ReleasesAssetsDelete + * @request DELETE:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDelete: ( + owner: string, + repo: string, + id: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single release asset + * + * @name ReleasesAssetsDetail + * @request GET:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDetail: ( + owner: string, + repo: string, + id: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Edit a release asset Users with push access to the repository can edit a release asset. + * + * @name ReleasesAssetsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsPartialUpdate: ( + owner: string, + repo: string, + id: string, + body: AssetPatch, + params?: RequestParams, + ) => Promise>; + /** + * @description Users with push access to the repository can delete a release. + * + * @name ReleasesDelete + * @request DELETE:/repos/{owner}/{repo}/releases/{id} + */ + releasesDelete: (owner: string, repo: string, id: string, params?: RequestParams) => Promise>; + /** + * @description Get a single release + * + * @name ReleasesDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id} + * @originalName releasesDetail + * @duplicate + */ + releasesDetail2: ( + owner: string, + repo: string, + id: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Users with push access to the repository can edit a release + * + * @name ReleasesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/{id} + */ + releasesPartialUpdate: ( + owner: string, + repo: string, + id: string, + body: ReleaseCreate, + params?: RequestParams, + ) => Promise>; + /** + * @description List assets for a release + * + * @name ReleasesAssetsDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id}/assets + * @originalName releasesAssetsDetail + * @duplicate + */ + releasesAssetsDetail2: ( + owner: string, + repo: string, + id: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List Stargazers. + * + * @name StargazersDetail + * @request GET:/repos/{owner}/{repo}/stargazers + */ + stargazersDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get the number of additions and deletions per week. Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + * + * @name StatsCodeFrequencyDetail + * @request GET:/repos/{owner}/{repo}/stats/code_frequency + */ + statsCodeFrequencyDetail: ( + owner: string, + repo: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get the last year of commit activity data. Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday. + * + * @name StatsCommitActivityDetail + * @request GET:/repos/{owner}/{repo}/stats/commit_activity + */ + statsCommitActivityDetail: ( + owner: string, + repo: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get contributors list with additions, deletions, and commit counts. + * + * @name StatsContributorsDetail + * @request GET:/repos/{owner}/{repo}/stats/contributors + */ + statsContributorsDetail: ( + owner: string, + repo: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get the weekly commit count for the repo owner and everyone else. + * + * @name StatsParticipationDetail + * @request GET:/repos/{owner}/{repo}/stats/participation + */ + statsParticipationDetail: ( + owner: string, + repo: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Get the number of commits per hour in each day. Each array contains the day number, hour number, and number of commits 0-6 Sunday - Saturday 0-23 Hour of day Number of commits For example, [2, 14, 25] indicates that there were 25 total commits, during the 2.00pm hour on Tuesdays. All times are based on the time zone of individual commits. + * + * @name StatsPunchCardDetail + * @request GET:/repos/{owner}/{repo}/stats/punch_card + */ + statsPunchCardDetail: ( + owner: string, + repo: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List Statuses for a specific Ref. + * + * @name StatusesDetail + * @request GET:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesDetail: (owner: string, repo: string, ref: string, params?: RequestParams) => Promise>; + /** + * @description Create a Status. + * + * @name StatusesCreate + * @request POST:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesCreate: ( + owner: string, + repo: string, + ref: string, + body: HeadBranch, + params?: RequestParams, + ) => Promise>; + /** + * @description List watchers. + * + * @name SubscribersDetail + * @request GET:/repos/{owner}/{repo}/subscribers + */ + subscribersDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Delete a Repository Subscription. + * + * @name SubscriptionDelete + * @request DELETE:/repos/{owner}/{repo}/subscription + */ + subscriptionDelete: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get a Repository Subscription. + * + * @name SubscriptionDetail + * @request GET:/repos/{owner}/{repo}/subscription + */ + subscriptionDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Set a Repository Subscription + * + * @name SubscriptionUpdate + * @request PUT:/repos/{owner}/{repo}/subscription + */ + subscriptionUpdate: ( + owner: string, + repo: string, + body: SubscriptionBody, + params?: RequestParams, + ) => Promise>; + /** + * @description Get list of tags. + * + * @name TagsDetail + * @request GET:/repos/{owner}/{repo}/tags + */ + tagsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get list of teams + * + * @name TeamsDetail + * @request GET:/repos/{owner}/{repo}/teams + */ + teamsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description List Stargazers. New implementation. + * + * @name WatchersDetail + * @request GET:/repos/{owner}/{repo}/watchers + */ + watchersDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Get archive link. This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly. + * + * @name ReposDetail2 + * @request GET:/repos/{owner}/{repo}/{archive_format}/{path} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: ( + owner: string, + repo: string, + archiveFormat: "tarball" | "zipball", + path: string, + params?: RequestParams, + ) => Promise>; + }; + repositories: { + /** + * @description List all public repositories. This provides a dump of every public repository, in the order that they were created. Note: Pagination is powered exclusively by the since parameter. is the Link header to get the URL for the next page of repositories. + * + * @name RepositoriesList + * @request GET:/repositories + */ + repositoriesList: ( + query?: { + since?: string; + }, + params?: RequestParams, + ) => Promise>; + }; + search: { + /** + * @description Search code. + * + * @name CodeList + * @request GET:/search/code + */ + codeList: ( + query: { + order?: "desc" | "asc"; + q: string; + sort?: "indexed"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Find issues by state and keyword. (This method returns up to 100 results per page.) + * + * @name IssuesList + * @request GET:/search/issues + */ + issuesList: ( + query: { + order?: "desc" | "asc"; + q: string; + sort?: "updated" | "created" | "comments"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Search repositories. + * + * @name RepositoriesList + * @request GET:/search/repositories + */ + repositoriesList: ( + query: { + order?: "desc" | "asc"; + q: string; + sort?: "stars" | "forks" | "updated"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Search users. + * + * @name UsersList + * @request GET:/search/users + */ + usersList: ( + query: { + order?: "desc" | "asc"; + q: string; + sort?: "followers" | "repositories" | "joined"; + }, + params?: RequestParams, + ) => Promise>; + }; + teams: { + /** + * @description Delete team. In order to delete a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsDelete + * @request DELETE:/teams/{teamId} + */ + teamsDelete: (teamId: number, params?: RequestParams) => Promise>; + /** + * @description Get team. + * + * @name TeamsDetail + * @request GET:/teams/{teamId} + */ + teamsDetail: (teamId: number, params?: RequestParams) => Promise>; + /** + * @description Edit team. In order to edit a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsPartialUpdate + * @request PATCH:/teams/{teamId} + */ + teamsPartialUpdate: (teamId: number, body: EditTeam, params?: RequestParams) => Promise>; + /** + * @description List team members. In order to list members in a team, the authenticated user must be a member of the team. + * + * @name MembersDetail + * @request GET:/teams/{teamId}/members + */ + membersDetail: (teamId: number, params?: RequestParams) => Promise>; + /** + * @description The "Remove team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships. Remove team member. In order to remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE This does not delete the user, it just remove them from the team. + * + * @name MembersDelete + * @request DELETE:/teams/{teamId}/members/{username} + */ + membersDelete: (teamId: number, username: string, params?: RequestParams) => Promise>; + /** + * @description The "Get team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships. Get team member. In order to get if a user is a member of a team, the authenticated user mus be a member of the team. + * + * @name MembersDetail2 + * @request GET:/teams/{teamId}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (teamId: number, username: string, params?: RequestParams) => Promise>; + /** + * @description The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams. Add team member. In order to add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. + * + * @name MembersUpdate + * @request PUT:/teams/{teamId}/members/{username} + */ + membersUpdate: (teamId: number, username: string, params?: RequestParams) => Promise>; + /** + * @description Remove team membership. In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team. + * + * @name MembershipsDelete + * @request DELETE:/teams/{teamId}/memberships/{username} + */ + membershipsDelete: (teamId: number, username: string, params?: RequestParams) => Promise>; + /** + * @description Get team membership. In order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization. + * + * @name MembershipsDetail + * @request GET:/teams/{teamId}/memberships/{username} + */ + membershipsDetail: ( + teamId: number, + username: string, + params?: RequestParams, + ) => Promise>; + /** + * @description Add team membership. In order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. If the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team. If the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team. + * + * @name MembershipsUpdate + * @request PUT:/teams/{teamId}/memberships/{username} + */ + membershipsUpdate: ( + teamId: number, + username: string, + params?: RequestParams, + ) => Promise>; + /** + * @description List team repos + * + * @name ReposDetail + * @request GET:/teams/{teamId}/repos + */ + reposDetail: (teamId: number, params?: RequestParams) => Promise>; + /** + * @description In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team. + * + * @name ReposDelete + * @request DELETE:/teams/{teamId}/repos/{owner}/{repo} + */ + reposDelete: (teamId: number, owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Check if a team manages a repository + * + * @name ReposDetail2 + * @request GET:/teams/{teamId}/repos/{owner}/{repo} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: (teamId: number, owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization. + * + * @name ReposUpdate + * @request PUT:/teams/{teamId}/repos/{owner}/{repo} + */ + reposUpdate: (teamId: number, owner: string, repo: string, params?: RequestParams) => Promise>; + }; + user: { + /** + * @description Get the authenticated user. + * + * @name UserList + * @request GET:/user + */ + userList: (params?: RequestParams) => Promise>; + /** + * @description Update the authenticated user. + * + * @name UserPartialUpdate + * @request PATCH:/user + */ + userPartialUpdate: (body: UserUpdate, params?: RequestParams) => Promise>; + /** + * @description Delete email address(es). You can include a single email address or an array of addresses. + * + * @name EmailsDelete + * @request DELETE:/user/emails + */ + emailsDelete: (body: UserEmails, params?: RequestParams) => Promise>; + /** + * @description List email addresses for a user. In the final version of the API, this method will return an array of hashes with extended information for each email address indicating if the address has been verified and if it's primary email address for GitHub. Until API v3 is finalized, use the application/vnd.github.v3 media type to get other response format. + * + * @name EmailsList + * @request GET:/user/emails + */ + emailsList: (params?: RequestParams) => Promise>; + /** + * @description Add email address(es). You can post a single email address or an array of addresses. + * + * @name EmailsCreate + * @request POST:/user/emails + */ + emailsCreate: (body: EmailsPost, params?: RequestParams) => Promise>; + /** + * @description List the authenticated user's followers + * + * @name FollowersList + * @request GET:/user/followers + */ + followersList: (params?: RequestParams) => Promise>; + /** + * @description List who the authenticated user is following. + * + * @name FollowingList + * @request GET:/user/following + */ + followingList: (params?: RequestParams) => Promise>; + /** + * @description Unfollow a user. Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingDelete + * @request DELETE:/user/following/{username} + */ + followingDelete: (username: string, params?: RequestParams) => Promise>; + /** + * @description Check if you are following a user. + * + * @name FollowingDetail + * @request GET:/user/following/{username} + */ + followingDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description Follow a user. Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingUpdate + * @request PUT:/user/following/{username} + */ + followingUpdate: (username: string, params?: RequestParams) => Promise>; + /** + * @description List issues. List all issues across owned and member repositories for the authenticated user. + * + * @name IssuesList + * @request GET:/user/issues + */ + issuesList: ( + query: { + filter: "assigned" | "created" | "mentioned" | "subscribed" | "all"; + state: "open" | "closed"; + labels: string; + sort: "created" | "updated" | "comments"; + direction: "asc" | "desc"; + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description List your public keys. Lists the current user's keys. Management of public keys via the API requires that you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes. + * + * @name KeysList + * @request GET:/user/keys + */ + keysList: (params?: RequestParams) => Promise>; + /** + * @description Create a public key. + * + * @name KeysCreate + * @request POST:/user/keys + */ + keysCreate: (body: UserKeysPost, params?: RequestParams) => Promise>; + /** + * @description Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope. + * + * @name KeysDelete + * @request DELETE:/user/keys/{keyId} + */ + keysDelete: (keyId: number, params?: RequestParams) => Promise>; + /** + * @description Get a single public key. + * + * @name KeysDetail + * @request GET:/user/keys/{keyId} + */ + keysDetail: (keyId: number, params?: RequestParams) => Promise>; + /** + * @description List public and private organizations for the authenticated user. + * + * @name OrgsList + * @request GET:/user/orgs + */ + orgsList: (params?: RequestParams) => Promise>; + /** + * @description List repositories for the authenticated user. Note that this does not include repositories owned by organizations which the user can access. You can lis user organizations and list organization repositories separately. + * + * @name ReposList + * @request GET:/user/repos + */ + reposList: ( + query?: { + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/user/repos + */ + reposCreate: (body: PostRepo, params?: RequestParams) => Promise>; + /** + * @description List repositories being starred by the authenticated user. + * + * @name StarredList + * @request GET:/user/starred + */ + starredList: ( + query?: { + direction?: string; + sort?: "created" | "updated"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Unstar a repository + * + * @name StarredDelete + * @request DELETE:/user/starred/{owner}/{repo} + */ + starredDelete: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Check if you are starring a repository. + * + * @name StarredDetail + * @request GET:/user/starred/{owner}/{repo} + */ + starredDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Star a repository. + * + * @name StarredUpdate + * @request PUT:/user/starred/{owner}/{repo} + */ + starredUpdate: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description List repositories being watched by the authenticated user. + * + * @name SubscriptionsList + * @request GET:/user/subscriptions + */ + subscriptionsList: (params?: RequestParams) => Promise>; + /** + * @description Stop watching a repository + * + * @name SubscriptionsDelete + * @request DELETE:/user/subscriptions/{owner}/{repo} + */ + subscriptionsDelete: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Check if you are watching a repository. + * + * @name SubscriptionsDetail + * @request GET:/user/subscriptions/{owner}/{repo} + */ + subscriptionsDetail: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description Watch a repository. + * + * @name SubscriptionsUpdate + * @request PUT:/user/subscriptions/{owner}/{repo} + */ + subscriptionsUpdate: (owner: string, repo: string, params?: RequestParams) => Promise>; + /** + * @description List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth. + * + * @name TeamsList + * @request GET:/user/teams + */ + teamsList: (params?: RequestParams) => Promise>; + }; + users: { + /** + * @description Get all users. This provides a dump of every user, in the order that they signed up for GitHub. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users. + * + * @name UsersList + * @request GET:/users + */ + usersList: ( + query?: { + since?: number; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description Get a single user. + * + * @name UsersDetail + * @request GET:/users/{username} + */ + usersDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + * + * @name EventsDetail + * @request GET:/users/{username}/events + */ + eventsDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description This is the user's organization dashboard. You must be authenticated as the user to view this. + * + * @name EventsOrgsDetail + * @request GET:/users/{username}/events/orgs/{org} + */ + eventsOrgsDetail: (username: string, org: string, params?: RequestParams) => Promise>; + /** + * @description List a user's followers + * + * @name FollowersDetail + * @request GET:/users/{username}/followers + */ + followersDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description Check if one user follows another. + * + * @name FollowingDetail + * @request GET:/users/{username}/following/{targetUser} + */ + followingDetail: (username: string, targetUser: string, params?: RequestParams) => Promise>; + /** + * @description List a users gists. + * + * @name GistsDetail + * @request GET:/users/{username}/gists + */ + gistsDetail: ( + username: string, + query?: { + since?: string; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description List public keys for a user. Lists the verified public keys for a user. This is accessible by anyone. + * + * @name KeysDetail + * @request GET:/users/{username}/keys + */ + keysDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description List all public organizations for a user. + * + * @name OrgsDetail + * @request GET:/users/{username}/orgs + */ + orgsDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description These are events that you'll only see public events. + * + * @name ReceivedEventsDetail + * @request GET:/users/{username}/received_events + */ + receivedEventsDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description List public events that a user has received + * + * @name ReceivedEventsPublicDetail + * @request GET:/users/{username}/received_events/public + */ + receivedEventsPublicDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description List public repositories for the specified user. + * + * @name ReposDetail + * @request GET:/users/{username}/repos + */ + reposDetail: ( + username: string, + query?: { + type?: "all" | "public" | "private" | "forks" | "sources" | "member"; + }, + params?: RequestParams, + ) => Promise>; + /** + * @description List repositories being starred by a user. + * + * @name StarredDetail + * @request GET:/users/{username}/starred + */ + starredDetail: (username: string, params?: RequestParams) => Promise>; + /** + * @description List repositories being watched by a user. + * + * @name SubscriptionsDetail + * @request GET:/users/{username}/subscriptions + */ + subscriptionsDetail: (username: string, params?: RequestParams) => Promise>; + }; +} diff --git a/tests/spec/jsAxios/schema.js b/tests/spec/jsAxios/schema.js new file mode 100644 index 00000000..7d86eadc --- /dev/null +++ b/tests/spec/jsAxios/schema.js @@ -0,0 +1,3372 @@ +/* eslint-disable */ +/* tslint:disable */ +/* + * --------------------------------------------------------------- + * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ## + * ## ## + * ## AUTHOR: acacode ## + * ## SOURCE: https://github.com/acacode/swagger-typescript-api ## + * --------------------------------------------------------------- + */ + +import axios from "axios"; +export var ContentType; +(function (ContentType) { + ContentType["Json"] = "application/json"; + ContentType["FormData"] = "multipart/form-data"; + ContentType["UrlEncoded"] = "application/x-www-form-urlencoded"; +})(ContentType || (ContentType = {})); +export class HttpClient { + constructor({ securityWorker, ...axiosConfig } = {}) { + this.securityData = null; + this.setSecurityData = (data) => { + this.securityData = data; + }; + this.request = async ({ secure, path, type, query, format = "json", body, ...params }) => { + const secureParams = (secure && this.securityWorker && (await this.securityWorker(this.securityData))) || {}; + const requestParams = this.mergeRequestParams(params, secureParams); + return this.instance.request({ + ...requestParams, + headers: { + ...(type && type !== ContentType.FormData ? { "Content-Type": type } : {}), + ...(requestParams.headers || {}), + }, + params: query, + data: body, + }); + }; + this.instance = axios.create({ ...axiosConfig, baseURL: axiosConfig.baseURL || "https://api.github.com" }); + this.securityWorker = securityWorker; + } + mergeRequestParams(params1, params2) { + return { + ...params1, + ...(params2 || {}), + headers: { + ...(params1.headers || {}), + ...((params2 && params2.headers) || {}), + }, + }; + } +} +export class Api extends HttpClient { + constructor() { + super(...arguments); + this.emojis = { + /** + * @description Lists all the emojis available to use on GitHub. + * + * @name EmojisList + * @request GET:/emojis + */ + emojisList: (params = {}) => + this.request({ + path: `/emojis`, + method: "GET", + format: "json", + ...params, + }), + }; + this.events = { + /** + * @description List public events. + * + * @name EventsList + * @request GET:/events + */ + eventsList: (params = {}) => + this.request({ + path: `/events`, + method: "GET", + format: "json", + ...params, + }), + }; + this.feeds = { + /** + * @description List Feeds. GitHub provides several timeline resources in Atom format. The Feeds API lists all the feeds available to the authenticating user. + * + * @name FeedsList + * @request GET:/feeds + */ + feedsList: (params = {}) => + this.request({ + path: `/feeds`, + method: "GET", + format: "json", + ...params, + }), + }; + this.gists = { + /** + * @description List the authenticated user's gists or if called anonymously, this will return all public gists. + * + * @name GistsList + * @request GET:/gists + */ + gistsList: (query, params = {}) => + this.request({ + path: `/gists`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a gist. + * + * @name GistsCreate + * @request POST:/gists + */ + gistsCreate: (body, params = {}) => + this.request({ + path: `/gists`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List all public gists. + * + * @name PublicList + * @request GET:/gists/public + */ + publicList: (query, params = {}) => + this.request({ + path: `/gists/public`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description List the authenticated user's starred gists. + * + * @name StarredList + * @request GET:/gists/starred + */ + starredList: (query, params = {}) => + this.request({ + path: `/gists/starred`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Delete a gist. + * + * @name GistsDelete + * @request DELETE:/gists/{id} + */ + gistsDelete: (id, params = {}) => + this.request({ + path: `/gists/${id}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single gist. + * + * @name GistsDetail + * @request GET:/gists/{id} + */ + gistsDetail: (id, params = {}) => + this.request({ + path: `/gists/${id}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a gist. + * + * @name GistsPartialUpdate + * @request PATCH:/gists/{id} + */ + gistsPartialUpdate: (id, body, params = {}) => + this.request({ + path: `/gists/${id}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List comments on a gist. + * + * @name CommentsDetail + * @request GET:/gists/{id}/comments + */ + commentsDetail: (id, params = {}) => + this.request({ + path: `/gists/${id}/comments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a commen + * + * @name CommentsCreate + * @request POST:/gists/{id}/comments + */ + commentsCreate: (id, body, params = {}) => + this.request({ + path: `/gists/${id}/comments`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a comment. + * + * @name CommentsDelete + * @request DELETE:/gists/{id}/comments/{commentId} + */ + commentsDelete: (id, commentId, params = {}) => + this.request({ + path: `/gists/${id}/comments/${commentId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single comment. + * + * @name CommentsDetail2 + * @request GET:/gists/{id}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (id, commentId, params = {}) => + this.request({ + path: `/gists/${id}/comments/${commentId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/gists/{id}/comments/{commentId} + */ + commentsPartialUpdate: (id, commentId, body, params = {}) => + this.request({ + path: `/gists/${id}/comments/${commentId}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Fork a gist. + * + * @name ForksCreate + * @request POST:/gists/{id}/forks + */ + forksCreate: (id, params = {}) => + this.request({ + path: `/gists/${id}/forks`, + method: "POST", + ...params, + }), + /** + * @description Unstar a gist. + * + * @name StarDelete + * @request DELETE:/gists/{id}/star + */ + starDelete: (id, params = {}) => + this.request({ + path: `/gists/${id}/star`, + method: "DELETE", + ...params, + }), + /** + * @description Check if a gist is starred. + * + * @name StarDetail + * @request GET:/gists/{id}/star + */ + starDetail: (id, params = {}) => + this.request({ + path: `/gists/${id}/star`, + method: "GET", + ...params, + }), + /** + * @description Star a gist. + * + * @name StarUpdate + * @request PUT:/gists/{id}/star + */ + starUpdate: (id, params = {}) => + this.request({ + path: `/gists/${id}/star`, + method: "PUT", + ...params, + }), + }; + this.gitignore = { + /** + * @description Listing available templates. List all templates available to pass as an option when creating a repository. + * + * @name TemplatesList + * @request GET:/gitignore/templates + */ + templatesList: (params = {}) => + this.request({ + path: `/gitignore/templates`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get a single template. + * + * @name TemplatesDetail + * @request GET:/gitignore/templates/{language} + */ + templatesDetail: (language, params = {}) => + this.request({ + path: `/gitignore/templates/${language}`, + method: "GET", + format: "json", + ...params, + }), + }; + this.issues = { + /** + * @description List issues. List all issues across all the authenticated user's visible repositories. + * + * @name IssuesList + * @request GET:/issues + */ + issuesList: (query, params = {}) => + this.request({ + path: `/issues`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + this.legacy = { + /** + * @description Find issues by state and keyword. + * + * @name IssuesSearchDetail + * @request GET:/legacy/issues/search/{owner}/{repository}/{state}/{keyword} + */ + issuesSearchDetail: (keyword, state, owner, repository, params = {}) => + this.request({ + path: `/legacy/issues/search/${owner}/${repository}/${state}/${keyword}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter. + * + * @name ReposSearchDetail + * @request GET:/legacy/repos/search/{keyword} + */ + reposSearchDetail: (keyword, query, params = {}) => + this.request({ + path: `/legacy/repos/search/${keyword}`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description This API call is added for compatibility reasons only. + * + * @name UserEmailDetail + * @request GET:/legacy/user/email/{email} + */ + userEmailDetail: (email, params = {}) => + this.request({ + path: `/legacy/user/email/${email}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Find users by keyword. + * + * @name UserSearchDetail + * @request GET:/legacy/user/search/{keyword} + */ + userSearchDetail: (keyword, query, params = {}) => + this.request({ + path: `/legacy/user/search/${keyword}`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + this.markdown = { + /** + * @description Render an arbitrary Markdown document + * + * @name MarkdownCreate + * @request POST:/markdown + */ + markdownCreate: (body, params = {}) => + this.request({ + path: `/markdown`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + /** + * @description Render a Markdown document in raw mode + * + * @name PostMarkdown + * @request POST:/markdown/raw + */ + postMarkdown: (params = {}) => + this.request({ + path: `/markdown/raw`, + method: "POST", + ...params, + }), + }; + this.meta = { + /** + * @description This gives some information about GitHub.com, the service. + * + * @name MetaList + * @request GET:/meta + */ + metaList: (params = {}) => + this.request({ + path: `/meta`, + method: "GET", + format: "json", + ...params, + }), + }; + this.networks = { + /** + * @description List public events for a network of repositories. + * + * @name EventsDetail + * @request GET:/networks/{owner}/{repo}/events + */ + eventsDetail: (owner, repo, params = {}) => + this.request({ + path: `/networks/${owner}/${repo}/events`, + method: "GET", + format: "json", + ...params, + }), + }; + this.notifications = { + /** + * @description List your notifications. List all notifications for the current user, grouped by repository. + * + * @name NotificationsList + * @request GET:/notifications + */ + notificationsList: (query, params = {}) => + this.request({ + path: `/notifications`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Mark as read. Marking a notification as "read" removes it from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/notifications + */ + notificationsUpdate: (body, params = {}) => + this.request({ + path: `/notifications`, + method: "PUT", + body: body, + ...params, + }), + /** + * @description View a single thread. + * + * @name ThreadsDetail + * @request GET:/notifications/threads/{id} + */ + threadsDetail: (id, params = {}) => + this.request({ + path: `/notifications/threads/${id}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Mark a thread as read + * + * @name ThreadsPartialUpdate + * @request PATCH:/notifications/threads/{id} + */ + threadsPartialUpdate: (id, params = {}) => + this.request({ + path: `/notifications/threads/${id}`, + method: "PATCH", + ...params, + }), + /** + * @description Delete a Thread Subscription. + * + * @name ThreadsSubscriptionDelete + * @request DELETE:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDelete: (id, params = {}) => + this.request({ + path: `/notifications/threads/${id}/subscription`, + method: "DELETE", + ...params, + }), + /** + * @description Get a Thread Subscription. + * + * @name ThreadsSubscriptionDetail + * @request GET:/notifications/threads/{id}/subscription + */ + threadsSubscriptionDetail: (id, params = {}) => + this.request({ + path: `/notifications/threads/${id}/subscription`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Set a Thread Subscription. This lets you subscribe to a thread, or ignore it. Subscribing to a thread is unnecessary if the user is already subscribed to the repository. Ignoring a thread will mute all future notifications (until you comment or get @mentioned). + * + * @name ThreadsSubscriptionUpdate + * @request PUT:/notifications/threads/{id}/subscription + */ + threadsSubscriptionUpdate: (id, body, params = {}) => + this.request({ + path: `/notifications/threads/${id}/subscription`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + }; + this.orgs = { + /** + * @description Get an Organization. + * + * @name OrgsDetail + * @request GET:/orgs/{org} + */ + orgsDetail: (org, params = {}) => + this.request({ + path: `/orgs/${org}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit an Organization. + * + * @name OrgsPartialUpdate + * @request PATCH:/orgs/{org} + */ + orgsPartialUpdate: (org, body, params = {}) => + this.request({ + path: `/orgs/${org}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List public events for an organization. + * + * @name EventsDetail + * @request GET:/orgs/{org}/events + */ + eventsDetail: (org, params = {}) => + this.request({ + path: `/orgs/${org}/events`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List issues. List all issues for a given organization for the authenticated user. + * + * @name IssuesDetail + * @request GET:/orgs/{org}/issues + */ + issuesDetail: (org, query, params = {}) => + this.request({ + path: `/orgs/${org}/issues`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Members list. List all users who are members of an organization. A member is a user tha belongs to at least 1 team in the organization. If the authenticated user is also an owner of this organization then both concealed and public members will be returned. If the requester is not an owner of the organization the query will be redirected to the public members list. + * + * @name MembersDetail + * @request GET:/orgs/{org}/members + */ + membersDetail: (org, params = {}) => + this.request({ + path: `/orgs/${org}/members`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Remove a member. Removing a user from this list will remove them from all teams and they will no longer have any access to the organization's repositories. + * + * @name MembersDelete + * @request DELETE:/orgs/{org}/members/{username} + */ + membersDelete: (org, username, params = {}) => + this.request({ + path: `/orgs/${org}/members/${username}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if a user is, publicly or privately, a member of the organization. + * + * @name MembersDetail2 + * @request GET:/orgs/{org}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (org, username, params = {}) => + this.request({ + path: `/orgs/${org}/members/${username}`, + method: "GET", + ...params, + }), + /** + * @description Public members list. Members of an organization can choose to have their membership publicized or not. + * + * @name PublicMembersDetail + * @request GET:/orgs/{org}/public_members + */ + publicMembersDetail: (org, params = {}) => + this.request({ + path: `/orgs/${org}/public_members`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Conceal a user's membership. + * + * @name PublicMembersDelete + * @request DELETE:/orgs/{org}/public_members/{username} + */ + publicMembersDelete: (org, username, params = {}) => + this.request({ + path: `/orgs/${org}/public_members/${username}`, + method: "DELETE", + ...params, + }), + /** + * @description Check public membership. + * + * @name PublicMembersDetail2 + * @request GET:/orgs/{org}/public_members/{username} + * @originalName publicMembersDetail + * @duplicate + */ + publicMembersDetail2: (org, username, params = {}) => + this.request({ + path: `/orgs/${org}/public_members/${username}`, + method: "GET", + ...params, + }), + /** + * @description Publicize a user's membership. + * + * @name PublicMembersUpdate + * @request PUT:/orgs/{org}/public_members/{username} + */ + publicMembersUpdate: (org, username, params = {}) => + this.request({ + path: `/orgs/${org}/public_members/${username}`, + method: "PUT", + ...params, + }), + /** + * @description List repositories for the specified org. + * + * @name ReposDetail + * @request GET:/orgs/{org}/repos + */ + reposDetail: (org, query, params = {}) => + this.request({ + path: `/orgs/${org}/repos`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/orgs/{org}/repos + */ + reposCreate: (org, body, params = {}) => + this.request({ + path: `/orgs/${org}/repos`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description List teams. + * + * @name TeamsDetail + * @request GET:/orgs/{org}/teams + */ + teamsDetail: (org, params = {}) => + this.request({ + path: `/orgs/${org}/teams`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create team. In order to create a team, the authenticated user must be an owner of organization. + * + * @name TeamsCreate + * @request POST:/orgs/{org}/teams + */ + teamsCreate: (org, body, params = {}) => + this.request({ + path: `/orgs/${org}/teams`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + }; + this.rateLimit = { + /** + * @description Get your current rate limit status Note: Accessing this endpoint does not count against your rate limit. + * + * @name RateLimitList + * @request GET:/rate_limit + */ + rateLimitList: (params = {}) => + this.request({ + path: `/rate_limit`, + method: "GET", + format: "json", + ...params, + }), + }; + this.repos = { + /** + * @description Delete a Repository. Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required. + * + * @name ReposDelete + * @request DELETE:/repos/{owner}/{repo} + */ + reposDelete: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}`, + method: "DELETE", + ...params, + }), + /** + * @description Get repository. + * + * @name ReposDetail + * @request GET:/repos/{owner}/{repo} + */ + reposDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit repository. + * + * @name ReposPartialUpdate + * @request PATCH:/repos/{owner}/{repo} + */ + reposPartialUpdate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List assignees. This call lists all the available assignees (owner + collaborators) to which issues may be assigned. + * + * @name AssigneesDetail + * @request GET:/repos/{owner}/{repo}/assignees + */ + assigneesDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/assignees`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Check assignee. You may also check to see if a particular user is an assignee for a repository. + * + * @name AssigneesDetail2 + * @request GET:/repos/{owner}/{repo}/assignees/{assignee} + * @originalName assigneesDetail + * @duplicate + */ + assigneesDetail2: (owner, repo, assignee, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/assignees/${assignee}`, + method: "GET", + ...params, + }), + /** + * @description Get list of branches + * + * @name BranchesDetail + * @request GET:/repos/{owner}/{repo}/branches + */ + branchesDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/branches`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get Branch + * + * @name BranchesDetail2 + * @request GET:/repos/{owner}/{repo}/branches/{branch} + * @originalName branchesDetail + * @duplicate + */ + branchesDetail2: (owner, repo, branch, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/branches/${branch}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List. When authenticating as an organization owner of an organization-owned repository, all organization owners are included in the list of collaborators. Otherwise, only users with access to the repository are returned in the collaborators list. + * + * @name CollaboratorsDetail + * @request GET:/repos/{owner}/{repo}/collaborators + */ + collaboratorsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/collaborators`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Remove collaborator. + * + * @name CollaboratorsDelete + * @request DELETE:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsDelete: (owner, repo, user, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/collaborators/${user}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if user is a collaborator + * + * @name CollaboratorsDetail2 + * @request GET:/repos/{owner}/{repo}/collaborators/{user} + * @originalName collaboratorsDetail + * @duplicate + */ + collaboratorsDetail2: (owner, repo, user, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/collaborators/${user}`, + method: "GET", + ...params, + }), + /** + * @description Add collaborator. + * + * @name CollaboratorsUpdate + * @request PUT:/repos/{owner}/{repo}/collaborators/{user} + */ + collaboratorsUpdate: (owner, repo, user, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/collaborators/${user}`, + method: "PUT", + ...params, + }), + /** + * @description List commit comments for a repository. Comments are ordered by ascending ID. + * + * @name CommentsDetail + * @request GET:/repos/{owner}/{repo}/comments + */ + commentsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/comments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Delete a commit comment + * + * @name CommentsDelete + * @request DELETE:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsDelete: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/comments/${commentId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single commit comment. + * + * @name CommentsDetail2 + * @request GET:/repos/{owner}/{repo}/comments/{commentId} + * @originalName commentsDetail + * @duplicate + */ + commentsDetail2: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/comments/${commentId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update a commit comment. + * + * @name CommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/comments/{commentId} + */ + commentsPartialUpdate: (owner, repo, commentId, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/comments/${commentId}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description List commits on a repository. + * + * @name CommitsDetail + * @request GET:/repos/{owner}/{repo}/commits + */ + commitsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/commits`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Get the combined Status for a specific Ref The Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details. To access this endpoint during the preview period, you must provide a custom media type in the Accept header: application/vnd.github.she-hulk-preview+json + * + * @name CommitsStatusDetail + * @request GET:/repos/{owner}/{repo}/commits/{ref}/status + */ + commitsStatusDetail: (owner, repo, ref, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/commits/${ref}/status`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get a single commit. + * + * @name CommitsDetail2 + * @request GET:/repos/{owner}/{repo}/commits/{shaCode} + * @originalName commitsDetail + * @duplicate + */ + commitsDetail2: (owner, repo, shaCode, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/commits/${shaCode}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List comments for a single commitList comments for a single commit. + * + * @name CommitsCommentsDetail + * @request GET:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsDetail: (owner, repo, shaCode, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/commits/${shaCode}/comments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a commit comment. + * + * @name CommitsCommentsCreate + * @request POST:/repos/{owner}/{repo}/commits/{shaCode}/comments + */ + commitsCommentsCreate: (owner, repo, shaCode, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/commits/${shaCode}/comments`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Compare two commits + * + * @name CompareDetail + * @request GET:/repos/{owner}/{repo}/compare/{baseId}...{headId} + */ + compareDetail: (owner, repo, baseId, headId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/compare/${baseId}...${headId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Delete a file. This method deletes a file in a repository. + * + * @name ContentsDelete + * @request DELETE:/repos/{owner}/{repo}/contents/{path} + */ + contentsDelete: (owner, repo, path, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/contents/${path}`, + method: "DELETE", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get contents. This method returns the contents of a file or directory in a repository. Files and symlinks support a custom media type for getting the raw content. Directories and submodules do not support custom media types. Note: This API supports files up to 1 megabyte in size. Here can be many outcomes. For details see "http://developer.github.com/v3/repos/contents/" + * + * @name ContentsDetail + * @request GET:/repos/{owner}/{repo}/contents/{path} + */ + contentsDetail: (owner, repo, path, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/contents/${path}`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a file. + * + * @name ContentsUpdate + * @request PUT:/repos/{owner}/{repo}/contents/{path} + */ + contentsUpdate: (owner, repo, path, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/contents/${path}`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get list of contributors. + * + * @name ContributorsDetail + * @request GET:/repos/{owner}/{repo}/contributors + */ + contributorsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/contributors`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Users with pull access can view deployments for a repository + * + * @name DeploymentsDetail + * @request GET:/repos/{owner}/{repo}/deployments + */ + deploymentsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/deployments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Users with push access can create a deployment for a given ref + * + * @name DeploymentsCreate + * @request POST:/repos/{owner}/{repo}/deployments + */ + deploymentsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/deployments`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Users with pull access can view deployment statuses for a deployment + * + * @name DeploymentsStatusesDetail + * @request GET:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesDetail: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/deployments/${id}/statuses`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a Deployment Status Users with push access can create deployment statuses for a given deployment: + * + * @name DeploymentsStatusesCreate + * @request POST:/repos/{owner}/{repo}/deployments/{id}/statuses + */ + deploymentsStatusesCreate: (owner, repo, id, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/deployments/${id}/statuses`, + method: "POST", + body: body, + type: ContentType.Json, + ...params, + }), + /** + * @description Deprecated. List downloads for a repository. + * + * @name DownloadsDetail + * @request GET:/repos/{owner}/{repo}/downloads + */ + downloadsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/downloads`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Deprecated. Delete a download. + * + * @name DownloadsDelete + * @request DELETE:/repos/{owner}/{repo}/downloads/{downloadId} + */ + downloadsDelete: (owner, repo, downloadId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/downloads/${downloadId}`, + method: "DELETE", + ...params, + }), + /** + * @description Deprecated. Get a single download. + * + * @name DownloadsDetail2 + * @request GET:/repos/{owner}/{repo}/downloads/{downloadId} + * @originalName downloadsDetail + * @duplicate + */ + downloadsDetail2: (owner, repo, downloadId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/downloads/${downloadId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get list of repository events. + * + * @name EventsDetail + * @request GET:/repos/{owner}/{repo}/events + */ + eventsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/events`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List forks. + * + * @name ForksDetail + * @request GET:/repos/{owner}/{repo}/forks + */ + forksDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/forks`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a fork. Forking a Repository happens asynchronously. Therefore, you may have to wai a short period before accessing the git objects. If this takes longer than 5 minutes, be sure to contact Support. + * + * @name ForksCreate + * @request POST:/repos/{owner}/{repo}/forks + */ + forksCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/forks`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Create a Blob. + * + * @name GitBlobsCreate + * @request POST:/repos/{owner}/{repo}/git/blobs + */ + gitBlobsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/blobs`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get a Blob. Since blobs can be any arbitrary binary data, the input and responses for the blob API takes an encoding parameter that can be either utf-8 or base64. If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it. + * + * @name GitBlobsDetail + * @request GET:/repos/{owner}/{repo}/git/blobs/{shaCode} + */ + gitBlobsDetail: (owner, repo, shaCode, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/blobs/${shaCode}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a Commit. + * + * @name GitCommitsCreate + * @request POST:/repos/{owner}/{repo}/git/commits + */ + gitCommitsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/commits`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get a Commit. + * + * @name GitCommitsDetail + * @request GET:/repos/{owner}/{repo}/git/commits/{shaCode} + */ + gitCommitsDetail: (owner, repo, shaCode, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/commits/${shaCode}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get all References + * + * @name GitRefsDetail + * @request GET:/repos/{owner}/{repo}/git/refs + */ + gitRefsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/refs`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a Reference + * + * @name GitRefsCreate + * @request POST:/repos/{owner}/{repo}/git/refs + */ + gitRefsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/refs`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Delete a Reference Example: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a Example: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0 + * + * @name GitRefsDelete + * @request DELETE:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsDelete: (owner, repo, ref, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/refs/${ref}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a Reference + * + * @name GitRefsDetail2 + * @request GET:/repos/{owner}/{repo}/git/refs/{ref} + * @originalName gitRefsDetail + * @duplicate + */ + gitRefsDetail2: (owner, repo, ref, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/refs/${ref}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update a Reference + * + * @name GitRefsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/git/refs/{ref} + */ + gitRefsPartialUpdate: (owner, repo, ref, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/refs/${ref}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Create a Tag Object. Note that creating a tag object does not create the reference that makes a tag in Git. If you want to create an annotated tag in Git, you have to do this call to create the tag object, and then create the refs/tags/[tag] reference. If you want to create a lightweight tag, you only have to create the tag reference - this call would be unnecessary. + * + * @name GitTagsCreate + * @request POST:/repos/{owner}/{repo}/git/tags + */ + gitTagsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/tags`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get a Tag. + * + * @name GitTagsDetail + * @request GET:/repos/{owner}/{repo}/git/tags/{shaCode} + */ + gitTagsDetail: (owner, repo, shaCode, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/tags/${shaCode}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a Tree. The tree creation API will take nested entries as well. If both a tree and a nested path modifying that tree are specified, it will overwrite the contents of that tree with the new path contents and write a new tree out. + * + * @name GitTreesCreate + * @request POST:/repos/{owner}/{repo}/git/trees + */ + gitTreesCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/trees`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get a Tree. + * + * @name GitTreesDetail + * @request GET:/repos/{owner}/{repo}/git/trees/{shaCode} + */ + gitTreesDetail: (owner, repo, shaCode, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/git/trees/${shaCode}`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Get list of hooks. + * + * @name HooksDetail + * @request GET:/repos/{owner}/{repo}/hooks + */ + hooksDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a hook. + * + * @name HooksCreate + * @request POST:/repos/{owner}/{repo}/hooks + */ + hooksCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a hook. + * + * @name HooksDelete + * @request DELETE:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksDelete: (owner, repo, hookId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks/${hookId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get single hook. + * + * @name HooksDetail2 + * @request GET:/repos/{owner}/{repo}/hooks/{hookId} + * @originalName hooksDetail + * @duplicate + */ + hooksDetail2: (owner, repo, hookId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks/${hookId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a hook. + * + * @name HooksPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/hooks/{hookId} + */ + hooksPartialUpdate: (owner, repo, hookId, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks/${hookId}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description Test a push hook. This will trigger the hook with the latest push to the current repository if the hook is subscribed to push events. If the hook is not subscribed to push events, the server will respond with 204 but no test POST will be generated. Note: Previously /repos/:owner/:repo/hooks/:id/tes + * + * @name HooksTestsCreate + * @request POST:/repos/{owner}/{repo}/hooks/{hookId}/tests + */ + hooksTestsCreate: (owner, repo, hookId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/hooks/${hookId}/tests`, + method: "POST", + ...params, + }), + /** + * @description List issues for a repository. + * + * @name IssuesDetail + * @request GET:/repos/{owner}/{repo}/issues + */ + issuesDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create an issue. Any user with pull access to a repository can create an issue. + * + * @name IssuesCreate + * @request POST:/repos/{owner}/{repo}/issues + */ + issuesCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description List comments in a repository. + * + * @name IssuesCommentsDetail + * @request GET:/repos/{owner}/{repo}/issues/comments + */ + issuesCommentsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/comments`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Delete a comment. + * + * @name IssuesCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsDelete: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single comment. + * + * @name IssuesCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/comments/{commentId} + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail2: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a comment. + * + * @name IssuesCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/comments/{commentId} + */ + issuesCommentsPartialUpdate: (owner, repo, commentId, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/comments/${commentId}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description List issue events for a repository. + * + * @name IssuesEventsDetail + * @request GET:/repos/{owner}/{repo}/issues/events + */ + issuesEventsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/events`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get a single event. + * + * @name IssuesEventsDetail2 + * @request GET:/repos/{owner}/{repo}/issues/events/{eventId} + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail2: (owner, repo, eventId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/events/${eventId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get a single issue + * + * @name IssuesDetail2 + * @request GET:/repos/{owner}/{repo}/issues/{number} + * @originalName issuesDetail + * @duplicate + */ + issuesDetail2: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit an issue. Issue owners and users with push access can edit an issue. + * + * @name IssuesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/issues/{number} + */ + issuesPartialUpdate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description List comments on an issue. + * + * @name IssuesCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/comments + * @originalName issuesCommentsDetail + * @duplicate + */ + issuesCommentsDetail3: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/comments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a comment. + * + * @name IssuesCommentsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/comments + */ + issuesCommentsCreate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/comments`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description List events for an issue. + * + * @name IssuesEventsDetail3 + * @request GET:/repos/{owner}/{repo}/issues/{number}/events + * @originalName issuesEventsDetail + * @duplicate + */ + issuesEventsDetail3: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/events`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Remove all labels from an issue. + * + * @name IssuesLabelsDelete + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDelete: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/labels`, + method: "DELETE", + ...params, + }), + /** + * @description List labels on an issue. + * + * @name IssuesLabelsDetail + * @request GET:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsDetail: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/labels`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Add labels to an issue. + * + * @name IssuesLabelsCreate + * @request POST:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsCreate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/labels`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Replace all labels for an issue. Sending an empty array ([]) will remove all Labels from the Issue. + * + * @name IssuesLabelsUpdate + * @request PUT:/repos/{owner}/{repo}/issues/{number}/labels + */ + issuesLabelsUpdate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/labels`, + method: "PUT", + body: body, + format: "json", + ...params, + }), + /** + * @description Remove a label from an issue. + * + * @name IssuesLabelsDelete2 + * @request DELETE:/repos/{owner}/{repo}/issues/{number}/labels/{name} + * @originalName issuesLabelsDelete + * @duplicate + */ + issuesLabelsDelete2: (owner, repo, number, name, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/issues/${number}/labels/${name}`, + method: "DELETE", + ...params, + }), + /** + * @description Get list of keys. + * + * @name KeysDetail + * @request GET:/repos/{owner}/{repo}/keys + */ + keysDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/keys`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a key. + * + * @name KeysCreate + * @request POST:/repos/{owner}/{repo}/keys + */ + keysCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/keys`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a key. + * + * @name KeysDelete + * @request DELETE:/repos/{owner}/{repo}/keys/{keyId} + */ + keysDelete: (owner, repo, keyId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/keys/${keyId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a key + * + * @name KeysDetail2 + * @request GET:/repos/{owner}/{repo}/keys/{keyId} + * @originalName keysDetail + * @duplicate + */ + keysDetail2: (owner, repo, keyId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/keys/${keyId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List all labels for this repository. + * + * @name LabelsDetail + * @request GET:/repos/{owner}/{repo}/labels + */ + labelsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/labels`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a label. + * + * @name LabelsCreate + * @request POST:/repos/{owner}/{repo}/labels + */ + labelsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/labels`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a label. + * + * @name LabelsDelete + * @request DELETE:/repos/{owner}/{repo}/labels/{name} + */ + labelsDelete: (owner, repo, name, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/labels/${name}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single label. + * + * @name LabelsDetail2 + * @request GET:/repos/{owner}/{repo}/labels/{name} + * @originalName labelsDetail + * @duplicate + */ + labelsDetail2: (owner, repo, name, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/labels/${name}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update a label. + * + * @name LabelsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/labels/{name} + */ + labelsPartialUpdate: (owner, repo, name, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/labels/${name}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description List languages. List languages for the specified repository. The value on the right of a language is the number of bytes of code written in that language. + * + * @name LanguagesDetail + * @request GET:/repos/{owner}/{repo}/languages + */ + languagesDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/languages`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Perform a merge. + * + * @name MergesCreate + * @request POST:/repos/{owner}/{repo}/merges + */ + mergesCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/merges`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List milestones for a repository. + * + * @name MilestonesDetail + * @request GET:/repos/{owner}/{repo}/milestones + */ + milestonesDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a milestone. + * + * @name MilestonesCreate + * @request POST:/repos/{owner}/{repo}/milestones + */ + milestonesCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a milestone. + * + * @name MilestonesDelete + * @request DELETE:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesDelete: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones/${number}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single milestone. + * + * @name MilestonesDetail2 + * @request GET:/repos/{owner}/{repo}/milestones/{number} + * @originalName milestonesDetail + * @duplicate + */ + milestonesDetail2: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones/${number}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update a milestone. + * + * @name MilestonesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/milestones/{number} + */ + milestonesPartialUpdate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones/${number}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description Get labels for every issue in a milestone. + * + * @name MilestonesLabelsDetail + * @request GET:/repos/{owner}/{repo}/milestones/{number}/labels + */ + milestonesLabelsDetail: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/milestones/${number}/labels`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List your notifications in a repository List all notifications for the current user. + * + * @name NotificationsDetail + * @request GET:/repos/{owner}/{repo}/notifications + */ + notificationsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/notifications`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Mark notifications as read in a repository. Marking all notifications in a repository as "read" removes them from the default view on GitHub.com. + * + * @name NotificationsUpdate + * @request PUT:/repos/{owner}/{repo}/notifications + */ + notificationsUpdate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/notifications`, + method: "PUT", + body: body, + ...params, + }), + /** + * @description List pull requests. + * + * @name PullsDetail + * @request GET:/repos/{owner}/{repo}/pulls + */ + pullsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a pull request. + * + * @name PullsCreate + * @request POST:/repos/{owner}/{repo}/pulls + */ + pullsCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List comments in a repository. By default, Review Comments are ordered by ascending ID. + * + * @name PullsCommentsDetail + * @request GET:/repos/{owner}/{repo}/pulls/comments + */ + pullsCommentsDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/comments`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Delete a comment. + * + * @name PullsCommentsDelete + * @request DELETE:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsDelete: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single comment. + * + * @name PullsCommentsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/comments/{commentId} + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail2: (owner, repo, commentId, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a comment. + * + * @name PullsCommentsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/comments/{commentId} + */ + pullsCommentsPartialUpdate: (owner, repo, commentId, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/comments/${commentId}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description Get a single pull request. + * + * @name PullsDetail2 + * @request GET:/repos/{owner}/{repo}/pulls/{number} + * @originalName pullsDetail + * @duplicate + */ + pullsDetail2: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update a pull request. + * + * @name PullsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/pulls/{number} + */ + pullsPartialUpdate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List comments on a pull request. + * + * @name PullsCommentsDetail3 + * @request GET:/repos/{owner}/{repo}/pulls/{number}/comments + * @originalName pullsCommentsDetail + * @duplicate + */ + pullsCommentsDetail3: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/comments`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a comment. #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ ) description: | Alternative Input. Instead of passing commit_id, path, and position you can reply to an existing Pull Request Comment like this: body Required string in_reply_to Required number - Comment id to reply to. + * + * @name PullsCommentsCreate + * @request POST:/repos/{owner}/{repo}/pulls/{number}/comments + */ + pullsCommentsCreate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/comments`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List commits on a pull request. + * + * @name PullsCommitsDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/commits + */ + pullsCommitsDetail: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/commits`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List pull requests files. + * + * @name PullsFilesDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/files + */ + pullsFilesDetail: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/files`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get if a pull request has been merged. + * + * @name PullsMergeDetail + * @request GET:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeDetail: (owner, repo, number, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/merge`, + method: "GET", + ...params, + }), + /** + * @description Merge a pull request (Merge Button's) + * + * @name PullsMergeUpdate + * @request PUT:/repos/{owner}/{repo}/pulls/{number}/merge + */ + pullsMergeUpdate: (owner, repo, number, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/pulls/${number}/merge`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get the README. This method returns the preferred README for a repository. + * + * @name ReadmeDetail + * @request GET:/repos/{owner}/{repo}/readme + */ + readmeDetail: (owner, repo, query, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/readme`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only + * + * @name ReleasesDetail + * @request GET:/repos/{owner}/{repo}/releases + */ + releasesDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a release Users with push access to the repository can create a release. + * + * @name ReleasesCreate + * @request POST:/repos/{owner}/{repo}/releases + */ + releasesCreate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a release asset + * + * @name ReleasesAssetsDelete + * @request DELETE:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDelete: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/assets/${id}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single release asset + * + * @name ReleasesAssetsDetail + * @request GET:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsDetail: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/assets/${id}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit a release asset Users with push access to the repository can edit a release asset. + * + * @name ReleasesAssetsPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/assets/{id} + */ + releasesAssetsPartialUpdate: (owner, repo, id, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/assets/${id}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Users with push access to the repository can delete a release. + * + * @name ReleasesDelete + * @request DELETE:/repos/{owner}/{repo}/releases/{id} + */ + releasesDelete: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/${id}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single release + * + * @name ReleasesDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id} + * @originalName releasesDetail + * @duplicate + */ + releasesDetail2: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/${id}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Users with push access to the repository can edit a release + * + * @name ReleasesPartialUpdate + * @request PATCH:/repos/{owner}/{repo}/releases/{id} + */ + releasesPartialUpdate: (owner, repo, id, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/${id}`, + method: "PATCH", + body: body, + format: "json", + ...params, + }), + /** + * @description List assets for a release + * + * @name ReleasesAssetsDetail2 + * @request GET:/repos/{owner}/{repo}/releases/{id}/assets + * @originalName releasesAssetsDetail + * @duplicate + */ + releasesAssetsDetail2: (owner, repo, id, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/releases/${id}/assets`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List Stargazers. + * + * @name StargazersDetail + * @request GET:/repos/{owner}/{repo}/stargazers + */ + stargazersDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stargazers`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get the number of additions and deletions per week. Returns a weekly aggregate of the number of additions and deletions pushed to a repository. + * + * @name StatsCodeFrequencyDetail + * @request GET:/repos/{owner}/{repo}/stats/code_frequency + */ + statsCodeFrequencyDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stats/code_frequency`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get the last year of commit activity data. Returns the last year of commit activity grouped by week. The days array is a group of commits per day, starting on Sunday. + * + * @name StatsCommitActivityDetail + * @request GET:/repos/{owner}/{repo}/stats/commit_activity + */ + statsCommitActivityDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stats/commit_activity`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get contributors list with additions, deletions, and commit counts. + * + * @name StatsContributorsDetail + * @request GET:/repos/{owner}/{repo}/stats/contributors + */ + statsContributorsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stats/contributors`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get the weekly commit count for the repo owner and everyone else. + * + * @name StatsParticipationDetail + * @request GET:/repos/{owner}/{repo}/stats/participation + */ + statsParticipationDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stats/participation`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get the number of commits per hour in each day. Each array contains the day number, hour number, and number of commits 0-6 Sunday - Saturday 0-23 Hour of day Number of commits For example, [2, 14, 25] indicates that there were 25 total commits, during the 2.00pm hour on Tuesdays. All times are based on the time zone of individual commits. + * + * @name StatsPunchCardDetail + * @request GET:/repos/{owner}/{repo}/stats/punch_card + */ + statsPunchCardDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/stats/punch_card`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List Statuses for a specific Ref. + * + * @name StatusesDetail + * @request GET:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesDetail: (owner, repo, ref, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/statuses/${ref}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a Status. + * + * @name StatusesCreate + * @request POST:/repos/{owner}/{repo}/statuses/{ref} + */ + statusesCreate: (owner, repo, ref, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/statuses/${ref}`, + method: "POST", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List watchers. + * + * @name SubscribersDetail + * @request GET:/repos/{owner}/{repo}/subscribers + */ + subscribersDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/subscribers`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Delete a Repository Subscription. + * + * @name SubscriptionDelete + * @request DELETE:/repos/{owner}/{repo}/subscription + */ + subscriptionDelete: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/subscription`, + method: "DELETE", + ...params, + }), + /** + * @description Get a Repository Subscription. + * + * @name SubscriptionDetail + * @request GET:/repos/{owner}/{repo}/subscription + */ + subscriptionDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/subscription`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Set a Repository Subscription + * + * @name SubscriptionUpdate + * @request PUT:/repos/{owner}/{repo}/subscription + */ + subscriptionUpdate: (owner, repo, body, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/subscription`, + method: "PUT", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Get list of tags. + * + * @name TagsDetail + * @request GET:/repos/{owner}/{repo}/tags + */ + tagsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/tags`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get list of teams + * + * @name TeamsDetail + * @request GET:/repos/{owner}/{repo}/teams + */ + teamsDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/teams`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List Stargazers. New implementation. + * + * @name WatchersDetail + * @request GET:/repos/{owner}/{repo}/watchers + */ + watchersDetail: (owner, repo, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/watchers`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Get archive link. This method will return a 302 to a URL to download a tarball or zipball archive for a repository. Please make sure your HTTP framework is configured to follow redirects or you will need to use the Location header to make a second GET request. Note: For private repositories, these links are temporary and expire quickly. + * + * @name ReposDetail2 + * @request GET:/repos/{owner}/{repo}/{archive_format}/{path} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: (owner, repo, archiveFormat, path, params = {}) => + this.request({ + path: `/repos/${owner}/${repo}/${archiveFormat}/${path}`, + method: "GET", + ...params, + }), + }; + this.repositories = { + /** + * @description List all public repositories. This provides a dump of every public repository, in the order that they were created. Note: Pagination is powered exclusively by the since parameter. is the Link header to get the URL for the next page of repositories. + * + * @name RepositoriesList + * @request GET:/repositories + */ + repositoriesList: (query, params = {}) => + this.request({ + path: `/repositories`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + this.search = { + /** + * @description Search code. + * + * @name CodeList + * @request GET:/search/code + */ + codeList: (query, params = {}) => + this.request({ + path: `/search/code`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Find issues by state and keyword. (This method returns up to 100 results per page.) + * + * @name IssuesList + * @request GET:/search/issues + */ + issuesList: (query, params = {}) => + this.request({ + path: `/search/issues`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Search repositories. + * + * @name RepositoriesList + * @request GET:/search/repositories + */ + repositoriesList: (query, params = {}) => + this.request({ + path: `/search/repositories`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Search users. + * + * @name UsersList + * @request GET:/search/users + */ + usersList: (query, params = {}) => + this.request({ + path: `/search/users`, + method: "GET", + query: query, + format: "json", + ...params, + }), + }; + this.teams = { + /** + * @description Delete team. In order to delete a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsDelete + * @request DELETE:/teams/{teamId} + */ + teamsDelete: (teamId, params = {}) => + this.request({ + path: `/teams/${teamId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get team. + * + * @name TeamsDetail + * @request GET:/teams/{teamId} + */ + teamsDetail: (teamId, params = {}) => + this.request({ + path: `/teams/${teamId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Edit team. In order to edit a team, the authenticated user must be an owner of the org that the team is associated with. + * + * @name TeamsPartialUpdate + * @request PATCH:/teams/{teamId} + */ + teamsPartialUpdate: (teamId, body, params = {}) => + this.request({ + path: `/teams/${teamId}`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description List team members. In order to list members in a team, the authenticated user must be a member of the team. + * + * @name MembersDetail + * @request GET:/teams/{teamId}/members + */ + membersDetail: (teamId, params = {}) => + this.request({ + path: `/teams/${teamId}/members`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description The "Remove team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships. Remove team member. In order to remove a user from a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. NOTE This does not delete the user, it just remove them from the team. + * + * @name MembersDelete + * @request DELETE:/teams/{teamId}/members/{username} + */ + membersDelete: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/members/${username}`, + method: "DELETE", + ...params, + }), + /** + * @description The "Get team member" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships. Get team member. In order to get if a user is a member of a team, the authenticated user mus be a member of the team. + * + * @name MembersDetail2 + * @request GET:/teams/{teamId}/members/{username} + * @originalName membersDetail + * @duplicate + */ + membersDetail2: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/members/${username}`, + method: "GET", + ...params, + }), + /** + * @description The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams. Add team member. In order to add a user to a team, the authenticated user must have 'admin' permissions to the team or be an owner of the org that the team is associated with. + * + * @name MembersUpdate + * @request PUT:/teams/{teamId}/members/{username} + */ + membersUpdate: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/members/${username}`, + method: "PUT", + ...params, + }), + /** + * @description Remove team membership. In order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team. + * + * @name MembershipsDelete + * @request DELETE:/teams/{teamId}/memberships/{username} + */ + membershipsDelete: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/memberships/${username}`, + method: "DELETE", + ...params, + }), + /** + * @description Get team membership. In order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization. + * + * @name MembershipsDetail + * @request GET:/teams/{teamId}/memberships/{username} + */ + membershipsDetail: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/memberships/${username}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Add team membership. In order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. If the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team. If the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team. + * + * @name MembershipsUpdate + * @request PUT:/teams/{teamId}/memberships/{username} + */ + membershipsUpdate: (teamId, username, params = {}) => + this.request({ + path: `/teams/${teamId}/memberships/${username}`, + method: "PUT", + format: "json", + ...params, + }), + /** + * @description List team repos + * + * @name ReposDetail + * @request GET:/teams/{teamId}/repos + */ + reposDetail: (teamId, params = {}) => + this.request({ + path: `/teams/${teamId}/repos`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team. + * + * @name ReposDelete + * @request DELETE:/teams/{teamId}/repos/{owner}/{repo} + */ + reposDelete: (teamId, owner, repo, params = {}) => + this.request({ + path: `/teams/${teamId}/repos/${owner}/${repo}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if a team manages a repository + * + * @name ReposDetail2 + * @request GET:/teams/{teamId}/repos/{owner}/{repo} + * @originalName reposDetail + * @duplicate + */ + reposDetail2: (teamId, owner, repo, params = {}) => + this.request({ + path: `/teams/${teamId}/repos/${owner}/${repo}`, + method: "GET", + ...params, + }), + /** + * @description In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization. + * + * @name ReposUpdate + * @request PUT:/teams/{teamId}/repos/{owner}/{repo} + */ + reposUpdate: (teamId, owner, repo, params = {}) => + this.request({ + path: `/teams/${teamId}/repos/${owner}/${repo}`, + method: "PUT", + ...params, + }), + }; + this.user = { + /** + * @description Get the authenticated user. + * + * @name UserList + * @request GET:/user + */ + userList: (params = {}) => + this.request({ + path: `/user`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Update the authenticated user. + * + * @name UserPartialUpdate + * @request PATCH:/user + */ + userPartialUpdate: (body, params = {}) => + this.request({ + path: `/user`, + method: "PATCH", + body: body, + type: ContentType.Json, + format: "json", + ...params, + }), + /** + * @description Delete email address(es). You can include a single email address or an array of addresses. + * + * @name EmailsDelete + * @request DELETE:/user/emails + */ + emailsDelete: (body, params = {}) => + this.request({ + path: `/user/emails`, + method: "DELETE", + body: body, + type: ContentType.Json, + ...params, + }), + /** + * @description List email addresses for a user. In the final version of the API, this method will return an array of hashes with extended information for each email address indicating if the address has been verified and if it's primary email address for GitHub. Until API v3 is finalized, use the application/vnd.github.v3 media type to get other response format. + * + * @name EmailsList + * @request GET:/user/emails + */ + emailsList: (params = {}) => + this.request({ + path: `/user/emails`, + method: "GET", + ...params, + }), + /** + * @description Add email address(es). You can post a single email address or an array of addresses. + * + * @name EmailsCreate + * @request POST:/user/emails + */ + emailsCreate: (body, params = {}) => + this.request({ + path: `/user/emails`, + method: "POST", + body: body, + ...params, + }), + /** + * @description List the authenticated user's followers + * + * @name FollowersList + * @request GET:/user/followers + */ + followersList: (params = {}) => + this.request({ + path: `/user/followers`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List who the authenticated user is following. + * + * @name FollowingList + * @request GET:/user/following + */ + followingList: (params = {}) => + this.request({ + path: `/user/following`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Unfollow a user. Unfollowing a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingDelete + * @request DELETE:/user/following/{username} + */ + followingDelete: (username, params = {}) => + this.request({ + path: `/user/following/${username}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if you are following a user. + * + * @name FollowingDetail + * @request GET:/user/following/{username} + */ + followingDetail: (username, params = {}) => + this.request({ + path: `/user/following/${username}`, + method: "GET", + ...params, + }), + /** + * @description Follow a user. Following a user requires the user to be logged in and authenticated with basic auth or OAuth with the user:follow scope. + * + * @name FollowingUpdate + * @request PUT:/user/following/{username} + */ + followingUpdate: (username, params = {}) => + this.request({ + path: `/user/following/${username}`, + method: "PUT", + ...params, + }), + /** + * @description List issues. List all issues across owned and member repositories for the authenticated user. + * + * @name IssuesList + * @request GET:/user/issues + */ + issuesList: (query, params = {}) => + this.request({ + path: `/user/issues`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description List your public keys. Lists the current user's keys. Management of public keys via the API requires that you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes. + * + * @name KeysList + * @request GET:/user/keys + */ + keysList: (params = {}) => + this.request({ + path: `/user/keys`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Create a public key. + * + * @name KeysCreate + * @request POST:/user/keys + */ + keysCreate: (body, params = {}) => + this.request({ + path: `/user/keys`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope. + * + * @name KeysDelete + * @request DELETE:/user/keys/{keyId} + */ + keysDelete: (keyId, params = {}) => + this.request({ + path: `/user/keys/${keyId}`, + method: "DELETE", + ...params, + }), + /** + * @description Get a single public key. + * + * @name KeysDetail + * @request GET:/user/keys/{keyId} + */ + keysDetail: (keyId, params = {}) => + this.request({ + path: `/user/keys/${keyId}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List public and private organizations for the authenticated user. + * + * @name OrgsList + * @request GET:/user/orgs + */ + orgsList: (params = {}) => + this.request({ + path: `/user/orgs`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List repositories for the authenticated user. Note that this does not include repositories owned by organizations which the user can access. You can lis user organizations and list organization repositories separately. + * + * @name ReposList + * @request GET:/user/repos + */ + reposList: (query, params = {}) => + this.request({ + path: `/user/repos`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Create a new repository for the authenticated user. OAuth users must supply repo scope. + * + * @name ReposCreate + * @request POST:/user/repos + */ + reposCreate: (body, params = {}) => + this.request({ + path: `/user/repos`, + method: "POST", + body: body, + format: "json", + ...params, + }), + /** + * @description List repositories being starred by the authenticated user. + * + * @name StarredList + * @request GET:/user/starred + */ + starredList: (query, params = {}) => + this.request({ + path: `/user/starred`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Unstar a repository + * + * @name StarredDelete + * @request DELETE:/user/starred/{owner}/{repo} + */ + starredDelete: (owner, repo, params = {}) => + this.request({ + path: `/user/starred/${owner}/${repo}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if you are starring a repository. + * + * @name StarredDetail + * @request GET:/user/starred/{owner}/{repo} + */ + starredDetail: (owner, repo, params = {}) => + this.request({ + path: `/user/starred/${owner}/${repo}`, + method: "GET", + ...params, + }), + /** + * @description Star a repository. + * + * @name StarredUpdate + * @request PUT:/user/starred/{owner}/{repo} + */ + starredUpdate: (owner, repo, params = {}) => + this.request({ + path: `/user/starred/${owner}/${repo}`, + method: "PUT", + ...params, + }), + /** + * @description List repositories being watched by the authenticated user. + * + * @name SubscriptionsList + * @request GET:/user/subscriptions + */ + subscriptionsList: (params = {}) => + this.request({ + path: `/user/subscriptions`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Stop watching a repository + * + * @name SubscriptionsDelete + * @request DELETE:/user/subscriptions/{owner}/{repo} + */ + subscriptionsDelete: (owner, repo, params = {}) => + this.request({ + path: `/user/subscriptions/${owner}/${repo}`, + method: "DELETE", + ...params, + }), + /** + * @description Check if you are watching a repository. + * + * @name SubscriptionsDetail + * @request GET:/user/subscriptions/{owner}/{repo} + */ + subscriptionsDetail: (owner, repo, params = {}) => + this.request({ + path: `/user/subscriptions/${owner}/${repo}`, + method: "GET", + ...params, + }), + /** + * @description Watch a repository. + * + * @name SubscriptionsUpdate + * @request PUT:/user/subscriptions/{owner}/{repo} + */ + subscriptionsUpdate: (owner, repo, params = {}) => + this.request({ + path: `/user/subscriptions/${owner}/${repo}`, + method: "PUT", + ...params, + }), + /** + * @description List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth. + * + * @name TeamsList + * @request GET:/user/teams + */ + teamsList: (params = {}) => + this.request({ + path: `/user/teams`, + method: "GET", + format: "json", + ...params, + }), + }; + this.users = { + /** + * @description Get all users. This provides a dump of every user, in the order that they signed up for GitHub. Note: Pagination is powered exclusively by the since parameter. Use the Link header to get the URL for the next page of users. + * + * @name UsersList + * @request GET:/users + */ + usersList: (query, params = {}) => + this.request({ + path: `/users`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description Get a single user. + * + * @name UsersDetail + * @request GET:/users/{username} + */ + usersDetail: (username, params = {}) => + this.request({ + path: `/users/${username}`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events. + * + * @name EventsDetail + * @request GET:/users/{username}/events + */ + eventsDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/events`, + method: "GET", + ...params, + }), + /** + * @description This is the user's organization dashboard. You must be authenticated as the user to view this. + * + * @name EventsOrgsDetail + * @request GET:/users/{username}/events/orgs/{org} + */ + eventsOrgsDetail: (username, org, params = {}) => + this.request({ + path: `/users/${username}/events/orgs/${org}`, + method: "GET", + ...params, + }), + /** + * @description List a user's followers + * + * @name FollowersDetail + * @request GET:/users/{username}/followers + */ + followersDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/followers`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description Check if one user follows another. + * + * @name FollowingDetail + * @request GET:/users/{username}/following/{targetUser} + */ + followingDetail: (username, targetUser, params = {}) => + this.request({ + path: `/users/${username}/following/${targetUser}`, + method: "GET", + ...params, + }), + /** + * @description List a users gists. + * + * @name GistsDetail + * @request GET:/users/{username}/gists + */ + gistsDetail: (username, query, params = {}) => + this.request({ + path: `/users/${username}/gists`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description List public keys for a user. Lists the verified public keys for a user. This is accessible by anyone. + * + * @name KeysDetail + * @request GET:/users/{username}/keys + */ + keysDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/keys`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description List all public organizations for a user. + * + * @name OrgsDetail + * @request GET:/users/{username}/orgs + */ + orgsDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/orgs`, + method: "GET", + format: "json", + ...params, + }), + /** + * @description These are events that you'll only see public events. + * + * @name ReceivedEventsDetail + * @request GET:/users/{username}/received_events + */ + receivedEventsDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/received_events`, + method: "GET", + ...params, + }), + /** + * @description List public events that a user has received + * + * @name ReceivedEventsPublicDetail + * @request GET:/users/{username}/received_events/public + */ + receivedEventsPublicDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/received_events/public`, + method: "GET", + ...params, + }), + /** + * @description List public repositories for the specified user. + * + * @name ReposDetail + * @request GET:/users/{username}/repos + */ + reposDetail: (username, query, params = {}) => + this.request({ + path: `/users/${username}/repos`, + method: "GET", + query: query, + format: "json", + ...params, + }), + /** + * @description List repositories being starred by a user. + * + * @name StarredDetail + * @request GET:/users/{username}/starred + */ + starredDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/starred`, + method: "GET", + ...params, + }), + /** + * @description List repositories being watched by a user. + * + * @name SubscriptionsDetail + * @request GET:/users/{username}/subscriptions + */ + subscriptionsDetail: (username, params = {}) => + this.request({ + path: `/users/${username}/subscriptions`, + method: "GET", + ...params, + }), + }; + } +} diff --git a/tests/spec/jsAxios/schema.json b/tests/spec/jsAxios/schema.json new file mode 100644 index 00000000..05dfe7d5 --- /dev/null +++ b/tests/spec/jsAxios/schema.json @@ -0,0 +1,23683 @@ +{ + "swagger": "2.0", + "schemes": ["https"], + "host": "api.github.com", + "basePath": "/", + "info": { + "description": "Powerful collaboration, code review, and code management for open source and private projects.\n", + "termsOfService": "https://help.github.com/articles/github-terms-of-service/#b-api-terms", + "title": "GitHub", + "version": "v3", + "x-apisguru-categories": ["collaboration", "developer_tools"], + "x-logo": { + "url": "https://api.apis.guru/v2/cache/logo/https_twitter.com_github_profile_image.jpeg" + }, + "x-origin": [ + { + "format": "swagger", + "url": "https://raw.githubusercontent.com/APIs-guru/unofficial_openapi_specs/master/github.com/v3/swagger.yaml", + "version": "2.0" + } + ], + "x-preferred": false, + "x-providerName": "github.com", + "x-unofficialSpec": true + }, + "externalDocs": { + "url": "https://developer.github.com/v3/" + }, + "consumes": ["application/json"], + "produces": ["application/json"], + "securityDefinitions": { + "oauth_2_0": { + "authorizationUrl": "https://github.com/login/oauth/authorize", + "description": "OAuth2 is a protocol that lets external apps request authorization to private\ndetails in a user's GitHub account without getting their password. This is\npreferred over Basic Authentication because tokens can be limited to specific\ntypes of data, and can be revoked by users at any time.\n", + "flow": "accessCode", + "scopes": { + "admin:org": "", + "admin:org_hook": "", + "admin:public_key": "", + "admin:repo_hook": "", + "delete_repo": "", + "gist": "", + "notifications": "", + "public_repo": "", + "read:org": "", + "read:public_key": "", + "read:repo_hook": "", + "repo": "", + "repo:status": "", + "repo_deployment": "", + "user": "", + "user:email": "", + "user:follow": "", + "write:org": "", + "write:public_key": "", + "write:repo_hook": "" + }, + "tokenUrl": "https://github.com/login/oauth/access_token", + "type": "oauth2" + } + }, + "paths": { + "/emojis": { + "get": { + "description": "Lists all the emojis available to use on GitHub.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/emojis" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/events": { + "get": { + "description": "List public events.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/feeds": { + "get": { + "description": "List Feeds.\nGitHub provides several timeline resources in Atom format. The Feeds API\n lists all the feeds available to the authenticating user.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/feeds" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists": { + "get": { + "description": "List the authenticated user's gists or if called anonymously, this will\nreturn all public gists.\n", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a gist.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postGist" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/public": { + "get": { + "description": "List all public gists.", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/starred": { + "get": { + "description": "List the authenticated user's starred gists.", + "parameters": [ + { + "description": "Timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ.\nOnly gists updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}": { + "delete": { + "description": "Delete a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/patchGist" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gist" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/comments": { + "get": { + "description": "List comments on a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a commen", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/comment" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/comment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/forks": { + "post": { + "description": "Fork a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gists/{id}/star": { + "delete": { + "description": "Unstar a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a gist is starred.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not exists.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Star a gist.", + "parameters": [ + { + "description": "Id of gist.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Starred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gitignore/templates": { + "get": { + "description": "Listing available templates.\nList all templates available to pass as an option when creating a repository.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/gitignore/templates/{language}": { + "get": { + "description": "Get a single template.", + "parameters": [ + { + "in": "path", + "name": "language", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore-lang" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/issues": { + "get": { + "description": "List issues.\nList all issues across all the authenticated user's visible repositories.\n", + "parameters": [ + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/issues/search/{owner}/{repository}/{state}/{keyword}": { + "get": { + "deprecated": true, + "description": "Find issues by state and keyword.", + "parameters": [ + { + "description": "The search term.", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "description": "Indicates the state of the issues to return. Can be either open or closed.", + "enum": ["open", "closed"], + "in": "path", + "name": "state", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "repository", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-issues-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/repos/search/{keyword}": { + "get": { + "deprecated": true, + "description": "Find repositories by keyword. Note, this legacy method does not follow the v3 pagination pattern. This method returns up to 100 results per page and pages can be fetched using the start_page parameter.", + "parameters": [ + { + "description": "The search term", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "Filter results by language", + "in": "query", + "name": "language", + "type": "string" + }, + { + "description": "The page number to fetch", + "in": "query", + "name": "start_page", + "type": "string" + }, + { + "description": "The sort field. One of stars, forks, or updated. Default: results are sorted by best match.", + "enum": ["updated", "stars", "forks"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-repositories-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/user/email/{email}": { + "get": { + "deprecated": true, + "description": "This API call is added for compatibility reasons only.", + "parameters": [ + { + "description": "The email address", + "in": "path", + "name": "email", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-user-by-email" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/legacy/user/search/{keyword}": { + "get": { + "deprecated": true, + "description": "Find users by keyword.", + "parameters": [ + { + "description": "The search term", + "in": "path", + "name": "keyword", + "required": true, + "type": "string" + }, + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The page number to fetch", + "in": "query", + "name": "start_page", + "type": "string" + }, + { + "description": "The sort field. One of stars, forks, or updated. Default: results are sorted by best match.", + "enum": ["updated", "stars", "forks"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-users-by-keyword" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/markdown": { + "post": { + "description": "Render an arbitrary Markdown document", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/markdown" + } + } + ], + "produces": ["text/html"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/markdown/raw": { + "post": { + "consumes": ["text/plain"], + "description": "Render a Markdown document in raw mode", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "produces": ["text/html"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/meta": { + "get": { + "description": "This gives some information about GitHub.com, the service.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/meta" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/networks/{owner}/{repo}/events": { + "get": { + "description": "List public events for a network of repositories.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications": { + "get": { + "description": "List your notifications.\nList all notifications for the current user, grouped by repository.\n", + "parameters": [ + { + "description": "True to show notifications marked as read.", + "in": "query", + "name": "all", + "type": "boolean" + }, + { + "description": "True to show only notifications in which the user is directly participating\nor mentioned.\n", + "in": "query", + "name": "participating", + "type": "boolean" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Mark as read.\nMarking a notification as \"read\" removes it from the default view on GitHub.com.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/notificationMarkRead" + } + } + ], + "responses": { + "205": { + "description": "Marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications/threads/{id}": { + "get": { + "description": "View a single thread.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Mark a thread as read", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "205": { + "description": "Thread marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/notifications/threads/{id}/subscription": { + "delete": { + "description": "Delete a Thread Subscription.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Thread Subscription.", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Set a Thread Subscription.\nThis lets you subscribe to a thread, or ignore it. Subscribing to a thread\nis unnecessary if the user is already subscribed to the repository. Ignoring\na thread will mute all future notifications (until you comment or get @mentioned).\n", + "parameters": [ + { + "description": "Id of thread.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/putSubscription" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}": { + "get": { + "description": "Get an Organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organization" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit an Organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/patchOrg" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organization" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/events": { + "get": { + "description": "List public events for an organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/issues": { + "get": { + "description": "List issues.\nList all issues for a given organization for the authenticated user.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/members": { + "get": { + "description": "Members list.\nList all users who are members of an organization. A member is a user tha\nbelongs to at least 1 team in the organization. If the authenticated user\nis also an owner of this organization then both concealed and public members\nwill be returned. If the requester is not an owner of the organization the\nquery will be redirected to the public members list.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "302": { + "description": "Response if requester is not an organization member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/members/{username}": { + "delete": { + "description": "Remove a member.\nRemoving a user from this list will remove them from all teams and they\nwill no longer have any access to the organization's repositories.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a user is, publicly or privately, a member of the organization.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content. Response if requester is an organization member and user is a member\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "302": { + "description": "Found. Response if requester is not an organization member\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Not Found.\na. Response if requester is an organization member and user is not a member\nb. Response if requester is not an organization member and is inquiring about themselves\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/public_members": { + "get": { + "description": "Public members list.\nMembers of an organization can choose to have their membership publicized\nor not.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/public_members/{username}": { + "delete": { + "description": "Conceal a user's membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Concealed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check public membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a public member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a public member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Publicize a user's membership.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Name of the user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Publicized.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/repos": { + "get": { + "description": "List repositories for the specified org.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a new repository for the authenticated user. OAuth users must supply\nrepo scope.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/orgs/{org}/teams": { + "get": { + "description": "List teams.", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create team.\nIn order to create a team, the authenticated user must be an owner of organization.\n", + "parameters": [ + { + "description": "Name of organisation.", + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/orgTeamsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/rate_limit": { + "get": { + "description": "Get your current rate limit status\nNote: Accessing this endpoint does not count against your rate limit.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/rate_limit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}": { + "delete": { + "description": "Delete a Repository.\nDeleting a repository requires admin access. If OAuth is used, the delete_repo\nscope is required.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/repoEdit" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/assignees": { + "get": { + "description": "List assignees.\nThis call lists all the available assignees (owner + collaborators) to which\nissues may be assigned.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/assignees" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/assignees/{assignee}": { + "get": { + "description": "Check assignee.\nYou may also check to see if a particular user is an assignee for a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the assignee.", + "in": "path", + "name": "assignee", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is an assignee.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User isn't an assignee.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/branches": { + "get": { + "description": "Get list of branches", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/branches" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/branches/{branch}": { + "get": { + "description": "Get Branch", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the branch.", + "in": "path", + "name": "branch", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/branch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/collaborators": { + "get": { + "description": "List.\nWhen authenticating as an organization owner of an organization-owned\nrepository, all organization owners are included in the list of\ncollaborators. Otherwise, only users with access to the repository are\nreturned in the collaborators list.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/collaborators/{user}": { + "delete": { + "description": "Remove collaborator.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Collaborator removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if user is a collaborator", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a collaborator.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a collaborator.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Add collaborator.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Login of the user.", + "in": "path", + "name": "user", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Collaborator added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/comments": { + "get": { + "description": "List commit comments for a repository.\nComments are ordered by ascending ID.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/comments/{commentId}": { + "delete": { + "description": "Delete a commit comment", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits": { + "get": { + "description": "List commits on a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Sha or branch to start listing commits from.", + "in": "query", + "name": "sha", + "type": "string" + }, + { + "description": "Only commits containing this file path will be returned.", + "in": "query", + "name": "path", + "type": "string" + }, + { + "description": "GitHub login, name, or email by which to filter by commit author.", + "in": "query", + "name": "author", + "type": "string" + }, + { + "description": "ISO 8601 Date - Only commits before this date will be returned.", + "in": "query", + "name": "until", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{ref}/status": { + "get": { + "description": "Get the combined Status for a specific Ref\nThe Combined status endpoint is currently available for developers to preview. During the preview period, the API may change without advance notice. Please see the blog post for full details.\nTo access this endpoint during the preview period, you must provide a custom media type in the Accept header:\napplication/vnd.github.she-hulk-preview+json\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/refStatus" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{shaCode}": { + "get": { + "description": "Get a single commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/commits/{shaCode}/comments": { + "get": { + "description": "List comments for a single commitList comments for a single commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a commit comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code of the commit.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commitCommentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/compare/{baseId}...{headId}": { + "get": { + "description": "Compare two commits", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "baseId", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "headId", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/compare-commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/contents/{path}": { + "delete": { + "description": "Delete a file.\nThis method deletes a file in a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deleteFileBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deleteFile" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get contents.\nThis method returns the contents of a file or directory in a repository.\nFiles and symlinks support a custom media type for getting the raw content.\nDirectories and submodules do not support custom media types.\nNote: This API supports files up to 1 megabyte in size.\nHere can be many outcomes. For details see \"http://developer.github.com/v3/repos/contents/\"\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "The content path.", + "in": "query", + "name": "path", + "type": "string" + }, + { + "description": "The String name of the Commit/Branch/Tag. Defaults to 'master'.", + "in": "query", + "name": "ref", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contents-path" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Create a file.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/createFileBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/createFile" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/contributors": { + "get": { + "description": "Get list of contributors.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Set to 1 or true to include anonymous contributors in results.", + "in": "query", + "name": "anon", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/deployments": { + "get": { + "description": "Users with pull access can view deployments for a repository", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo-deployments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Users with push access can create a deployment for a given ref", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deployment" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deployment-resp" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/deployments/{id}/statuses": { + "get": { + "description": "Users with pull access can view deployment statuses for a deployment", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The Deployment ID to list the statuses from.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/deployment-statuses" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Deployment Status\nUsers with push access can create deployment statuses for a given deployment:\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The Deployment ID to list the statuses from.", + "in": "path", + "name": "id", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/deployment-statuses-create" + } + } + ], + "responses": { + "201": { + "description": "ok", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/downloads": { + "get": { + "deprecated": true, + "description": "Deprecated. List downloads for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/downloads" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/downloads/{downloadId}": { + "delete": { + "deprecated": true, + "description": "Deprecated. Delete a download.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of download.", + "in": "path", + "name": "downloadId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "Deprecated. Get a single download.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of download.", + "in": "path", + "name": "downloadId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/download" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/events": { + "get": { + "description": "Get list of repository events.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/events" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/forks": { + "get": { + "description": "List forks.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "newes", + "enum": ["newes", "oldes", "watchers"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/forks" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a fork.\nForking a Repository happens asynchronously. Therefore, you may have to wai\na short period before accessing the git objects. If this takes longer than 5\nminutes, be sure to contact Support.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/forkBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/blobs": { + "post": { + "description": "Create a Blob.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/blob" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/blobs" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/blobs/{shaCode}": { + "get": { + "description": "Get a Blob.\nSince blobs can be any arbitrary binary data, the input and responses for\nthe blob API takes an encoding parameter that can be either utf-8 or\nbase64. If your data cannot be losslessly sent as a UTF-8 string, you can\nbase64 encode it.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/blob" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/commits": { + "post": { + "description": "Create a Commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/repoCommitBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitCommit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/commits/{shaCode}": { + "get": { + "description": "Get a Commit.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "SHA-1 code.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repoCommit" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/refs": { + "get": { + "description": "Get all References", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/refs" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/refsBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/refs/{ref}": { + "delete": { + "description": "Delete a Reference\nExample: Deleting a branch: DELETE /repos/octocat/Hello-World/git/refs/heads/feature-a\nExample: Deleting a tag: DELETE /repos/octocat/Hello-World/git/refs/tags/v1.0\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a Reference", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/gitRefPatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/headBranch" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/tags": { + "post": { + "description": "Create a Tag Object.\nNote that creating a tag object does not create the reference that makes a\ntag in Git. If you want to create an annotated tag in Git, you have to do\nthis call to create the tag object, and then create the refs/tags/[tag]\nreference. If you want to create a lightweight tag, you only have to create\nthe tag reference - this call would be unnecessary.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/tagBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tag" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/tags/{shaCode}": { + "get": { + "description": "Get a Tag.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tag" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/trees": { + "post": { + "description": "Create a Tree.\nThe tree creation API will take nested entries as well. If both a tree and\na nested path modifying that tree are specified, it will overwrite the\ncontents of that tree with the new path contents and write a new tree out.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/tree" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/trees" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/git/trees/{shaCode}": { + "get": { + "description": "Get a Tree.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Tree SHA.", + "in": "path", + "name": "shaCode", + "required": true, + "type": "string" + }, + { + "description": "Get a Tree Recursively. (0 or 1)", + "in": "query", + "name": "recursive", + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tree" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks": { + "get": { + "description": "Get list of hooks.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/hookBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks/{hookId}": { + "delete": { + "description": "Delete a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get single hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a hook.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/hookBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/hook" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/hooks/{hookId}/tests": { + "post": { + "description": "Test a push hook.\nThis will trigger the hook with the latest push to the current repository\nif the hook is subscribed to push events. If the hook is not subscribed\nto push events, the server will respond with 204 but no test POST will\nbe generated.\nNote: Previously /repos/:owner/:repo/hooks/:id/tes\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of hook.", + "in": "path", + "name": "hookId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Hook is triggered.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues": { + "get": { + "description": "List issues for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create an issue.\nAny user with pull access to a repository can create an issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/issue" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/comments": { + "get": { + "description": "List comments in a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "ID of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/events": { + "get": { + "description": "List issue events for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvents" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/events/{eventId}": { + "get": { + "description": "Get a single event.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of the event.", + "in": "path", + "name": "eventId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvent" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}": { + "get": { + "description": "Get a single issue", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit an issue.\nIssue owners and users with push access can edit an issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/issue" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issue" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/comments": { + "get": { + "description": "List comments on an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/events": { + "get": { + "description": "List events for an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issueEvents" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/labels": { + "delete": { + "description": "Remove all labels from an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "List labels on an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Add labels to an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Replace all labels for an issue.\nSending an empty array ([]) will remove all Labels from the Issue.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/issues/{number}/labels/{name}": { + "delete": { + "description": "Remove a label from an issue.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of issue.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Item removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/keys": { + "get": { + "description": "Get list of keys.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/keys" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a key.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-keys-post" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/keys/{keyId}": { + "delete": { + "description": "Delete a key.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a key", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/labels": { + "get": { + "description": "List all labels for this repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/labels/{name}": { + "delete": { + "description": "Delete a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a label.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Name of the label.", + "in": "path", + "name": "name", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/label" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/languages": { + "get": { + "description": "List languages.\nList languages for the specified repository. The value on the right of a\nlanguage is the number of bytes of code written in that language.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/languages" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/merges": { + "post": { + "description": "Perform a merge.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/mergesBody" + } + } + ], + "responses": { + "201": { + "description": "Successful Response (The resulting merge commit)", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesSuccessful" + } + }, + "204": { + "description": "No-op response (base already contains the head, nothing to merge)", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Missing base response or missing head response", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesConflict" + } + }, + "409": { + "description": "Merge conflict response.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/mergesConflict" + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones": { + "get": { + "description": "List milestones for a repository.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "open", + "description": "String to filter by state.", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "default": "due_date", + "description": "", + "enum": ["due_date", "completeness"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/milestoneUpdate" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones/{number}": { + "delete": { + "description": "Delete a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/milestoneUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/milestone" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/milestones/{number}/labels": { + "get": { + "description": "Get labels for every issue in a milestone.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Number of milestone.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/labels" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/notifications": { + "get": { + "description": "List your notifications in a repository\nList all notifications for the current user.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "True to show notifications marked as read.", + "in": "query", + "name": "all", + "type": "boolean" + }, + { + "description": "True to show only notifications in which the user is directly participating\nor mentioned.\n", + "in": "query", + "name": "participating", + "type": "boolean" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/notifications" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Mark notifications as read in a repository.\nMarking all notifications in a repository as \"read\" removes them from the\ndefault view on GitHub.com.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/notificationMarkRead" + } + } + ], + "responses": { + "205": { + "description": "Marked as read.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls": { + "get": { + "description": "List pull requests.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "default": "open", + "description": "String to filter by state.", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "type": "string" + }, + { + "description": "Filter pulls by head user and branch name in the format of 'user:ref-name'.\nExample: github:new-script-format.\n", + "in": "query", + "name": "head", + "type": "string" + }, + { + "description": "Filter pulls by base branch name. Example - gh-pages.", + "in": "query", + "name": "base", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullsPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/comments": { + "get": { + "description": "List comments in a repository.\nBy default, Review Comments are ordered by ascending ID.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issuesComments" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/comments/{commentId}": { + "delete": { + "description": "Delete a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a comment.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of comment.", + "in": "path", + "name": "commentId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/commentBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}": { + "get": { + "description": "Get a single pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullRequest" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullUpdate" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repo" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/comments": { + "get": { + "description": "List comments on a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a comment.\n #TODO Alternative input ( http://developer.github.com/v3/pulls/comments/ )\n description: |\n Alternative Input.\n Instead of passing commit_id, path, and position you can reply to an\n existing Pull Request Comment like this:\n\n body\n Required string\n in_reply_to\n Required number - Comment id to reply to.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/pullsCommentPost" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pullsComment" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/commits": { + "get": { + "description": "List commits on a pull request.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commits" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/files": { + "get": { + "description": "List pull requests files.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/pulls" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/pulls/{number}/merge": { + "get": { + "description": "Get if a pull request has been merged.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Pull request has been merged.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Pull request has not been merged.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Merge a pull request (Merge Button's)", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Id of pull.", + "in": "path", + "name": "number", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/mergePullBody" + } + } + ], + "responses": { + "200": { + "description": "Response if merge was successful.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/merge" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "405": { + "description": "Response if merge cannot be performed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/merge" + } + } + } + } + }, + "/repos/{owner}/{repo}/readme": { + "get": { + "description": "Get the README.\nThis method returns the preferred README for a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "The String name of the Commit/Branch/Tag. Defaults to master.", + "in": "query", + "name": "ref", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contents-path" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases": { + "get": { + "description": "Users with push access to the repository will receive all releases (i.e., published releases and draft releases). Users with pull access will receive published releases only", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/releases" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a release\nUsers with push access to the repository can create a release.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/release-create" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/assets/{id}": { + "delete": { + "description": "Delete a release asset", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single release asset", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/asset" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit a release asset\nUsers with push access to the repository can edit a release asset.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/assetPatch" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/asset" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/{id}": { + "delete": { + "description": "Users with push access to the repository can delete a release.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No Content", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Users with push access to the repository can edit a release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/release-create" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/release" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/releases/{id}/assets": { + "get": { + "description": "List assets for a release", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "id", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/assets" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stargazers": { + "get": { + "description": "List Stargazers.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/code_frequency": { + "get": { + "description": "Get the number of additions and deletions per week.\nReturns a weekly aggregate of the number of additions and deletions pushed\nto a repository.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/codeFrequencyStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/commit_activity": { + "get": { + "description": "Get the last year of commit activity data.\nReturns the last year of commit activity grouped by week. The days array\nis a group of commits per day, starting on Sunday.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/commitActivityStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/contributors": { + "get": { + "description": "Get contributors list with additions, deletions, and commit counts.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/contributorsStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/participation": { + "get": { + "description": "Get the weekly commit count for the repo owner and everyone else.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/participationStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/stats/punch_card": { + "get": { + "description": "Get the number of commits per hour in each day.\nEach array contains the day number, hour number, and number of commits\n0-6 Sunday - Saturday\n0-23 Hour of day\nNumber of commits\n\nFor example, [2, 14, 25] indicates that there were 25 total commits, during\nthe 2.00pm hour on Tuesdays. All times are based on the time zone of\nindividual commits.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/codeFrequencyStats" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/statuses/{ref}": { + "get": { + "description": "List Statuses for a specific Ref.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.\n", + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/ref" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a Status.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Ref to list the statuses from. It can be a SHA, a branch name, or a tag name.\n", + "in": "path", + "name": "ref", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/headBranch" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/ref" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/subscribers": { + "get": { + "description": "List watchers.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/subscription": { + "delete": { + "description": "Delete a Repository Subscription.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a Repository Subscription.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Set a Repository Subscription", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/subscriptionBody" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/subscription" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/tags": { + "get": { + "description": "Get list of tags.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/tags" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/teams": { + "get": { + "description": "Get list of teams", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/watchers": { + "get": { + "description": "List Stargazers. New implementation.", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repos/{owner}/{repo}/{archive_format}/{path}": { + "get": { + "description": "Get archive link.\nThis method will return a 302 to a URL to download a tarball or zipball\narchive for a repository. Please make sure your HTTP framework is\nconfigured to follow redirects or you will need to use the Location header\nto make a second GET request.\nNote: For private repositories, these links are temporary and expire quickly.\n", + "parameters": [ + { + "description": "Name of repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "enum": ["tarball", "zipball"], + "in": "path", + "name": "archive_format", + "required": true, + "type": "string" + }, + { + "description": "Valid Git reference, defaults to 'master'.", + "in": "path", + "name": "path", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "302": { + "description": "Found.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/repositories": { + "get": { + "description": "List all public repositories.\nThis provides a dump of every public repository, in the order that they\nwere created.\nNote: Pagination is powered exclusively by the since parameter. is the\nLink header to get the URL for the next page of repositories.\n", + "parameters": [ + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/code": { + "get": { + "description": "Search code.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported code\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier\nyou can restrict the search to just the file contents, the file path,\nor both.\n'Languages' Searches code based on the language it's written in.\n'Forks' Filters repositories based on the number of forks, and/or\nwhether code from forked repositories should be included in the results\nat all.\n'Size' Finds files that match a certain size (in bytes).\n'Path' Specifies the path that the resulting file must be at.\n'Extension' Matches files with a certain extension.\n'Users' or 'Repositories' Limits searches to a specific user or repository.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "Can only be 'indexed', which indicates how recently a file has been indexed\nby the GitHub search infrastructure. If not provided, results are sorted\nby best match.\n", + "enum": ["indexed"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-code" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/issues": { + "get": { + "description": "Find issues by state and keyword. (This method returns up to 100 results per page.)", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The q search term can also contain any combination of the supported issue search qualifiers:", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "The sort field. Can be comments, created, or updated. Default: results are sorted by best match.", + "enum": ["updated", "created", "comments"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/repositories": { + "get": { + "description": "Search repositories.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported repository\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier you\ncan restrict the search to just the repository name, description, readme,\nor any combination of these.\n'Size' Finds repositories that match a certain size (in kilobytes).\n'Forks' Filters repositories based on the number of forks, and/or whether\nforked repositories should be included in the results at all.\n'Created' and 'Last Updated' Filters repositories based on times of\ncreation, or when they were last updated.\n'Users or Repositories' Limits searches to a specific user or repository.\n'Languages' Searches repositories based on the language they are written in.\n'Stars' Searches repositories based on the number of stars.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "If not provided, results are sorted by best match.", + "enum": ["stars", "forks", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-repositories" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/search/users": { + "get": { + "description": "Search users.", + "parameters": [ + { + "default": "desc", + "description": "The sort field. if sort param is provided. Can be either asc or desc.", + "enum": ["desc", "asc"], + "in": "query", + "name": "order", + "type": "string" + }, + { + "description": "The search terms. This can be any combination of the supported user\nsearch parameters:\n'Search In' Qualifies which fields are searched. With this qualifier you\ncan restrict the search to just the username, public email, full name,\nlocation, or any combination of these.\n'Repository count' Filters users based on the number of repositories they\nhave.\n'Location' Filter users by the location indicated in their profile.\n'Language' Search for users that have repositories that match a certain\nlanguage.\n'Created' Filter users based on when they joined.\n'Followers' Filter users based on the number of followers they have.\n", + "in": "query", + "name": "q", + "required": true, + "type": "string" + }, + { + "description": "If not provided, results are sorted by best match.", + "enum": ["followers", "repositories", "joined"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/search-users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}": { + "delete": { + "description": "Delete team.\nIn order to delete a team, the authenticated user must be an owner of the\norg that the team is associated with.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get team.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Edit team.\nIn order to edit a team, the authenticated user must be an owner of the org\nthat the team is associated with.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/editTeam" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/team" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/members": { + "get": { + "description": "List team members.\nIn order to list members in a team, the authenticated user must be a member\nof the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/members/{username}": { + "delete": { + "deprecated": true, + "description": "The \"Remove team member\" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Remove team membership API instead. It allows you to remove both active and pending memberships.\n\nRemove team member.\nIn order to remove a user from a team, the authenticated user must have 'admin'\npermissions to the team or be an owner of the org that the team is associated\nwith.\nNOTE This does not delete the user, it just remove them from the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "The \"Get team member\" API is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Get team membership API instead. It allows you to get both active and pending memberships.\n\nGet team member.\nIn order to get if a user is a member of a team, the authenticated user mus\nbe a member of the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User is a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User is not a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "deprecated": true, + "description": "The API (described below) is deprecated and is scheduled for removal in the next major version of the API. We recommend using the Add team membership API instead. It allows you to invite new organization members to your teams.\n\nAdd team member.\nIn order to add a user to a team, the authenticated user must have 'admin'\npermissions to the team or be an owner of the org that the team is associated\nwith.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "422": { + "description": "If you attempt to add an organization to a team, you will get this.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organizationAsTeamMember" + } + } + } + } + }, + "/teams/{teamId}/memberships/{username}": { + "delete": { + "description": "Remove team membership.\nIn order to remove a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with. NOTE: This does not delete the user, it just removes their membership from the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Team member removed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get team membership.\nIn order to get a user's membership with a team, the authenticated user must be a member of the team or an owner of the team's organization.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "User is a member.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamMembership" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "User has no membership with team", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Add team membership.\nIn order to add a membership between a user and a team, the authenticated user must have 'admin' permissions to the team or be an owner of the organization that the team is associated with.\n\nIf the user is already a part of the team's organization (meaning they're on at least one other team in the organization), this endpoint will add the user to the team.\n\nIf the user is completely unaffiliated with the team's organization (meaning they're on none of the organization's teams), this endpoint will send an invitation to the user via email. This newly-created membership will be in the 'pending' state until the user accepts the invitation, at which point the membership will transition to the 'active' state and the user will be added as a member of the team.\n", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a member.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Team member added.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamMembership" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "422": { + "description": "If you attempt to add an organization to a team, you will get this.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/organizationAsTeamMember" + } + } + } + } + }, + "/teams/{teamId}/repos": { + "get": { + "description": "List team repos", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teamRepos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/teams/{teamId}/repos/{owner}/{repo}": { + "delete": { + "description": "In order to remove a repository from a team, the authenticated user must be an owner of the org that the team is associated with. NOTE: This does not delete the repository, it just removes it from the team.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if a team manages a repository", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "In order to add a repository to a team, the authenticated user must be an owner of the org that the team is associated with. Also, the repository must be owned by the organization, or a direct fork of a repository owned by the organization.", + "parameters": [ + { + "description": "Id of team.", + "in": "path", + "name": "teamId", + "required": true, + "type": "integer" + }, + { + "description": "Name of a organization.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user": { + "get": { + "description": "Get the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "patch": { + "description": "Update the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-update" + } + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/emails": { + "delete": { + "description": "Delete email address(es).\nYou can include a single email address or an array of addresses.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-emails" + } + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "List email addresses for a user.\nIn the final version of the API, this method will return an array of hashes\nwith extended information for each email address indicating if the address\nhas been verified and if it's primary email address for GitHub.\nUntil API v3 is finalized, use the application/vnd.github.v3 media type to\nget other response format.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "produces": ["application/vnd.github.v3"], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-emails" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Add email address(es).\nYou can post a single email address or an array of addresses.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/emailsPost" + } + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/followers": { + "get": { + "description": "List the authenticated user's followers", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/following": { + "get": { + "description": "List who the authenticated user is following.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/following/{username}": { + "delete": { + "description": "Unfollow a user.\nUnfollowing a user requires the user to be logged in and authenticated with\nbasic auth or OAuth with the user:follow scope.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "User unfollowed.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if you are following a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Response if you are following this user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Response if you are not following this user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Follow a user.\nFollowing a user requires the user to be logged in and authenticated with\nbasic auth or OAuth with the user:follow scope.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "You are now following the user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/issues": { + "get": { + "description": "List issues.\nList all issues across owned and member repositories for the authenticated\nuser.\n", + "parameters": [ + { + "default": "all", + "description": "Issues assigned to you / created by you / mentioning you / you're\nsubscribed to updates for / All issues the authenticated user can see\n", + "enum": ["assigned", "created", "mentioned", "subscribed", "all"], + "in": "query", + "name": "filter", + "required": true, + "type": "string" + }, + { + "default": "open", + "enum": ["open", "closed"], + "in": "query", + "name": "state", + "required": true, + "type": "string" + }, + { + "description": "String list of comma separated Label names. Example - bug,ui,@high.", + "in": "query", + "name": "labels", + "required": true, + "type": "string" + }, + { + "default": "created", + "enum": ["created", "updated", "comments"], + "in": "query", + "name": "sort", + "required": true, + "type": "string" + }, + { + "default": "desc", + "enum": ["asc", "desc"], + "in": "query", + "name": "direction", + "required": true, + "type": "string" + }, + { + "description": "Optional string of a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nOnly issues updated at or after this time are returned.\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/issues" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/keys": { + "get": { + "description": "List your public keys.\nLists the current user's keys. Management of public keys via the API requires\nthat you are authenticated through basic auth, or OAuth with the 'user', 'write:public_key' scopes.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a public key.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/user-keys-post" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/keys/{keyId}": { + "delete": { + "description": "Delete a public key. Removes a public key. Requires that you are authenticated via Basic Auth or via OAuth with at least admin:public_key scope.", + "parameters": [ + { + "description": "ID of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "No content.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Get a single public key.", + "parameters": [ + { + "description": "ID of key.", + "in": "path", + "name": "keyId", + "required": true, + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user-keys-keyId" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/orgs": { + "get": { + "description": "List public and private organizations for the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/repos": { + "get": { + "description": "List repositories for the authenticated user. Note that this does not include\nrepositories owned by organizations which the user can access. You can lis\nuser organizations and list organization repositories separately.\n", + "parameters": [ + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "post": { + "description": "Create a new repository for the authenticated user. OAuth users must supply\nrepo scope.\n", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + }, + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/postRepo" + } + } + ], + "responses": { + "201": { + "description": "Created", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/starred": { + "get": { + "description": "List repositories being starred by the authenticated user.", + "parameters": [ + { + "description": "Ignored without 'sort' parameter.", + "in": "query", + "name": "direction", + "type": "string" + }, + { + "default": "created", + "description": "", + "enum": ["created", "updated"], + "in": "query", + "name": "sort", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/starred/{owner}/{repo}": { + "delete": { + "description": "Unstar a repository", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Unstarred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "description": "Check if you are starring a repository.", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "This repository is starred by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "This repository is not starred by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "description": "Star a repository.", + "parameters": [ + { + "description": "Name of a repository owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of a repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository starred.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/subscriptions": { + "get": { + "description": "List repositories being watched by the authenticated user.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/subscriptions/{owner}/{repo}": { + "delete": { + "deprecated": true, + "description": "Stop watching a repository", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Unwatched.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "get": { + "deprecated": true, + "description": "Check if you are watching a repository.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository is watched by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Repository is not watched by you.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + }, + "put": { + "deprecated": true, + "description": "Watch a repository.", + "parameters": [ + { + "description": "Name of the owner.", + "in": "path", + "name": "owner", + "required": true, + "type": "string" + }, + { + "description": "Name of repository.", + "in": "path", + "name": "repo", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Repository is watched.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/user/teams": { + "get": { + "description": "List all of the teams across all of the organizations to which the authenticated user belongs. This method requires user or repo scope when authenticating via OAuth.", + "parameters": [ + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/teams-list" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users": { + "get": { + "description": "Get all users.\nThis provides a dump of every user, in the order that they signed up for GitHub.\nNote: Pagination is powered exclusively by the since parameter. Use the Link\nheader to get the URL for the next page of users.\n", + "parameters": [ + { + "description": "The integer ID of the last user that you've seen.", + "in": "query", + "name": "since", + "type": "integer" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}": { + "get": { + "description": "Get a single user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/user" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/events": { + "get": { + "description": "If you are authenticated as the given user, you will see your private events. Otherwise, you'll only see public events.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/events/orgs/{org}": { + "get": { + "description": "This is the user's organization dashboard. You must be authenticated as the user to view this.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "in": "path", + "name": "org", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/followers": { + "get": { + "description": "List a user's followers", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/users" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/following/{targetUser}": { + "get": { + "description": "Check if one user follows another.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Name of user.", + "in": "path", + "name": "targetUser", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "204": { + "description": "Response if user follows target user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + }, + "404": { + "description": "Response if user does not follow target user.", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/gists": { + "get": { + "description": "List a users gists.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "The time should be passed in as UTC in the ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.\nExample: \"2012-10-09T23:39:01Z\".\n", + "in": "query", + "name": "since", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gists" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/keys": { + "get": { + "description": "List public keys for a user.\nLists the verified public keys for a user. This is accessible by anyone.\n", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/orgs": { + "get": { + "description": "List all public organizations for a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/gitignore" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/received_events": { + "get": { + "description": "These are events that you'll only see public events.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/received_events/public": { + "get": { + "description": "List public events that a user has received", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/repos": { + "get": { + "description": "List public repositories for the specified user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "default": "all", + "enum": ["all", "public", "private", "forks", "sources", "member"], + "in": "query", + "name": "type", + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + }, + "schema": { + "$ref": "#/definitions/repos" + } + }, + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/starred": { + "get": { + "description": "List repositories being starred by a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + }, + "/users/{username}/subscriptions": { + "get": { + "description": "List repositories being watched by a user.", + "parameters": [ + { + "description": "Name of user.", + "in": "path", + "name": "username", + "required": true, + "type": "string" + }, + { + "description": "Is used to set specified media type.", + "in": "header", + "name": "Accept", + "type": "string" + } + ], + "responses": { + "403": { + "description": "API rate limit exceeded. See http://developer.github.com/v3/#rate-limiting\nfor details.\n", + "headers": { + "X-GitHub-Media-Type": { + "description": "You can check the current version of media type in responses.\n", + "type": "string" + }, + "X-GitHub-Request-Id": { + "type": "integer" + }, + "X-RateLimit-Limit": { + "type": "integer" + }, + "X-RateLimit-Remaining": { + "type": "integer" + }, + "X-RateLimit-Reset": { + "type": "integer" + } + } + } + } + } + } + }, + "definitions": { + "actor": { + "description": "A user or organization", + "properties": { + "avatar_url": { + "type": "string" + }, + "bio": { + "type": "string" + }, + "blog": { + "description": "The website URL from the profile page", + "type": "string" + }, + "collaborators": { + "type": "integer" + }, + "company": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "disk_usage": { + "type": "integer" + }, + "email": { + "description": "Note: The returned email is the user’s publicly visible email address (or null if the user has not specified a public email address in their profile).", + "type": "string" + }, + "followers": { + "type": "integer" + }, + "followers_url": { + "type": "string" + }, + "following": { + "type": "integer" + }, + "following_url": { + "type": "string" + }, + "gists_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "hireable": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "location": { + "type": "string" + }, + "login": { + "description": "The account username", + "type": "string" + }, + "name": { + "description": "The full account name", + "type": "string" + }, + "organizations_url": { + "type": "string" + }, + "owned_private_repos": { + "type": "integer" + }, + "plan": { + "properties": { + "collaborators": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "private_repos": { + "type": "integer" + }, + "space": { + "type": "integer" + } + }, + "type": "object" + }, + "private_gists": { + "type": "integer" + }, + "public_gists": { + "type": "integer" + }, + "public_repos": { + "type": "integer" + }, + "starred_url": { + "type": "string" + }, + "subscriptions_url": { + "type": "string" + }, + "total_private_repos": { + "type": "integer" + }, + "type": { + "enum": ["User", "Organization"] + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "asset": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "number" + }, + "id": { + "type": "number" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "number" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "assetPatch": { + "properties": { + "label": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": ["name"], + "type": "object" + }, + "assets": { + "items": { + "$ref": "#/definitions/asset" + }, + "type": "array" + }, + "assignees": { + "items": { + "$ref": "#/definitions/user" + }, + "type": "array" + }, + "blob": { + "properties": { + "content": { + "type": "string" + }, + "encoding": { + "enum": ["utf-8", "base64"] + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + }, + "blobs": { + "properties": { + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "branch": { + "properties": { + "_links": { + "properties": { + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "branches": { + "items": { + "properties": { + "commit": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "codeFrequencyStats": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "comment": { + "properties": { + "body": { + "type": "string" + } + }, + "type": "object" + }, + "commentBody": { + "properties": { + "body": { + "type": "string" + } + }, + "required": ["body"], + "type": "object" + }, + "comments": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601.", + "type": "string" + }, + "id": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "files": { + "items": { + "properties": { + "additions": { + "type": "integer" + }, + "blob_url": { + "type": "string" + }, + "changes": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "filename": { + "type": "string" + }, + "patch": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "stats": { + "properties": { + "additions": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "total": { + "type": "integer" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "commitActivityStats": { + "items": { + "properties": { + "days": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "total": { + "type": "integer" + }, + "week": { + "type": "integer" + } + }, + "type": "object" + }, + "type": "array" + }, + "commitComment": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "line": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "commitCommentBody": { + "properties": { + "body": { + "type": "string" + }, + "line": { + "description": "Deprecated - Use position parameter instead.", + "type": "string" + }, + "number": { + "description": "Line number in the file to comment on. Defaults to null.", + "type": "string" + }, + "path": { + "description": "Relative path of the file to comment on.", + "type": "string" + }, + "position": { + "description": "Line index in the diff to comment on.", + "type": "integer" + }, + "sha": { + "description": "SHA of the commit to comment on.", + "type": "string" + } + }, + "required": ["sha", "body"], + "type": "object" + }, + "commits": { + "items": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "compare-commits": { + "properties": { + "ahead_by": { + "type": "integer" + }, + "base_commit": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "behind_by": { + "type": "integer" + }, + "commits": { + "items": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "diff_url": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "additions": { + "type": "integer" + }, + "blob_url": { + "type": "string" + }, + "changes": { + "type": "integer" + }, + "contents_url": { + "type": "string" + }, + "deletions": { + "type": "integer" + }, + "filename": { + "type": "string" + }, + "patch": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "status": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + }, + "permalink_url": { + "type": "string" + }, + "status": { + "type": "string" + }, + "total_commits": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "contents-path": { + "properties": { + "_links": { + "properties": { + "git": { + "type": "string" + }, + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + }, + "encoding": { + "type": "string" + }, + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "contributorsStats": { + "items": { + "properties": { + "author": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "total": { + "description": "The Total number of commits authored by the contributor.", + "type": "integer" + }, + "weeks": { + "items": { + "properties": { + "a": { + "description": "Number of additions.", + "type": "integer" + }, + "c": { + "description": "Number of commits.", + "type": "integer" + }, + "d": { + "description": "Number of deletions.", + "type": "integer" + }, + "w": { + "description": "Start of the week.", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + }, + "createFile": { + "properties": { + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "html_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "properties": { + "_links": { + "properties": { + "git": { + "type": "string" + }, + "html": { + "type": "string" + }, + "self": { + "type": "string" + } + }, + "type": "object" + }, + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "createFileBody": { + "properties": { + "committer": { + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "deleteFile": { + "properties": { + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + } + }, + "html_url": { + "type": "string" + }, + "message": { + "type": "string" + }, + "parents": { + "properties": { + "html_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "content": { + "type": "string" + } + }, + "type": "object" + }, + "deleteFileBody": { + "properties": { + "committer": { + "properties": { + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "deployment": { + "properties": { + "description": { + "type": "string" + }, + "payload": { + "properties": { + "deploy_user": { + "type": "string" + }, + "environment": { + "type": "string" + }, + "room_id": { + "type": "number" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "deployment-resp": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "deployment-statuses": { + "items": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "deployment-statuses-create": { + "properties": { + "description": { + "type": "string" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + } + }, + "type": "object" + }, + "download": { + "properties": { + "content_type": { + "type": "string" + }, + "description": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "downloads": { + "items": { + "$ref": "#/definitions/download" + }, + "type": "array" + }, + "editTeam": { + "properties": { + "name": { + "type": "string" + }, + "permission": { + "enum": ["pull", "push", "admin"] + } + }, + "required": ["name"], + "type": "object" + }, + "emailsPost": { + "items": { + "type": "string" + }, + "type": "array" + }, + "emojis": { + "additionalProperties": { + "description": "A URL for an image representing this emoji", + "type": "string" + }, + "type": "object" + }, + "event": { + "properties": { + "actor": { + "$ref": "#/definitions/actor" + }, + "created_at": { + "type": "object" + }, + "id": { + "type": "integer" + }, + "org": { + "$ref": "#/definitions/organization" + }, + "payload": { + "properties": {}, + "type": "object" + }, + "public": { + "type": "boolean" + }, + "repo": { + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "events": { + "items": { + "$ref": "#/definitions/event" + }, + "type": "array" + }, + "feeds": { + "properties": { + "_links": { + "properties": { + "current_user": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_actor": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_organization": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "current_user_public": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "timeline": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + }, + "user": { + "properties": { + "href": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "type": "object" + } + } + }, + "current_user_actor_url": { + "type": "string" + }, + "current_user_organization_url": { + "type": "string" + }, + "current_user_public": { + "type": "string" + }, + "current_user_url": { + "type": "string" + }, + "timeline_url": { + "type": "string" + }, + "user_url": { + "type": "string" + } + }, + "type": "object" + }, + "forkBody": { + "properties": { + "organization": { + "type": "string" + } + }, + "type": "object" + }, + "forks": { + "$ref": "#/definitions/repos" + }, + "gist": { + "properties": { + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "description": { + "type": "string" + }, + "files": { + "properties": { + "ring.erl": { + "properties": { + "filename": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "forks": { + "items": { + "properties": { + "created_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "git_pull_url": { + "type": "string" + }, + "git_push_url": { + "type": "string" + }, + "history": { + "items": { + "properties": { + "change_status": { + "properties": { + "additions": { + "type": "integer" + }, + "deletions": { + "type": "integer" + }, + "total": { + "type": "integer" + } + }, + "type": "object" + }, + "committed_at": { + "description": "Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "gists": { + "items": { + "properties": { + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "description": { + "type": "string" + }, + "files": { + "properties": { + "ring.erl": { + "properties": { + "filename": { + "type": "string" + }, + "raw_url": { + "type": "string" + }, + "size": { + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "git_pull_url": { + "type": "string" + }, + "git_push_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "string" + }, + "public": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "gitCommit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "type": "string" + }, + "tree": { + "type": "string" + } + }, + "type": "object" + }, + "gitRefPatch": { + "properties": { + "force": { + "type": "boolean" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "gitignore": { + "items": {}, + "type": "array" + }, + "gitignore-lang": { + "properties": { + "name": { + "type": "string" + }, + "source": { + "type": "string" + } + }, + "type": "object" + }, + "headBranch": { + "properties": { + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "hook": { + "items": { + "properties": { + "active": { + "type": "boolean" + }, + "config": { + "properties": { + "content_type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "events": { + "items": { + "enum": [ + "push", + "issues", + "issue_comment", + "commit_comment", + "pull_request", + "pull_request_review_comment", + "gollum", + "watch", + "download", + "fork", + "fork_apply", + "member", + "public", + "team_add", + "status" + ] + }, + "type": "array" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "hookBody": { + "properties": { + "active": { + "type": "boolean" + }, + "add_events": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "issue": { + "properties": { + "assignee": { + "type": "string" + }, + "body": { + "type": "string" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + }, + "milestone": { + "type": "number" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "issueEvent": { + "properties": { + "actor": { + "$ref": "#/definitions/actor" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "event": { + "type": "string" + }, + "issue": { + "properties": { + "assignee": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + } + }, + "type": "object" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "issueEvents": { + "items": { + "$ref": "#/definitions/issueEvent" + }, + "type": "array" + }, + "issues": { + "items": { + "properties": { + "assignee": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "patch_url": { + "type": "string" + } + }, + "type": "object" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "issuesComment": { + "properties": { + "body": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "issuesComments": { + "items": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "keys": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "label": { + "properties": { + "color": { + "maxLength": 6, + "minLength": 6, + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "labels": { + "items": { + "properties": { + "color": { + "maxLength": 6, + "minLength": 6, + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "languages": { + "additionalProperties": { + "type": "integer" + }, + "type": "object" + }, + "markdown": { + "properties": { + "context": { + "type": "string" + }, + "mode": { + "type": "string" + }, + "text": { + "type": "string" + } + }, + "type": "object" + }, + "merge": { + "properties": { + "merged": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "mergePullBody": { + "properties": { + "commit_message": { + "type": "string" + } + }, + "type": "object" + }, + "mergesBody": { + "properties": { + "base": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "head": { + "type": "string" + } + }, + "type": "object" + }, + "mergesConflict": { + "properties": { + "message": { + "description": "Error message", + "type": "string" + } + }, + "type": "object" + }, + "mergesSuccessful": { + "properties": { + "author": { + "$ref": "#/definitions/user" + }, + "comments_url": { + "type": "string" + }, + "commit": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "comment_count": { + "type": "integer" + }, + "committer": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "$ref": "#/definitions/user" + }, + "merged": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "meta": { + "properties": { + "git": { + "items": { + "description": "An Array of IP addresses in CIDR format specifying the Git servers at GitHub.", + "type": "string" + }, + "type": "array" + }, + "hooks": { + "items": { + "description": "An Array of IP addresses in CIDR format specifying the addresses that incoming service hooks will originate from.", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "milestone": { + "properties": { + "closed_issues": { + "type": "integer" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "due_on": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "open_issues": { + "type": "integer" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "milestoneUpdate": { + "properties": { + "description": { + "type": "string" + }, + "due_on": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "notificationMarkRead": { + "properties": { + "last_read_at": { + "type": "string" + } + }, + "type": "object" + }, + "notifications": { + "properties": { + "id": { + "type": "integer" + }, + "last_read_at": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "repository": { + "properties": { + "description": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "full_name": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "private": { + "type": "boolean" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "subject": { + "properties": { + "latest_comment_url": { + "type": "string" + }, + "title": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "unread": { + "type": "boolean" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "orgTeamsPost": { + "properties": { + "name": { + "type": "string" + }, + "permission": { + "enum": ["pull", "push", "admin"] + }, + "repo_names": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": ["name"], + "type": "object" + }, + "organization": { + "allOf": [ + { + "$ref": "#/definitions/actor" + }, + { + "description": "A GitHub organization" + } + ], + "type": "object" + }, + "organizationAsTeamMember": { + "properties": { + "errors": { + "items": { + "properties": { + "code": { + "type": "string" + }, + "field": { + "type": "string" + }, + "resource": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "participationStats": { + "properties": { + "all": { + "items": { + "type": "integer" + }, + "type": "array" + }, + "owner": { + "items": { + "type": "integer" + }, + "type": "array" + } + }, + "type": "object" + }, + "patchGist": { + "properties": { + "description": { + "type": "string" + }, + "files": { + "properties": { + "delete_this_file.txt": { + "type": "string" + }, + "file1.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + }, + "new_file.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + }, + "old_name.txt": { + "properties": { + "content": { + "type": "string" + }, + "filename": { + "type": "string" + } + }, + "type": "object" + } + } + } + }, + "type": "object" + }, + "patchOrg": { + "properties": { + "billing_email": { + "description": "Billing email address. This address is not publicized.", + "type": "string" + }, + "company": { + "type": "string" + }, + "email": { + "description": "Publicly visible email address.", + "type": "string" + }, + "location": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "postGist": { + "properties": { + "description": { + "type": "string" + }, + "files": { + "properties": { + "file1.txt": { + "properties": { + "content": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "public": { + "type": "boolean" + } + }, + "type": "object" + }, + "postRepo": { + "properties": { + "auto_init": { + "description": "True to create an initial commit with empty README. Default is false.", + "type": "boolean" + }, + "description": { + "type": "string" + }, + "gitignore_template": { + "description": "Desired language or platform .gitignore template to apply. Use the name of the template without the extension. For example, \"Haskell\" Ignored if auto_init parameter is not provided. ", + "type": "string" + }, + "has_downloads": { + "description": "True to enable downloads for this repository, false to disable them. Default is true.", + "type": "boolean" + }, + "has_issues": { + "description": "True to enable issues for this repository, false to disable them. Default is true.", + "type": "boolean" + }, + "has_wiki": { + "description": "True to enable the wiki for this repository, false to disable it. Default is true.", + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "name": { + "type": "string" + }, + "private": { + "description": "True to create a private repository, false to create a public one. Creating private repositories requires a paid GitHub account.", + "type": "boolean" + }, + "team_id": { + "description": "The id of the team that will be granted access to this repository. This is only valid when creating a repo in an organization.", + "type": "integer" + } + }, + "required": ["name"], + "type": "object" + }, + "pullRequest": { + "properties": { + "_links": { + "properties": { + "comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "review_comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "additions": { + "type": "integer" + }, + "base": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "changed_files": { + "type": "integer" + }, + "closed_at": { + "type": "string" + }, + "comments": { + "type": "integer" + }, + "commits": { + "type": "integer" + }, + "created_at": { + "type": "string" + }, + "deletions": { + "type": "integer" + }, + "diff_url": { + "type": "string" + }, + "head": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "issue_url": { + "type": "string" + }, + "merge_commit_sha": { + "type": "string" + }, + "mergeable": { + "type": "boolean" + }, + "merged": { + "type": "boolean" + }, + "merged_at": { + "type": "string" + }, + "merged_by": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "number": { + "type": "integer" + }, + "patch_url": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "pullUpdate": { + "properties": { + "body": { + "type": "string" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "pulls": { + "items": { + "properties": { + "_links": { + "properties": { + "comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "review_comments": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "base": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "closed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "diff_url": { + "type": "string" + }, + "head": { + "properties": { + "label": { + "type": "string" + }, + "ref": { + "type": "string" + }, + "repo": { + "$ref": "#/definitions/repo" + }, + "sha": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "html_url": { + "type": "string" + }, + "issue_url": { + "type": "string" + }, + "merged_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "number": { + "type": "integer" + }, + "patch_url": { + "type": "string" + }, + "state": { + "enum": ["open", "closed"] + }, + "title": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "pullsComment": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "pullsCommentPost": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "path": { + "type": "string" + }, + "position": { + "type": "number" + } + }, + "type": "object" + }, + "pullsComments": { + "items": { + "properties": { + "_links": { + "properties": { + "html": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "pull_request": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + }, + "self": { + "properties": { + "href": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "id": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "pullsPost": { + "properties": { + "base": { + "type": "string" + }, + "body": { + "type": "string" + }, + "head": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "putSubscription": { + "properties": { + "created_at": { + "type": "string" + }, + "ignored": { + "type": "boolean" + }, + "reason": { + "type": "object" + }, + "subscribed": { + "type": "boolean" + }, + "thread_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "rate_limit": { + "properties": { + "rate": { + "properties": { + "limit": { + "type": "integer" + }, + "remaining": { + "type": "integer" + }, + "reset": { + "type": "integer" + } + } + } + }, + "type": "object" + }, + "ref": { + "items": { + "properties": { + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "creator": { + "properties": { + "avatar_url": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "refStatus": { + "items": { + "properties": { + "commit_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "repository_url": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "state": { + "type": "string" + }, + "statuses": { + "items": { + "properties": { + "context": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "description": { + "type": "string" + }, + "id": { + "type": "number" + }, + "state": { + "type": "string" + }, + "target_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + }, + "refs": { + "items": { + "properties": { + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ref": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "refsBody": { + "properties": { + "ref": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "release": { + "properties": { + "assets": { + "items": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "assets_url": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "published_at": { + "type": "string" + }, + "tag_name": { + "type": "string" + }, + "tarball_url": { + "type": "string" + }, + "target_commitish": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "zipball_url": { + "type": "string" + } + }, + "type": "object" + }, + "release-create": { + "properties": { + "body": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "tag_name": { + "type": "string" + }, + "target_commitish": { + "type": "string" + } + }, + "type": "object" + }, + "releases": { + "items": { + "properties": { + "assets": { + "items": { + "properties": { + "content_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "download_count": { + "type": "integer" + }, + "id": { + "type": "integer" + }, + "label": { + "type": "string" + }, + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "uploader": { + "$ref": "#/definitions/user" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "assets_url": { + "type": "string" + }, + "author": { + "$ref": "#/definitions/user" + }, + "body": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "draft": { + "type": "boolean" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "prerelease": { + "type": "boolean" + }, + "published_at": { + "type": "string" + }, + "tag_name": { + "type": "string" + }, + "tarball_url": { + "type": "string" + }, + "target_commitish": { + "type": "string" + }, + "upload_url": { + "type": "string" + }, + "url": { + "type": "string" + }, + "zipball_url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repo": { + "properties": { + "clone_url": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "description": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "forks": { + "type": "integer" + }, + "forks_count": { + "type": "integer" + }, + "full_name": { + "type": "string" + }, + "git_url": { + "type": "string" + }, + "has_downloads": { + "type": "boolean" + }, + "has_issues": { + "type": "boolean" + }, + "has_wiki": { + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "language": { + "type": "string" + }, + "master_branch": { + "type": "string" + }, + "mirror_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "open_issues": { + "type": "integer" + }, + "open_issues_count": { + "type": "integer" + }, + "organization": { + "$ref": "#/definitions/organization" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "parent": { + "allOf": [ + { + "$ref": "#/definitions/repo" + }, + { + "description": "Is present when the repo is a fork. Parent is the repo this repo was forked from." + } + ] + }, + "private": { + "type": "boolean" + }, + "pushed_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "size": { + "type": "integer" + }, + "source": { + "allOf": [ + { + "$ref": "#/definitions/repo" + }, + { + "description": "Is present when the repo is a fork. Source is the ultimate source for the network." + } + ] + }, + "ssh_url": { + "type": "string" + }, + "svn_url": { + "type": "string" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "watchers": { + "type": "integer" + }, + "watchers_count": { + "type": "integer" + } + }, + "type": "object" + }, + "repo-deployments": { + "items": { + "properties": { + "created_at": { + "type": "string" + }, + "creator": { + "$ref": "#/definitions/user" + }, + "description": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "payload": { + "type": "string" + }, + "sha": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repoComments": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "commit_id": { + "type": "string" + }, + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "line": { + "type": "integer" + }, + "path": { + "type": "string" + }, + "position": { + "type": "integer" + }, + "updated_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "repoCommit": { + "properties": { + "author": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "committer": { + "properties": { + "date": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "sha": { + "type": "string" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "repoCommitBody": { + "properties": { + "author": { + "properties": { + "date": { + "type": "string" + }, + "email": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "message": { + "type": "string" + }, + "parents": { + "items": { + "type": "string" + }, + "type": "array" + }, + "tree": { + "type": "string" + } + }, + "required": ["message", "parents", "tree"], + "type": "object" + }, + "repoEdit": { + "properties": { + "description": { + "type": "string" + }, + "has_downloads": { + "type": "boolean" + }, + "has_issues": { + "type": "boolean" + }, + "has_wiki": { + "type": "boolean" + }, + "homepage": { + "type": "string" + }, + "name": { + "type": "string" + }, + "private": { + "type": "boolean" + } + }, + "type": "object" + }, + "repos": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + }, + "search-code": { + "properties": { + "items": { + "items": { + "properties": { + "git_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "repository": { + "properties": { + "archive_url": { + "type": "string" + }, + "assignees_url": { + "type": "string" + }, + "blobs_url": { + "type": "string" + }, + "branches_url": { + "type": "string" + }, + "collaborators_url": { + "type": "string" + }, + "comments_url": { + "type": "string" + }, + "commits_url": { + "type": "string" + }, + "compare_url": { + "type": "string" + }, + "contents_url": { + "type": "string" + }, + "contributors_url": { + "type": "string" + }, + "description": { + "type": "string" + }, + "downloads_url": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "fork": { + "type": "boolean" + }, + "forks_url": { + "type": "string" + }, + "full_name": { + "type": "string" + }, + "git_commits_url": { + "type": "string" + }, + "git_refs_url": { + "type": "string" + }, + "git_tags_url": { + "type": "string" + }, + "hooks_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "issue_comment_url": { + "type": "string" + }, + "issue_events_url": { + "type": "string" + }, + "issues_url": { + "type": "string" + }, + "keys_url": { + "type": "string" + }, + "labels_url": { + "type": "string" + }, + "languages_url": { + "type": "string" + }, + "merges_url": { + "type": "string" + }, + "milestones_url": { + "type": "string" + }, + "name": { + "type": "string" + }, + "notifications_url": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/actor" + }, + "private": { + "type": "boolean" + }, + "pulls_url": { + "type": "string" + }, + "stargazers_url": { + "type": "string" + }, + "statuses_url": { + "type": "string" + }, + "subscribers_url": { + "type": "string" + }, + "subscription_url": { + "type": "string" + }, + "tags_url": { + "type": "string" + }, + "teams_url": { + "type": "string" + }, + "trees_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "score": { + "type": "number" + }, + "sha": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-issues": { + "properties": { + "items": { + "items": { + "properties": { + "assignee": { + "type": "null" + }, + "body": { + "type": "string" + }, + "closed_at": { + "type": "null" + }, + "comments": { + "type": "integer" + }, + "comments_url": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "events_url": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "labels": { + "items": { + "properties": { + "color": { + "type": "string" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "labels_url": { + "type": "string" + }, + "milestone": { + "type": "null" + }, + "number": { + "type": "integer" + }, + "pull_request": { + "properties": { + "diff_url": { + "type": "null" + }, + "html_url": { + "type": "null" + }, + "patch_url": { + "type": "null" + } + }, + "type": "object" + }, + "score": { + "type": "number" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-issues-by-keyword": { + "properties": { + "issues": { + "items": { + "properties": { + "body": { + "type": "string" + }, + "comments": { + "type": "integer" + }, + "created_at": { + "type": "string" + }, + "gravatar_id": { + "type": "string" + }, + "html_url": { + "type": "string" + }, + "labels": { + "items": { + "type": "string" + }, + "type": "array" + }, + "number": { + "type": "integer" + }, + "position": { + "type": "integer" + }, + "state": { + "type": "string" + }, + "title": { + "type": "string" + }, + "updated_at": { + "type": "string" + }, + "user": { + "type": "string" + }, + "votes": { + "type": "integer" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "search-repositories": { + "properties": { + "items": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-repositories-by-keyword": { + "properties": { + "repositories": { + "items": { + "$ref": "#/definitions/repo" + }, + "type": "array" + } + }, + "type": "object" + }, + "search-user-by-email": { + "properties": { + "user": { + "$ref": "#/definitions/user" + } + }, + "type": "object" + }, + "search-users": { + "properties": { + "items": { + "$ref": "#/definitions/users" + }, + "total_count": { + "type": "integer" + } + }, + "type": "object" + }, + "search-users-by-keyword": { + "properties": { + "users": { + "$ref": "#/definitions/users" + } + }, + "type": "object" + }, + "subscription": { + "properties": { + "created_at": { + "description": "ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "ignored": { + "type": "boolean" + }, + "reason": { + "type": "string" + }, + "repository_url": { + "type": "string" + }, + "subscribed": { + "type": "boolean" + }, + "thread_url": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "subscriptionBody": { + "properties": { + "ignored": { + "type": "boolean" + }, + "subscribed": { + "type": "boolean" + } + }, + "type": "object" + }, + "tag": { + "properties": { + "message": { + "description": "String of the tag message.", + "type": "string" + }, + "object": { + "properties": { + "sha": { + "type": "string" + }, + "type": { + "description": "String of the type of the tagged object. Normally this is a commit but it can also be a tree or a blob.", + "enum": ["commit", "tree", "blob"] + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "sha": { + "type": "string" + }, + "tag": { + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", + "type": "string" + }, + "tagger": { + "properties": { + "date": { + "description": "Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "description": "String of the email of the author of the tag.", + "type": "string" + }, + "name": { + "description": "String of the name of the author of the tag.", + "type": "string" + } + }, + "type": "object" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "tagBody": { + "properties": { + "message": { + "description": "String of the tag message.", + "type": "string" + }, + "object": { + "description": "String of the SHA of the git object this is tagging.", + "type": "string" + }, + "tag": { + "description": "The tag's name. This is typically a version (e.g., \"v0.0.1\").", + "type": "string" + }, + "tagger": { + "properties": { + "date": { + "description": "Timestamp of when this object was tagged, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ", + "type": "string" + }, + "email": { + "description": "String of the email of the author of the tag.", + "type": "string" + }, + "name": { + "description": "String of the name of the author of the tag.", + "type": "string" + } + }, + "type": "object" + }, + "type": { + "description": "String of the type of the object we’re tagging. Normally this is a commit but it can also be a tree or a blob.", + "enum": ["commit", "tree", "blob"] + } + }, + "required": ["tag", "message", "object", "type", "tagger"], + "type": "object" + }, + "tags": { + "items": { + "$ref": "#/definitions/tag" + }, + "type": "array" + }, + "team": { + "properties": { + "id": { + "type": "integer" + }, + "members_count": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "permission": { + "type": "string" + }, + "repos_count": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "teamMembership": { + "properties": { + "state": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "teamRepos": { + "$ref": "#/definitions/repos" + }, + "teams": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "teams-list": { + "items": { + "properties": { + "id": { + "type": "integer" + }, + "members_count": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "organization": { + "properties": { + "avatar_url": { + "type": "string" + }, + "id": { + "type": "integer" + }, + "login": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "permission": { + "type": "string" + }, + "repos_count": { + "type": "integer" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "tree": { + "properties": { + "sha": { + "type": "string" + }, + "tree": { + "items": { + "properties": { + "mode": { + "description": "One of 100644 for file (blob), 100755 for executable (blob), 040000 for subdirectory (tree), 160000 for submodule (commit) or 120000 for a blob that specifies the path of a symlink.", + "enum": ["100644", "100755", "040000", "160000", "120000"], + "type": "string" + }, + "path": { + "type": "string" + }, + "sha": { + "description": "SHA1 checksum ID of the object in the tree.", + "type": "string" + }, + "size": { + "type": "integer" + }, + "type": { + "enum": ["blob", "tree", "commit"], + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "trees": { + "properties": { + "base_tree": { + "type": "string" + }, + "sha": { + "description": "SHA1 checksum ID of the object in the tree.", + "type": "string" + }, + "tree": { + "items": { + "$ref": "#/definitions/tree" + }, + "type": "array" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "user": { + "allOf": [ + { + "$ref": "#/definitions/actor" + }, + { + "description": "A GitHub user" + } + ], + "type": "object" + }, + "user-emails": { + "items": { + "type": "string" + }, + "type": "array" + }, + "user-keys-keyId": { + "properties": { + "id": { + "type": "integer" + }, + "key": { + "type": "string" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object" + }, + "user-keys-post": { + "properties": { + "key": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "user-update": { + "properties": { + "bio": { + "type": "string" + }, + "blog": { + "type": "string" + }, + "company": { + "type": "string" + }, + "email": { + "type": "string" + }, + "hireable": { + "type": "boolean" + }, + "location": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "type": "object" + }, + "users": { + "items": { + "$ref": "#/definitions/user" + }, + "type": "array" + } + } +} diff --git a/tests/spec/jsAxios/test.js b/tests/spec/jsAxios/test.js new file mode 100644 index 00000000..acca3759 --- /dev/null +++ b/tests/spec/jsAxios/test.js @@ -0,0 +1,20 @@ +const { generateApi } = require("../../../src"); +const { resolve } = require("path"); +const validateGeneratedModule = require("../../helpers/validateGeneratedModule"); +const createSchemasInfos = require("../../helpers/createSchemaInfos"); + +const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }); + +schemas.forEach(({ absolutePath, apiFileName }) => { + generateApi({ + silent: true, + name: apiFileName, + input: absolutePath, + output: resolve(__dirname, "./"), + toJS: true, + httpClientType: "axios", + }).catch((e) => { + console.error("--js --axios option test failed."); + throw e; + }); +}); diff --git a/tests/spec/modular/Key.ts b/tests/spec/modular/Key.ts index 215916ea..b56c1719 100644 --- a/tests/spec/modular/Key.ts +++ b/tests/spec/modular/Key.ts @@ -48,9 +48,9 @@ export class Key extends HttpClient + keyRevoke = (pk: string, query: { secret: string }, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "DELETE", query: query, ...params, @@ -62,9 +62,9 @@ export class Key extends HttpClient + getKey = (pk: string, params: RequestParams = {}) => this.request<{ since?: string; status?: string; sub?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "GET", ...params, }); @@ -75,9 +75,9 @@ export class Key extends HttpClient + headKey = (pk: string, params: RequestParams = {}) => this.request({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "HEAD", ...params, }); @@ -88,9 +88,9 @@ export class Key extends HttpClient + keyUpdate = (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "POST", body: body, ...params, @@ -102,9 +102,9 @@ export class Key extends HttpClient + keyBind = (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "PUT", body: body, ...params, diff --git a/tests/spec/modular/test.js b/tests/spec/modular/test.js index a0bc474b..4321d7c0 100644 --- a/tests/spec/modular/test.js +++ b/tests/spec/modular/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath }) => { generateApi({ + silent: true, input: absolutePath, output: resolve(__dirname, "./"), modular: true, diff --git a/tests/spec/moduleNameIndex/test.js b/tests/spec/moduleNameIndex/test.js index 9f1b8eab..f45be263 100644 --- a/tests/spec/moduleNameIndex/test.js +++ b/tests/spec/moduleNameIndex/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, spec: require(absolutePath), output: resolve(__dirname, "./"), diff --git a/tests/spec/noClient/test.js b/tests/spec/noClient/test.js index 6dc61965..6af53754 100644 --- a/tests/spec/noClient/test.js +++ b/tests/spec/noClient/test.js @@ -1,23 +1,26 @@ const { generateApi } = require("../../../src"); const { resolve } = require("path"); -const validateGeneratedModule = require("../../helpers/validateGeneratedModule") -const createSchemasInfos = require("../../helpers/createSchemaInfos") +const validateGeneratedModule = require("../../helpers/validateGeneratedModule"); +const createSchemasInfos = require("../../helpers/createSchemaInfos"); -const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }) +const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }); schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, - output: resolve(__dirname, './'), + output: resolve(__dirname, "./"), generateClient: false, }) - .then(() => { - const diagnostics = validateGeneratedModule({ pathToFile: resolve(__dirname, `./${apiFileName}`) }) - if (diagnostics.length) throw "Failed" - }) - .catch(e => { - console.error("noClient option test failed.") - throw e - }) -}) \ No newline at end of file + .then(() => { + const diagnostics = validateGeneratedModule({ + pathToFile: resolve(__dirname, `./${apiFileName}`), + }); + if (diagnostics.length) throw "Failed"; + }) + .catch((e) => { + console.error("noClient option test failed."); + throw e; + }); +}); diff --git a/tests/spec/partialBaseTemplate/test.js b/tests/spec/partialBaseTemplate/test.js index 91829f3d..59ca24b3 100644 --- a/tests/spec/partialBaseTemplate/test.js +++ b/tests/spec/partialBaseTemplate/test.js @@ -8,6 +8,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/partialDefaultTemplate/test.js b/tests/spec/partialDefaultTemplate/test.js index 4a096e03..22dee8a2 100644 --- a/tests/spec/partialDefaultTemplate/test.js +++ b/tests/spec/partialDefaultTemplate/test.js @@ -8,6 +8,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/responses/schema.ts b/tests/spec/responses/schema.ts index c5bbd97a..087c6fc4 100644 --- a/tests/spec/responses/schema.ts +++ b/tests/spec/responses/schema.ts @@ -311,9 +311,9 @@ export class Api extends HttpClient + keyRevoke: (pk: string, query: { secret: string }, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "DELETE", query: query, format: "json", @@ -331,9 +331,9 @@ export class Api extends HttpClient + getKey: (pk: string, params: RequestParams = {}) => this.request<{ since?: string; status?: string; sub?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "GET", format: "json", ...params, @@ -350,9 +350,9 @@ export class Api extends HttpClient + headKey: (pk: string, params: RequestParams = {}) => this.request({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "HEAD", ...params, }), @@ -367,9 +367,9 @@ export class Api extends HttpClient + keyUpdate: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "POST", body: body, format: "json", @@ -387,9 +387,9 @@ export class Api extends HttpClient + keyBind: (pk: string, body: AuthentiqID, params: RequestParams = {}) => this.request<{ status?: string }, Error>({ - path: `/key/${PK}`, + path: `/key/${pk}`, method: "PUT", body: body, format: "json", diff --git a/tests/spec/responses/test.js b/tests/spec/responses/test.js index 9e67beee..705f09d4 100644 --- a/tests/spec/responses/test.js +++ b/tests/spec/responses/test.js @@ -1,23 +1,26 @@ const { generateApi } = require("../../../src"); const { resolve } = require("path"); -const validateGeneratedModule = require("../../helpers/validateGeneratedModule") -const createSchemasInfos = require("../../helpers/createSchemaInfos") +const validateGeneratedModule = require("../../helpers/validateGeneratedModule"); +const createSchemasInfos = require("../../helpers/createSchemaInfos"); -const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }) +const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, "./") }); schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, - output: resolve(__dirname, './'), + output: resolve(__dirname, "./"), generateResponses: true, }) - .then(() => { - const diagnostics = validateGeneratedModule({ pathToFile: resolve(__dirname, `./${apiFileName}`) }) - if (diagnostics.length) throw "Failed" - }) - .catch(e => { - console.error("responses option test failed.") - throw e - }) -}) \ No newline at end of file + .then(() => { + const diagnostics = validateGeneratedModule({ + pathToFile: resolve(__dirname, `./${apiFileName}`), + }); + if (diagnostics.length) throw "Failed"; + }) + .catch((e) => { + console.error("responses option test failed."); + throw e; + }); +}); diff --git a/tests/spec/routeTypes/schema.ts b/tests/spec/routeTypes/schema.ts index f4b80423..b785631f 100644 --- a/tests/spec/routeTypes/schema.ts +++ b/tests/spec/routeTypes/schema.ts @@ -3795,7 +3795,7 @@ export namespace repos { * @duplicate */ export namespace ReposDetail2 { - export type RequestParams = { owner: string; repo: string; archive_format: "tarball" | "zipball"; path: string }; + export type RequestParams = { owner: string; repo: string; archiveFormat: "tarball" | "zipball"; path: string }; export type RequestQuery = {}; export type RequestBody = never; export type RequestHeaders = { Accept?: string }; diff --git a/tests/spec/routeTypes/test.js b/tests/spec/routeTypes/test.js index 6d31c76f..fed5ddd7 100644 --- a/tests/spec/routeTypes/test.js +++ b/tests/spec/routeTypes/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/singleHttpClient/test.js b/tests/spec/singleHttpClient/test.js index df1bfb9b..4bddcd9d 100644 --- a/tests/spec/singleHttpClient/test.js +++ b/tests/spec/singleHttpClient/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, spec: require(absolutePath), output: resolve(__dirname, "./"), diff --git a/tests/spec/specProperty/test.js b/tests/spec/specProperty/test.js index d02908c8..a69709dc 100644 --- a/tests/spec/specProperty/test.js +++ b/tests/spec/specProperty/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, spec: require(absolutePath), output: resolve(__dirname, "./"), diff --git a/tests/spec/templates/test.js b/tests/spec/templates/test.js index 350e737d..b3505a15 100644 --- a/tests/spec/templates/test.js +++ b/tests/spec/templates/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"), diff --git a/tests/spec/unionEnums/test.js b/tests/spec/unionEnums/test.js index 78031ede..bf847128 100644 --- a/tests/spec/unionEnums/test.js +++ b/tests/spec/unionEnums/test.js @@ -7,6 +7,7 @@ const schemas = createSchemasInfos({ absolutePathToSchemas: resolve(__dirname, " schemas.forEach(({ absolutePath, apiFileName }) => { generateApi({ + silent: true, name: apiFileName, input: absolutePath, output: resolve(__dirname, "./"),