diff --git a/lib/rest/static/decorated/api.github.com.json b/lib/rest/static/decorated/api.github.com.json
index 1cb133edc2..b47f62361c 100644
--- a/lib/rest/static/decorated/api.github.com.json
+++ b/lib/rest/static/decorated/api.github.com.json
@@ -189704,7 +189704,7 @@
},
{
"httpStatusCode": "204",
- "description": "
Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -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",
@@ -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"
}
@@ -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"
}
@@ -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"
@@ -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.",
@@ -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.",
diff --git a/lib/rest/static/decorated/ghes-3.1.json b/lib/rest/static/decorated/ghes-3.1.json
index c759240d7e..869caffe88 100644
--- a/lib/rest/static/decorated/ghes-3.1.json
+++ b/lib/rest/static/decorated/ghes-3.1.json
@@ -124852,7 +124852,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -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",
@@ -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"
}
@@ -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"
}
@@ -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"
diff --git a/lib/rest/static/decorated/ghes-3.2.json b/lib/rest/static/decorated/ghes-3.2.json
index 7fbbe39915..900bc36309 100644
--- a/lib/rest/static/decorated/ghes-3.2.json
+++ b/lib/rest/static/decorated/ghes-3.2.json
@@ -128102,7 +128102,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -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",
@@ -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"
}
@@ -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"
}
@@ -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"
diff --git a/lib/rest/static/decorated/ghes-3.3.json b/lib/rest/static/decorated/ghes-3.3.json
index 9ecbee339b..8431fffd67 100644
--- a/lib/rest/static/decorated/ghes-3.3.json
+++ b/lib/rest/static/decorated/ghes-3.3.json
@@ -128395,7 +128395,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -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",
@@ -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"
}
@@ -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"
}
@@ -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"
diff --git a/lib/rest/static/decorated/ghes-3.4.json b/lib/rest/static/decorated/ghes-3.4.json
index dffa30e1e1..c179bb1cfa 100644
--- a/lib/rest/static/decorated/ghes-3.4.json
+++ b/lib/rest/static/decorated/ghes-3.4.json
@@ -132655,7 +132655,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -180784,8 +180784,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",
@@ -184541,8 +184550,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"
}
@@ -190396,8 +190413,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"
}
@@ -191093,8 +191113,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"
diff --git a/lib/rest/static/decorated/ghes-3.5.json b/lib/rest/static/decorated/ghes-3.5.json
index 465aeb0c8a..7bd29dcbb9 100644
--- a/lib/rest/static/decorated/ghes-3.5.json
+++ b/lib/rest/static/decorated/ghes-3.5.json
@@ -144450,7 +144450,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -192623,8 +192623,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",
@@ -196380,8 +196389,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"
}
@@ -202235,8 +202252,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"
}
@@ -202932,8 +202952,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"
diff --git a/lib/rest/static/decorated/github.ae.json b/lib/rest/static/decorated/github.ae.json
index 7a72a870c8..b0883d1155 100644
--- a/lib/rest/static/decorated/github.ae.json
+++ b/lib/rest/static/decorated/github.ae.json
@@ -128023,7 +128023,7 @@
},
{
"httpStatusCode": "204",
- "description": "Response when person is already a collaborator
"
+ "description": "Response when:
\n\n- an existing collaborator is added as a collaborator
\n- an organization member is added as an individual collaborator
\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator
\n
"
},
{
"httpStatusCode": "403",
@@ -169522,8 +169522,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",
@@ -173279,8 +173288,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"
}
@@ -179134,8 +179151,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"
}
@@ -179831,8 +179851,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"
diff --git a/lib/rest/static/dereferenced/api.github.com.deref.json b/lib/rest/static/dereferenced/api.github.com.deref.json
index 7d26f7c513..bdf4cba019 100644
--- a/lib/rest/static/dereferenced/api.github.com.deref.json
+++ b/lib/rest/static/dereferenced/api.github.com.deref.json
@@ -28748,6 +28748,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.",
@@ -36979,6 +36992,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -41025,6 +41052,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -42875,6 +42915,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -43675,6 +43723,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -124645,6 +124701,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.",
@@ -254924,7 +254993,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/ghes-3.1.deref.json b/lib/rest/static/dereferenced/ghes-3.1.deref.json
index 74ff511ee5..71374099ad 100644
--- a/lib/rest/static/dereferenced/ghes-3.1.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.1.deref.json
@@ -40191,6 +40191,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -44237,6 +44251,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -46087,6 +46114,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -46887,6 +46922,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -197202,7 +197245,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/ghes-3.2.deref.json b/lib/rest/static/dereferenced/ghes-3.2.deref.json
index 631375ca22..7d2d362834 100644
--- a/lib/rest/static/dereferenced/ghes-3.2.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.2.deref.json
@@ -41281,6 +41281,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -45327,6 +45341,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -47177,6 +47204,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -47977,6 +48012,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -201636,7 +201679,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/ghes-3.3.deref.json b/lib/rest/static/dereferenced/ghes-3.3.deref.json
index 590d0b2dfb..28d52138ca 100644
--- a/lib/rest/static/dereferenced/ghes-3.3.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.3.deref.json
@@ -41531,6 +41531,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -45577,6 +45591,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -47427,6 +47454,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -48227,6 +48262,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -205202,7 +205245,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/ghes-3.4.deref.json b/lib/rest/static/dereferenced/ghes-3.4.deref.json
index 1cfb3ccb40..c8e8187ad1 100644
--- a/lib/rest/static/dereferenced/ghes-3.4.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.4.deref.json
@@ -43625,6 +43625,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -47671,6 +47685,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -49521,6 +49548,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -50321,6 +50356,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -223424,7 +223467,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/ghes-3.5.deref.json b/lib/rest/static/dereferenced/ghes-3.5.deref.json
index 1f4ac4468e..0cd97ca762 100644
--- a/lib/rest/static/dereferenced/ghes-3.5.deref.json
+++ b/lib/rest/static/dereferenced/ghes-3.5.deref.json
@@ -44005,6 +44005,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -48051,6 +48065,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -49901,6 +49928,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -50701,6 +50736,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -235389,7 +235432,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",
diff --git a/lib/rest/static/dereferenced/github.ae.deref.json b/lib/rest/static/dereferenced/github.ae.deref.json
index f671e56133..d107fa3cad 100644
--- a/lib/rest/static/dereferenced/github.ae.deref.json
+++ b/lib/rest/static/dereferenced/github.ae.deref.json
@@ -24589,6 +24589,20 @@
"files"
],
"type": "object"
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a gist",
+ "value": {
+ "description": "Example of a gist",
+ "public": false,
+ "files": {
+ "README.md": {
+ "content": "Hello World"
+ }
+ }
+ }
+ }
}
}
}
@@ -28635,6 +28649,19 @@
"object",
"null"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a gist",
+ "value": {
+ "description": "An update to a gist",
+ "files": {
+ "README.md": {
+ "content": "Hello World from GitHub"
+ }
+ }
+ }
+ }
}
}
}
@@ -30485,6 +30512,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Creating a comment in a gist",
+ "value": {
+ "body": "This is a comment to a gist"
+ }
+ }
}
}
}
@@ -31285,6 +31320,14 @@
"required": [
"body"
]
+ },
+ "examples": {
+ "default": {
+ "summary": "Updating a comment in a gist",
+ "value": {
+ "body": "This is an update to a comment in a gist"
+ }
+ }
}
}
}
@@ -188452,7 +188495,7 @@
}
},
"204": {
- "description": "Response when person is already a collaborator"
+ "description": "Response when:\n- an existing collaborator is added as a collaborator\n- an organization member is added as an individual collaborator\n- an existing team member (whose team is also a repository collaborator) is added as an individual collaborator"
},
"422": {
"description": "Validation failed",