Skip to content

Commit

Permalink
Add decorated OpenAPI schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-openapi-bot committed Jun 7, 2022
1 parent 1b294e7 commit 14a4b6a
Show file tree
Hide file tree
Showing 7 changed files with 229 additions and 42 deletions.
61 changes: 55 additions & 6 deletions lib/rest/static/decorated/api.github.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -189704,7 +189704,7 @@
},
{
"httpStatusCode": "204",
"description": "<p>Response when person is already a collaborator</p>"
"description": "<p>Response when:</p>\n<ul>\n<li>an existing collaborator is added as a collaborator</li>\n<li>an organization member is added as an individual collaborator</li>\n<li>an existing team member (whose team is also a repository collaborator) is added as an individual collaborator</li>\n</ul>"
},
{
"httpStatusCode": "403",
Expand Down Expand Up @@ -231469,8 +231469,17 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json"
"description": "Creating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "Example of a gist",
"public": false,
"files": {
"README.md": {
"content": "Hello World"
}
}
}
},
"response": {
"statusCode": "201",
Expand Down Expand Up @@ -235226,8 +235235,16 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "An update to a gist",
"files": {
"README.md": {
"content": "Hello World from GitHub"
}
}
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -241081,8 +241098,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Creating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is a comment to a gist"
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -241778,8 +241798,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is an update to a comment in a gist"
},
"parameters": {
"gist_id": "GIST_ID",
"comment_id": "COMMENT_ID"
Expand Down Expand Up @@ -489644,6 +489667,19 @@
"format": "date-time",
"readOnly": true
},
"updated_at": {
"anyOf": [
{
"type": "null"
},
{
"type": "string",
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"format": "date-time",
"readOnly": true
}
]
},
"url": {
"type": "string",
"description": "The REST API URL of the alert resource.",
Expand Down Expand Up @@ -492601,6 +492637,19 @@
"format": "date-time",
"readOnly": true
},
"updated_at": {
"anyOf": [
{
"type": "null"
},
{
"type": "string",
"description": "The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.",
"format": "date-time",
"readOnly": true
}
]
},
"url": {
"type": "string",
"description": "The REST API URL of the alert resource.",
Expand Down
35 changes: 29 additions & 6 deletions lib/rest/static/decorated/ghes-3.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -124852,7 +124852,7 @@
},
{
"httpStatusCode": "204",
"description": "<p>Response when person is already a collaborator</p>"
"description": "<p>Response when:</p>\n<ul>\n<li>an existing collaborator is added as a collaborator</li>\n<li>an organization member is added as an individual collaborator</li>\n<li>an existing team member (whose team is also a repository collaborator) is added as an individual collaborator</li>\n</ul>"
},
{
"httpStatusCode": "403",
Expand Down Expand Up @@ -166543,8 +166543,17 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json"
"description": "Creating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "Example of a gist",
"public": false,
"files": {
"README.md": {
"content": "Hello World"
}
}
}
},
"response": {
"statusCode": "201",
Expand Down Expand Up @@ -170300,8 +170309,16 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "An update to a gist",
"files": {
"README.md": {
"content": "Hello World from GitHub"
}
}
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -176155,8 +176172,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Creating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is a comment to a gist"
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -176852,8 +176872,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is an update to a comment in a gist"
},
"parameters": {
"gist_id": "GIST_ID",
"comment_id": "COMMENT_ID"
Expand Down
35 changes: 29 additions & 6 deletions lib/rest/static/decorated/ghes-3.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -128102,7 +128102,7 @@
},
{
"httpStatusCode": "204",
"description": "<p>Response when person is already a collaborator</p>"
"description": "<p>Response when:</p>\n<ul>\n<li>an existing collaborator is added as a collaborator</li>\n<li>an organization member is added as an individual collaborator</li>\n<li>an existing team member (whose team is also a repository collaborator) is added as an individual collaborator</li>\n</ul>"
},
{
"httpStatusCode": "403",
Expand Down Expand Up @@ -172286,8 +172286,17 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json"
"description": "Creating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "Example of a gist",
"public": false,
"files": {
"README.md": {
"content": "Hello World"
}
}
}
},
"response": {
"statusCode": "201",
Expand Down Expand Up @@ -176043,8 +176052,16 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "An update to a gist",
"files": {
"README.md": {
"content": "Hello World from GitHub"
}
}
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -181898,8 +181915,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Creating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is a comment to a gist"
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -182595,8 +182615,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is an update to a comment in a gist"
},
"parameters": {
"gist_id": "GIST_ID",
"comment_id": "COMMENT_ID"
Expand Down
35 changes: 29 additions & 6 deletions lib/rest/static/decorated/ghes-3.3.json
Original file line number Diff line number Diff line change
Expand Up @@ -128395,7 +128395,7 @@
},
{
"httpStatusCode": "204",
"description": "<p>Response when person is already a collaborator</p>"
"description": "<p>Response when:</p>\n<ul>\n<li>an existing collaborator is added as a collaborator</li>\n<li>an organization member is added as an individual collaborator</li>\n<li>an existing team member (whose team is also a repository collaborator) is added as an individual collaborator</li>\n</ul>"
},
{
"httpStatusCode": "403",
Expand Down Expand Up @@ -172868,8 +172868,17 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"acceptHeader": "application/vnd.github.v3+json"
"description": "Creating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "Example of a gist",
"public": false,
"files": {
"README.md": {
"content": "Hello World"
}
}
}
},
"response": {
"statusCode": "201",
Expand Down Expand Up @@ -176625,8 +176634,16 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"description": "An update to a gist",
"files": {
"README.md": {
"content": "Hello World from GitHub"
}
}
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -182480,8 +182497,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Creating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is a comment to a gist"
},
"parameters": {
"gist_id": "GIST_ID"
}
Expand Down Expand Up @@ -183177,8 +183197,11 @@
"key": "default",
"request": {
"contentType": "application/json",
"description": "Example",
"description": "Updating a comment in a gist",
"acceptHeader": "application/vnd.github.v3+json",
"bodyParameters": {
"body": "This is an update to a comment in a gist"
},
"parameters": {
"gist_id": "GIST_ID",
"comment_id": "COMMENT_ID"
Expand Down
Loading

0 comments on commit 14a4b6a

Please sign in to comment.