-
Notifications
You must be signed in to change notification settings - Fork 371
Expand file tree
/
Copy pathget_info.html
More file actions
123 lines (101 loc) · 2.78 KB
/
Copy pathget_info.html
File metadata and controls
123 lines (101 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html>
<head>
<title>Info API</title>
<meta charset="utf-8">
<link id="bootstrapcss" rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" />
<script>
if( "file:" == document.location.protocol ) {
var csslink = document.getElementById("bootstrapcss");
csslink.href = "http://" + csslink.href.replace(/.*\/\//, "");
}
</script>
<style>
p {
padding: 15px;
font-size: 130%;
}
pre {
white-space: pre;
}
td.required .name:after {
float: right;
content: " required";
font-weight: normal;
color: #F08080;
}
td.experimental:after {
float: right;
content: " experimental";
font-weight: normal;
color: #FFA500;
padding: 2px;
}
tr.deprecated td:first-child:before {
content: "deprecated: ";
font-weight: bold;
color: gray;
}
tr.deprecated span, tr.deprecated ul {
text-decoration: line-through;
color: gray;
}
tr.readonly .name:after {
float: right;
content: " read-only";
font-weight: normal;
}
tr.readonly {
color: grey;
}
table ul {
padding-left: 1.2em;
}
</style>
</head>
<body>
<div class="container">
<h1>Info API</h1>
<div class="article">
<h2>Get Info</h2>
<h3>GET /v2/info</h3>
<h3>Request</h3>
<h4>Route</h4>
<pre class="request route highlight">GET /v2/info</pre>
<h4>Headers</h4>
<pre class="request headers">Host: example.org
Cookie: </pre>
<h4>cURL</h4>
<pre class="request curl">curl "https://api.[your-domain.com]/v2/info" -X GET \
-H "Host: example.org" \
-H "Cookie: "</pre>
<h3>Response</h3>
<h4>Status</h4>
<pre class="response status">200 OK</pre>
<h4>Body</h4>
<pre class="response body">{
"name": "vcap",
"build": "2222",
"support": "http://support.cloudfoundry.com",
"version": 2,
"description": "Cloud Foundry sponsored by Pivotal",
"authorization_endpoint": "http://localhost:8080/uaa",
"token_endpoint": "http://localhost:8080/uaa",
"min_cli_version": null,
"min_recommended_cli_version": null,
"api_version": "2.283.0",
"app_ssh_endpoint": "ssh.system.domain.example.com:2222",
"app_ssh_host_key_fingerprint": "47:0d:d1:c8:c3:3d:0a:36:d1:49:2f:f2:90:27:31:d0",
"app_ssh_oauth_client": null,
"routing_endpoint": "http://localhost:3000",
"logging_endpoint": "ws://loggregator.127.0.0.1.nip.io:80"
}</pre>
<h4>Headers</h4>
<pre class="response headers">Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 3e3ed0b0-6537-4497-8c9c-73666359bfd4
Content-Length: 573
X-Content-Type-Options: nosniff</pre>
</div>
</div>
</body>
</html>