Skip to content

Commit

Permalink
feat(#1153): octokit.apps.createContentAttachment()
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeper[bot] authored and gr2m committed Dec 10, 2018
1 parent 20f55cf commit 2fa40d0
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 18 deletions.
26 changes: 9 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"devDependencies": {
"@gimenete/type-writer": "^0.1.3",
"@octokit/fixtures-server": "^3.0.3",
"@octokit/routes": "15.2.0",
"@octokit/routes": "15.4.1",
"@types/node": "^10.1.2",
"apidoc": "^0.17.6",
"bundlesize": "^0.17.0",
Expand Down
59 changes: 59 additions & 0 deletions plugins/rest-api-endpoints/routes.json
Expand Up @@ -557,6 +557,27 @@
},
"url": "/marketplace_listing/stubbed/accounts/:account_id"
},
"createContentAttachment": {
"headers": {
"accept": "application/vnd.github.corsair-preview+json"
},
"method": "POST",
"params": {
"body": {
"required": true,
"type": "string"
},
"content_reference_id": {
"required": true,
"type": "integer"
},
"title": {
"required": true,
"type": "string"
}
},
"url": "/content_references/:content_reference_id/attachments"
},
"createFromManifest": {
"headers": {
"accept": "application/vnd.github.fury-preview+json"
Expand Down Expand Up @@ -3219,6 +3240,9 @@
"url": "/repos/:owner/:repo/import"
},
"deleteArchiveForAuthenticatedUser": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "DELETE",
"params": {
"migration_id": {
Expand All @@ -3229,6 +3253,9 @@
"url": "/user/migrations/:migration_id/archive"
},
"deleteArchiveForOrg": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "DELETE",
"params": {
"migration_id": {
Expand All @@ -3243,6 +3270,9 @@
"url": "/orgs/:org/migrations/:migration_id/archive"
},
"getArchiveForAuthenticatedUser": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"migration_id": {
Expand All @@ -3253,6 +3283,9 @@
"url": "/user/migrations/:migration_id/archive"
},
"getArchiveForOrg": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"migration_id": {
Expand Down Expand Up @@ -3321,6 +3354,9 @@
"url": "/repos/:owner/:repo/import/large_files"
},
"getStatusForAuthenticatedUser": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"migration_id": {
Expand All @@ -3331,6 +3367,9 @@
"url": "/user/migrations/:migration_id"
},
"getStatusForOrg": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"migration_id": {
Expand All @@ -3345,6 +3384,9 @@
"url": "/orgs/:org/migrations/:migration_id"
},
"listForAuthenticatedUser": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"page": {
Expand All @@ -3357,6 +3399,9 @@
"url": "/user/migrations"
},
"listForOrg": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "GET",
"params": {
"org": {
Expand Down Expand Up @@ -3500,6 +3545,9 @@
"url": "/repos/:owner/:repo/import"
},
"unlockRepoForAuthenticatedUser": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "DELETE",
"params": {
"migration_id": {
Expand All @@ -3514,6 +3562,9 @@
"url": "/user/migrations/:migration_id/repos/:repo_name/lock"
},
"unlockRepoForOrg": {
"headers": {
"accept": "application/vnd.github.wyandotte-preview+json"
},
"method": "DELETE",
"params": {
"migration_id": {
Expand Down Expand Up @@ -4326,6 +4377,14 @@
"location": {
"type": "string"
},
"members_allowed_repository_creation_type": {
"enum": [
"all",
"private",
"none"
],
"type": "string"
},
"members_can_create_repositories": {
"type": "boolean"
},
Expand Down

0 comments on commit 2fa40d0

Please sign in to comment.