Skip to content
Permalink
Browse files

fix: add deprecated find-user-installation route

  • Loading branch information...
gr2m committed Apr 18, 2019
1 parent d79523e commit c60d9e171193ae0a7c507b1c7d91d2d6f52a75b8
@@ -743,6 +743,91 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation"
},
{
"name": "Find repository installation",
"enabledForApps": false,
"githubCloudOnly": false,
"method": "GET",
"path": "/users/:username/installation",
"previews": [
{
"name": "machine-man",
"description": "**Note:** To access the API with your GitHub App, you must provide a custom [media type](/v3/media) in the `Accept` Header for your requests.\n\n`application/vnd.github.machine-man-preview+json`",
"required": true
}
],
"params": [
{
"name": "username",
"type": "string",
"required": true,
"description": "",
"location": "url"
}
],
"description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
"responses": [
{
"headers": {
"status": "200 OK",
"content-type": "application/json; charset=utf-8"
},
"body": {
"id": 3,
"account": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"repository_selection": "selected",
"access_tokens_url": "https://api.github.com/installations/3/access_tokens",
"repositories_url": "https://api.github.com/installation/repositories",
"html_url": "https://github.com/organizations/github/settings/installations/3",
"app_id": 2,
"target_id": 1,
"target_type": "User",
"permissions": {
"checks": "write",
"metadata": "read",
"contents": "read"
},
"events": [
"label"
],
"created_at": "2018-02-22T20:51:14Z",
"updated_at": "2018-02-22T20:51:14Z",
"single_file_name": null
}
}
],
"idName": "find-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation",
"deprecated": {
"date": "2019-04-10",
"message": "\"Find repository installation\" renamed to \"Get a repository installation\"",
"before": {
"idName": "find-user-installation"
},
"after": {
"idName": "get-user-installation"
}
}
},
{
"name": "Create a GitHub App from a manifest",
"enabledForApps": false,
@@ -0,0 +1,85 @@
{
"name": "Find repository installation",
"enabledForApps": false,
"githubCloudOnly": false,
"method": "GET",
"path": "/users/:username/installation",
"previews": [
{
"name": "machine-man",
"description": "**Note:** To access the API with your GitHub App, you must provide a custom [media type](/v3/media) in the `Accept` Header for your requests.\n\n`application/vnd.github.machine-man-preview+json`",
"required": true
}
],
"params": [
{
"name": "username",
"type": "string",
"required": true,
"description": "",
"location": "url"
}
],
"description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
"responses": [
{
"headers": {
"status": "200 OK",
"content-type": "application/json; charset=utf-8"
},
"body": {
"id": 3,
"account": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"repository_selection": "selected",
"access_tokens_url": "https://api.github.com/installations/3/access_tokens",
"repositories_url": "https://api.github.com/installation/repositories",
"html_url": "https://github.com/organizations/github/settings/installations/3",
"app_id": 2,
"target_id": 1,
"target_type": "User",
"permissions": {
"checks": "write",
"metadata": "read",
"contents": "read"
},
"events": [
"label"
],
"created_at": "2018-02-22T20:51:14Z",
"updated_at": "2018-02-22T20:51:14Z",
"single_file_name": null
}
}
],
"idName": "find-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation",
"deprecated": {
"date": "2019-04-10",
"message": "\"Find repository installation\" renamed to \"Get a repository installation\"",
"before": {
"idName": "find-user-installation"
},
"after": {
"idName": "get-user-installation"
}
}
}
@@ -2895,6 +2895,91 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation"
},
{
"name": "Find repository installation",
"enabledForApps": false,
"githubCloudOnly": false,
"method": "GET",
"path": "/users/:username/installation",
"previews": [
{
"name": "machine-man",
"description": "**Note:** To access the API with your GitHub App, you must provide a custom [media type](/v3/media) in the `Accept` Header for your requests.\n\n`application/vnd.github.machine-man-preview+json`",
"required": true
}
],
"params": [
{
"name": "username",
"type": "string",
"required": true,
"description": "",
"location": "url"
}
],
"description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
"responses": [
{
"headers": {
"status": "200 OK",
"content-type": "application/json; charset=utf-8"
},
"body": {
"id": 3,
"account": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"repository_selection": "selected",
"access_tokens_url": "https://api.github.com/installations/3/access_tokens",
"repositories_url": "https://api.github.com/installation/repositories",
"html_url": "https://github.com/organizations/github/settings/installations/3",
"app_id": 2,
"target_id": 1,
"target_type": "User",
"permissions": {
"checks": "write",
"metadata": "read",
"contents": "read"
},
"events": [
"label"
],
"created_at": "2018-02-22T20:51:14Z",
"updated_at": "2018-02-22T20:51:14Z",
"single_file_name": null
}
}
],
"idName": "find-user-installation",
"documentationUrl": "https://developer.github.com/v3/apps/#get-a-user-installation",
"deprecated": {
"date": "2019-04-10",
"message": "\"Find repository installation\" renamed to \"Get a repository installation\"",
"before": {
"idName": "find-user-installation"
},
"after": {
"idName": "get-user-installation"
}
}
},
{
"name": "Create a GitHub App from a manifest",
"enabledForApps": false,
@@ -694,6 +694,90 @@
"idName": "get-user-installation",
"documentationUrl": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-user-installation"
},
{
"name": "Find repository installation",
"enabledForApps": false,
"method": "GET",
"path": "/users/:username/installation",
"previews": [
{
"name": "machine-man",
"description": "**Note:** To access the API with your GitHub App, you must provide a custom [media type](/enterprise/2.14/v3/media) in the `Accept` Header for your requests.\n\n`application/vnd.github.machine-man-preview+json`",
"required": true
}
],
"params": [
{
"name": "username",
"type": "string",
"required": true,
"description": "",
"location": "url"
}
],
"description": "Enables an authenticated GitHub App to find the user’s installation information.\n\nYou must use a [JWT](/enterprise/2.14/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.",
"responses": [
{
"headers": {
"status": "200 OK",
"content-type": "application/json; charset=utf-8"
},
"body": {
"id": 3,
"account": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"repos_url": "https://api.github.com/users/octocat/repos",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"type": "User",
"site_admin": false
},
"repository_selection": "selected",
"access_tokens_url": "https://api.github.com/installations/3/access_tokens",
"repositories_url": "https://api.github.com/installation/repositories",
"html_url": "https://github.com/organizations/github/settings/installations/3",
"app_id": 2,
"target_id": 1,
"target_type": "User",
"permissions": {
"checks": "write",
"metadata": "read",
"contents": "read"
},
"events": [
"label"
],
"created_at": "2018-02-22T20:51:14Z",
"updated_at": "2018-02-22T20:51:14Z",
"single_file_name": null
}
}
],
"idName": "find-user-installation",
"documentationUrl": "https://developer.github.com/enterprise/2.14/v3/apps/#get-a-user-installation",
"deprecated": {
"date": "2019-04-10",
"message": "\"Find repository installation\" renamed to \"Get a repository installation\"",
"before": {
"idName": "find-user-installation"
},
"after": {
"idName": "get-user-installation"
}
}
},
{
"name": "List repositories",
"enabledForApps": true,

0 comments on commit c60d9e1

Please sign in to comment.
You can’t perform that action at this time.