|
1 | 1 | { |
2 | 2 | "openapi": "3.0.3", |
3 | 3 | "info": { |
4 | | - "version": "7.14.0", |
| 4 | + "version": "8.0.0", |
5 | 5 | "title": "GitHub's official OpenAPI spec + Octokit extension", |
6 | 6 | "description": "OpenAPI specs from https://github.com/github/rest-api-description with the 'x-octokit' extension required by the Octokit SDKs", |
7 | 7 | "license": { |
|
103 | 103 | "name": "migrations", |
104 | 104 | "description": "Move projects to or from GitHub." |
105 | 105 | }, |
106 | | - { |
107 | | - "name": "oidc", |
108 | | - "description": "Endpoints to manage GitHub OIDC configuration using the REST API." |
109 | | - }, |
110 | 106 | { |
111 | 107 | "name": "orgs", |
112 | 108 | "description": "Interact with GitHub Orgs." |
|
135 | 131 | "name": "repos", |
136 | 132 | "description": "Interact with GitHub Repos." |
137 | 133 | }, |
138 | | - { |
139 | | - "name": "scim", |
140 | | - "description": "Provisioning of GitHub organization membership for SCIM-enabled providers." |
141 | | - }, |
142 | 134 | { |
143 | 135 | "name": "search", |
144 | 136 | "description": "Look for stuff on GitHub." |
|
33267 | 33259 | } |
33268 | 33260 | } |
33269 | 33261 | }, |
| 33262 | + "301": { |
| 33263 | + "$ref": "#/components/responses/moved_permanently" |
| 33264 | + }, |
| 33265 | + "404": { |
| 33266 | + "$ref": "#/components/responses/not_found" |
| 33267 | + }, |
33270 | 33268 | "410": { |
33271 | 33269 | "$ref": "#/components/responses/gone" |
33272 | 33270 | } |
|
33374 | 33372 | } |
33375 | 33373 | } |
33376 | 33374 | }, |
| 33375 | + "301": { |
| 33376 | + "$ref": "#/components/responses/moved_permanently" |
| 33377 | + }, |
| 33378 | + "404": { |
| 33379 | + "$ref": "#/components/responses/not_found" |
| 33380 | + }, |
33377 | 33381 | "410": { |
33378 | 33382 | "$ref": "#/components/responses/gone" |
33379 | 33383 | }, |
|
33484 | 33488 | } |
33485 | 33489 | } |
33486 | 33490 | }, |
| 33491 | + "301": { |
| 33492 | + "$ref": "#/components/responses/moved_permanently" |
| 33493 | + }, |
| 33494 | + "404": { |
| 33495 | + "$ref": "#/components/responses/not_found" |
| 33496 | + }, |
33487 | 33497 | "410": { |
33488 | 33498 | "$ref": "#/components/responses/gone" |
33489 | 33499 | }, |
|
33525 | 33535 | "204": { |
33526 | 33536 | "description": "Response" |
33527 | 33537 | }, |
| 33538 | + "301": { |
| 33539 | + "$ref": "#/components/responses/moved_permanently" |
| 33540 | + }, |
| 33541 | + "404": { |
| 33542 | + "$ref": "#/components/responses/not_found" |
| 33543 | + }, |
33528 | 33544 | "410": { |
33529 | 33545 | "$ref": "#/components/responses/gone" |
33530 | 33546 | } |
|
33588 | 33604 | } |
33589 | 33605 | } |
33590 | 33606 | }, |
| 33607 | + "301": { |
| 33608 | + "$ref": "#/components/responses/moved_permanently" |
| 33609 | + }, |
33591 | 33610 | "404": { |
33592 | 33611 | "$ref": "#/components/responses/not_found" |
33593 | 33612 | }, |
|
35721 | 35740 | "400": { |
35722 | 35741 | "$ref": "#/components/responses/bad_request" |
35723 | 35742 | }, |
| 35743 | + "409": { |
| 35744 | + "$ref": "#/components/responses/conflict" |
| 35745 | + }, |
35724 | 35746 | "422": { |
35725 | 35747 | "$ref": "#/components/responses/validation_failed" |
35726 | 35748 | } |
|
35758 | 35780 | "404": { |
35759 | 35781 | "$ref": "#/components/responses/not_found" |
35760 | 35782 | }, |
| 35783 | + "409": { |
| 35784 | + "$ref": "#/components/responses/conflict" |
| 35785 | + }, |
35761 | 35786 | "422": { |
35762 | 35787 | "$ref": "#/components/responses/validation_failed" |
35763 | 35788 | } |
|
40406 | 40431 | "/repos/{owner}/{repo}/stargazers": { |
40407 | 40432 | "get": { |
40408 | 40433 | "summary": "List stargazers", |
40409 | | - "description": "Lists the people that have starred the repository.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header:", |
| 40434 | + "description": "Lists the people that have starred the repository.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.", |
40410 | 40435 | "tags": [ |
40411 | 40436 | "activity" |
40412 | 40437 | ], |
|
48305 | 48330 | "/user/starred": { |
48306 | 48331 | "get": { |
48307 | 48332 | "summary": "List repositories starred by the authenticated user", |
48308 | | - "description": "Lists repositories the authenticated user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header:", |
| 48333 | + "description": "Lists repositories the authenticated user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.", |
48309 | 48334 | "tags": [ |
48310 | 48335 | "activity" |
48311 | 48336 | ], |
|
49835 | 49860 | "/users/{username}/starred": { |
49836 | 49861 | "get": { |
49837 | 49862 | "summary": "List repositories starred by a user", |
49838 | | - "description": "Lists repositories a user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header:", |
| 49863 | + "description": "Lists repositories a user has starred.\n\nYou can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/enterprise-server@3.2/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.", |
49839 | 49864 | "tags": [ |
49840 | 49865 | "activity" |
49841 | 49866 | ], |
|
53143 | 53168 | "example": 80 |
53144 | 53169 | }, |
53145 | 53170 | "size": { |
| 53171 | + "description": "The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.", |
53146 | 53172 | "type": "integer", |
53147 | 53173 | "example": 108 |
53148 | 53174 | }, |
|
56536 | 56562 | "example": 80 |
56537 | 56563 | }, |
56538 | 56564 | "size": { |
| 56565 | + "description": "The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.", |
56539 | 56566 | "type": "integer", |
56540 | 56567 | "example": 108 |
56541 | 56568 | }, |
|
57318 | 57345 | "type": "integer" |
57319 | 57346 | }, |
57320 | 57347 | "size": { |
| 57348 | + "description": "The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.", |
57321 | 57349 | "type": "integer" |
57322 | 57350 | }, |
57323 | 57351 | "default_branch": { |
|
60219 | 60247 | "example": 80 |
60220 | 60248 | }, |
60221 | 60249 | "size": { |
| 60250 | + "description": "The size of the repository. Size is calculated hourly. When a repository is initially created, the size is 0.", |
60222 | 60251 | "type": "integer", |
60223 | 60252 | "example": 108 |
60224 | 60253 | }, |
|
91782 | 91811 | }, |
91783 | 91812 | "secret_type": "adafruit_io_key", |
91784 | 91813 | "secret_type_display_name": "Adafruit IO Key", |
91785 | | - "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
| 91814 | + "secret": "aio_XXXXXXXXXXXXXXXXXXXXXXXXXXXX", |
| 91815 | + "push_protection_bypassed_by": { |
| 91816 | + "login": "monalisa", |
| 91817 | + "id": 2, |
| 91818 | + "node_id": "MDQ6VXNlcjI=", |
| 91819 | + "avatar_url": "https://alambic.github.com/avatars/u/2?", |
| 91820 | + "gravatar_id": "", |
| 91821 | + "url": "https://api.github.com/users/monalisa", |
| 91822 | + "html_url": "https://github.com/monalisa", |
| 91823 | + "followers_url": "https://api.github.com/users/monalisa/followers", |
| 91824 | + "following_url": "https://api.github.com/users/monalisa/following{/other_user}", |
| 91825 | + "gists_url": "https://api.github.com/users/monalisa/gists{/gist_id}", |
| 91826 | + "starred_url": "https://api.github.com/users/monalisa/starred{/owner}{/repo}", |
| 91827 | + "subscriptions_url": "https://api.github.com/users/monalisa/subscriptions", |
| 91828 | + "organizations_url": "https://api.github.com/users/monalisa/orgs", |
| 91829 | + "repos_url": "https://api.github.com/users/monalisa/repos", |
| 91830 | + "events_url": "https://api.github.com/users/monalisa/events{/privacy}", |
| 91831 | + "received_events_url": "https://api.github.com/users/monalisa/received_events", |
| 91832 | + "type": "User", |
| 91833 | + "site_admin": true |
| 91834 | + }, |
| 91835 | + "push_protection_bypassed": true, |
| 91836 | + "push_protection_bypassed_at": "2020-11-06T21:48:51Z" |
91786 | 91837 | }, |
91787 | 91838 | { |
91788 | 91839 | "number": 1, |
|
91796 | 91847 | "resolved_by": null, |
91797 | 91848 | "secret_type": "mailchimp_api_key", |
91798 | 91849 | "secret_type_display_name": "Mailchimp API Key", |
91799 | | - "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2" |
| 91850 | + "secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-us2", |
| 91851 | + "push_protection_bypassed_by": null, |
| 91852 | + "push_protection_bypassed": false, |
| 91853 | + "push_protection_bypassed_at": null |
91800 | 91854 | } |
91801 | 91855 | ] |
91802 | 91856 | }, |
|
95873 | 95927 | } |
95874 | 95928 | }, |
95875 | 95929 | "validation_failed_simple": { |
95876 | | - "description": "Validation failed", |
| 95930 | + "description": "Validation failed, or the endpoint has been spammed.", |
95877 | 95931 | "content": { |
95878 | 95932 | "application/json": { |
95879 | 95933 | "schema": { |
|
95898 | 95952 | } |
95899 | 95953 | }, |
95900 | 95954 | "validation_failed": { |
95901 | | - "description": "Validation failed", |
| 95955 | + "description": "Validation failed, or the endpoint has been spammed.", |
95902 | 95956 | "content": { |
95903 | 95957 | "application/json": { |
95904 | 95958 | "schema": { |
|
0 commit comments