メタ情報
Meta APIは、GitHub Enterprise ServerサービスのIPアドレスを含むGitHub Enterprise Serverに関するメタ情報を返します。
GitHub API Root
Works with GitHub Apps
Get Hypermedia links to resources accessible in GitHub's REST API
HTTP response status codes
| Status code | 説明 |
|---|---|
200 | OK |
コードサンプル
get/
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://HOSTNAME/api/v3/Response
Status: 200Get GitHub Enterprise Server meta information
Works with GitHub Apps
HTTP response status codes
| Status code | 説明 |
|---|---|
200 | OK |
304 | Not modified |
コードサンプル
get/meta
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://HOSTNAME/api/v3/metaResponse
Status: 200{
"verifiable_password_authentication": true,
"packages": [
"192.30.252.0/22"
],
"dependabot": [
"54.158.161.132"
],
"installed_version": "3.2.0"
}Get Octocat
Works with GitHub Apps
Get the octocat as ASCII art
パラメータ
| Headers |
|---|
| 名前, 種類, 説明 |
acceptstringSetting to |
| クエリパラメータ |
| 名前, 種類, 説明 |
sstringThe words to show in Octocat's speech bubble |
HTTP response status codes
| Status code | 説明 |
|---|---|
200 | OK |
コードサンプル
get/octocat
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://HOSTNAME/api/v3/octocatResponse
Status: 200Get the Zen of GitHub
Works with GitHub Apps
コードサンプル
get/zen
curl \
-H "Accept: application/vnd.github.v3+json" \
http(s)://HOSTNAME/api/v3/zenResponse
Status: 200