Skip to content

Commit 8756889

Browse files
authored
Merge pull request #450 from github/openapi-update-066f1a0bb6e6aceb6f2e2cea1257f7194d455aa67febc609d9b824c918f15c26
Update OpenAPI Descriptions
2 parents 95d9b6c + f60c74c commit 8756889

36 files changed

+19722
-13089
lines changed

descriptions/api.github.com/api.github.com.json

Lines changed: 926 additions & 165 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/api.github.com.yaml

Lines changed: 640 additions & 120 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/dereferenced/api.github.com.deref.json

Lines changed: 3057 additions & 544 deletions
Large diffs are not rendered by default.

descriptions/api.github.com/dereferenced/api.github.com.deref.yaml

Lines changed: 5541 additions & 4910 deletions
Large diffs are not rendered by default.

descriptions/ghes-2.18/dereferenced/ghes-2.18.deref.json

Lines changed: 29 additions & 195 deletions
Large diffs are not rendered by default.

descriptions/ghes-2.18/dereferenced/ghes-2.18.deref.yaml

Lines changed: 49 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -6264,22 +6264,9 @@ paths:
62646264
html_url: https://www.contributor-covenant.org/version/2/0/code_of_conduct/
62656265
'304':
62666266
description: Not modified
6267-
'415':
6268-
description: Preview header missing
6269-
content: *30
62706267
x-github:
62716268
githubCloudOnly: false
62726269
enabledForGitHubApps: true
6273-
previews:
6274-
- required: true
6275-
name: scarlet-witch
6276-
note: |-
6277-
The Codes of Conduct API is currently available for developers to preview.
6278-
6279-
To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/[email protected]/rest/overview/media-types) in the `Accept` header:
6280-
```shell
6281-
application/vnd.github.scarlet-witch-preview+json
6282-
```
62836270
category: codes-of-conduct
62846271
subcategory:
62856272
"/codes_of_conduct/{key}":
@@ -6370,22 +6357,9 @@ paths:
63706357
content: *25
63716358
'304':
63726359
description: Not modified
6373-
'415':
6374-
description: Preview header missing
6375-
content: *30
63766360
x-github:
63776361
githubCloudOnly: false
63786362
enabledForGitHubApps: true
6379-
previews:
6380-
- required: true
6381-
name: scarlet-witch
6382-
note: |-
6383-
The Codes of Conduct API is currently available for developers to preview.
6384-
6385-
To access the API during the preview period, you must provide a custom [media type](https://docs.github.com/[email protected]/rest/overview/media-types) in the `Accept` header:
6386-
```shell
6387-
application/vnd.github.scarlet-witch-preview+json
6388-
```
63896363
category: codes-of-conduct
63906364
subcategory:
63916365
"/emojis":
@@ -17574,26 +17548,6 @@ paths:
1757417548
- key
1757517549
- name
1757617550
- html_url
17577-
security_and_analysis:
17578-
nullable: true
17579-
type: object
17580-
properties:
17581-
advanced_security:
17582-
type: object
17583-
properties:
17584-
status:
17585-
type: string
17586-
enum:
17587-
- enabled
17588-
- disabled
17589-
secret_scanning:
17590-
type: object
17591-
properties:
17592-
status:
17593-
type: string
17594-
enum:
17595-
- enabled
17596-
- disabled
1759717551
required: &153
1759817552
- archive_url
1759917553
- assignees_url
@@ -51709,10 +51663,10 @@ paths:
5170951663
subcategory: management-console
5171051664
post:
5171151665
summary: Enable or disable maintenance mode
51712-
description: |-
51713-
The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.
51714-
51715-
The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).
51666+
description: "**Note:** The request body for this operation must be submitted
51667+
as `application/x-www-form-urlencoded` data. You can submit a parameter value
51668+
as a string, or you can use a tool such as `curl` to submit a parameter value
51669+
as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode)."
5171651670
operationId: enterprise-admin/enable-or-disable-maintenance-mode
5171751671
tags:
5171851672
- enterprise-admin
@@ -51732,15 +51686,22 @@ paths:
5173251686
value: *336
5173351687
requestBody:
5173451688
content:
51735-
application/json:
51689+
application/x-www-form-urlencoded:
5173651690
schema:
5173751691
type: object
5173851692
properties:
5173951693
maintenance:
5174051694
type: string
51741-
description: A JSON string with the attributes `enabled` and `when`.
51695+
description: |-
51696+
A JSON string with the attributes `enabled` and `when`.
51697+
51698+
The possible values for `enabled` are `true` and `false`. When it's `false`, the attribute `when` is ignored and the maintenance mode is turned off. `when` defines the time period when the maintenance was enabled.
51699+
51700+
The possible values for `when` are `now` or any date parseable by [mojombo/chronic](https://github.com/mojombo/chronic).
5174251701
required:
5174351702
- maintenance
51703+
example:
51704+
maintenance: '{"enabled":true, "when":"now"}'
5174451705
x-github:
5174551706
githubCloudOnly: false
5174651707
enabledForGitHubApps: false
@@ -52192,7 +52153,10 @@ paths:
5219252153
subcategory: management-console
5219352154
put:
5219452155
summary: Set settings
52195-
description: For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52156+
description: |-
52157+
For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52158+
52159+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
5219652160
operationId: enterprise-admin/set-settings
5219752161
tags:
5219852162
- enterprise-admin
@@ -52204,16 +52168,19 @@ paths:
5220452168
description: Response
5220552169
requestBody:
5220652170
content:
52207-
application/json:
52171+
application/x-www-form-urlencoded:
5220852172
schema:
5220952173
type: object
5221052174
properties:
5221152175
settings:
5221252176
type: string
5221352177
description: A JSON string with the new settings. Note that you
52214-
only need to pass the specific settings you want to modify.
52178+
only need to pass the specific settings you want to modify. For
52179+
a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
5221552180
required:
5221652181
- settings
52182+
example:
52183+
settings: '{ "enterprise": { "public_pages": true }}'
5221752184
x-github:
5221852185
githubCloudOnly: false
5221952186
enabledForGitHubApps: false
@@ -52259,7 +52226,10 @@ paths:
5225952226
subcategory: management-console
5226052227
post:
5226152228
summary: Add an authorized SSH key
52262-
description: ''
52229+
description: "**Note:** The request body for this operation must be submitted
52230+
as `application/x-www-form-urlencoded` data. You can submit a parameter value
52231+
as a string, or you can use a tool such as `curl` to submit a parameter value
52232+
as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode)."
5226352233
operationId: enterprise-admin/add-authorized-ssh-key
5226452234
tags:
5226552235
- enterprise-admin
@@ -52281,15 +52251,17 @@ paths:
5228152251
value: *338
5228252252
requestBody:
5228352253
content:
52284-
application/json:
52254+
application/x-www-form-urlencoded:
5228552255
schema:
5228652256
type: object
5228752257
properties:
5228852258
authorized_key:
5228952259
type: string
52290-
description: The path to the public SSH key.
52260+
description: The public SSH key.
5229152261
required:
5229252262
- authorized_key
52263+
example:
52264+
authorized_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCssTL/Vtu/ODLTj0VtZoRAbvf7uiv5997GyDq0MoAZUjb5jmA5wYe2/wF6sFuhiZTnZoF1ZtCHunPp0hM/GHrn6VySBhNncx14YO8FPt1CIhEeRMSEjUK9cY3xAbS365oXY8vnUHJsS9+1tr/2bx/+4NJfcUt/Ezf1OR/0LStQXw==
5229352265
x-github:
5229452266
githubCloudOnly: false
5229552267
enabledForGitHubApps: false
@@ -52298,7 +52270,10 @@ paths:
5229852270
subcategory: management-console
5229952271
delete:
5230052272
summary: Remove an authorized SSH key
52301-
description: ''
52273+
description: "**Note:** The request body for this operation must be submitted
52274+
as `application/x-www-form-urlencoded` data. You can submit a parameter value
52275+
as a string, or you can use a tool such as `curl` to submit a parameter value
52276+
as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode)."
5230252277
operationId: enterprise-admin/remove-authorized-ssh-key
5230352278
tags:
5230452279
- enterprise-admin
@@ -52320,15 +52295,17 @@ paths:
5232052295
value: *338
5232152296
requestBody:
5232252297
content:
52323-
application/json:
52298+
application/x-www-form-urlencoded:
5232452299
schema:
5232552300
type: object
5232652301
properties:
5232752302
authorized_key:
5232852303
type: string
52329-
description: The path to the public SSH key.
52304+
description: The public SSH key.
5233052305
required:
5233152306
- authorized_key
52307+
example:
52308+
authorized_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQCssTL/Vtu/ODLTj0VtZoRAbvf7uiv5997GyDq0MoAZUjb5jmA5wYe2/wF6sFuhiZTnZoF1ZtCHunPp0hM/GHrn6VySBhNncx14YO8FPt1CIhEeRMSEjUK9cY3xAbS365oXY8vnUHJsS9+1tr/2bx/+4NJfcUt/Ezf1OR/0LStQXw==
5233252309
x-github:
5233352310
githubCloudOnly: false
5233452311
enabledForGitHubApps: false
@@ -52339,16 +52316,16 @@ paths:
5233952316
post:
5234052317
summary: Create a GitHub license
5234152318
description: |-
52342-
When you boot a GitHub instance for the first time, you can use the following endpoint to upload a license:
52319+
When you boot a GitHub instance for the first time, you can use the following endpoint to upload a license.
5234352320

52344-
Note that you need to POST to [`/setup/api/configure`](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#start-a-configuration-process) to start the actual configuration process.
52321+
Note that you need to `POST` to [`/setup/api/configure`](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#start-a-configuration-process) to start the actual configuration process.
5234552322

5234652323
When using this endpoint, your GitHub instance must have a password set. This can be accomplished two ways:
5234752324

5234852325
1. If you're working directly with the API before accessing the web interface, you must pass in the password parameter to set your password.
5234952326
2. If you set up your instance via the web interface before accessing the API, your calls to this endpoint do not need the password parameter.
5235052327

52351-
For a list of the available settings, see the [Get settings endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
52328+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
5235252329
operationId: enterprise-admin/create-enterprise-server-license
5235352330
tags:
5235452331
- enterprise-admin
@@ -52360,7 +52337,7 @@ paths:
5236052337
description: Response
5236152338
requestBody:
5236252339
content:
52363-
application/json:
52340+
application/x-www-form-urlencoded:
5236452341
schema:
5236552342
type: object
5236652343
properties:
@@ -52375,7 +52352,8 @@ paths:
5237552352
settings:
5237652353
type: string
5237752354
description: An optional JSON string containing the installation
52378-
settings.
52355+
settings. For a list of the available settings, see the [Get settings
52356+
endpoint](https://docs.github.com/[email protected]/rest/reference/enterprise-admin#get-settings).
5237952357
required:
5238052358
- license
5238152359
x-github:
@@ -52387,8 +52365,10 @@ paths:
5238752365
"/setup/api/upgrade":
5238852366
post:
5238952367
summary: Upgrade a license
52390-
description: 'This API upgrades your license and also triggers the configuration
52391-
process:'
52368+
description: |-
52369+
This API upgrades your license and also triggers the configuration process.
52370+
52371+
**Note:** The request body for this operation must be submitted as `application/x-www-form-urlencoded` data. You can submit a parameter value as a string, or you can use a tool such as `curl` to submit a parameter value as the contents of a text file. For more information, see the [`curl` documentation](https://curl.se/docs/manpage.html#--data-urlencode).
5239252372
operationId: enterprise-admin/upgrade-license
5239352373
tags:
5239452374
- enterprise-admin
@@ -52400,7 +52380,7 @@ paths:
5240052380
description: Response
5240152381
requestBody:
5240252382
content:
52403-
application/json:
52383+
application/x-www-form-urlencoded:
5240452384
schema:
5240552385
type: object
5240652386
properties:

0 commit comments

Comments
 (0)