Skip to content

Commit 9ee27e4

Browse files
reformat index
1 parent 09a1380 commit 9ee27e4

File tree

1 file changed

+55
-55
lines changed

1 file changed

+55
-55
lines changed

assets/api/index.html

+55-55
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8"/>
5-
<link rel="icon" type="image/png" href="/icon.png"/>
6-
<link rel="stylesheet" href="/index.css"/>
7-
<meta name="viewport" content="width=device-width"/>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/png" href="/icon.png" />
6+
<link rel="stylesheet" href="/index.css" />
7+
<meta name="viewport" content="width=device-width" />
88
<meta
9-
property="og:title"
10-
content="mcping.me minecraft server testing API"
9+
property="og:title"
10+
content="mcping.me minecraft server testing API"
1111
/>
12-
<meta property="og:type" content="website"/>
13-
<meta property="og:image" content="https://mcping.me/icon.png"/>
14-
<meta property="og:url" content="https://mcping.me/api/"/>
15-
<meta property="og:site_name" content="mcping.me"/>
12+
<meta property="og:type" content="website" />
13+
<meta property="og:image" content="https://mcping.me/icon.png" />
14+
<meta property="og:url" content="https://mcping.me/api/" />
15+
<meta property="og:site_name" content="mcping.me" />
1616
<meta
17-
property="og:description"
18-
content="A simple REST API for pinging Minecraft Java Edition and Bedrock edition servers. Also included: A system to test if some minecraft services are working. Free for all to use."
17+
property="og:description"
18+
content="A simple REST API for pinging Minecraft Java Edition and Bedrock edition servers. Also included: A system to test if some minecraft services are working. Free for all to use."
1919
/>
2020
<meta
21-
name="description"
22-
content="A simple REST API for pinging Minecraft Java Edition and Bedrock edition servers. Also included: A system to test if some minecraft services are working. Free for all to use."
21+
name="description"
22+
content="A simple REST API for pinging Minecraft Java Edition and Bedrock edition servers. Also included: A system to test if some minecraft services are working. Free for all to use."
2323
/>
2424
<title>Minecraft Server Testing API - mcping</title>
25-
</head>
25+
</head>
2626

27-
<body id="apiBody">
28-
<h1>MCping API</h1>
29-
<p>
30-
The MCping API is very simple. There is a Java API at /api/java/, and a
31-
bedrock api at /api/bedrock/. To specify what server to ping, you append
32-
that server to the end of the URL, like so:
33-
<a href="/api/java/mcping.me">/api/java/mcping.me</a>.
34-
</p>
35-
<p>
36-
The response will look as below, with an "icon" base64 PNG field added if
37-
the server has an icon. The latency is in milliseconds, from Toronto,
38-
Canada. Keep in mind that some servers may use signcode colors for the
39-
MOTD and player sample. Your application should handle this. The player
40-
sample is often used for advertising, so take it with a grain of salt. The
41-
Bedrock API response is the same, with the caveat of never returning the
42-
icon. The bedrock player list may also be synthetic.
43-
</p>
44-
<pre><code id="examplePingResponse">{
27+
<body id="apiBody">
28+
<h1>MCping API</h1>
29+
<p>
30+
The MCping API is very simple. There is a Java API at /api/java/, and a
31+
bedrock api at /api/bedrock/. To specify what server to ping, you append
32+
that server to the end of the URL, like so:
33+
<a href="/api/java/mcping.me">/api/java/mcping.me</a>.
34+
</p>
35+
<p>
36+
The response will look as below, with an "icon" base64 PNG field added if
37+
the server has an icon. The latency is in milliseconds, from Toronto,
38+
Canada. Keep in mind that some servers may use signcode colors for the
39+
MOTD and player sample. Your application should handle this. The player
40+
sample is often used for advertising, so take it with a grain of salt. The
41+
Bedrock API response is the same, with the caveat of never returning the
42+
icon. The bedrock player list may also be synthetic.
43+
</p>
44+
<pre><code id="examplePingResponse">{
4545
"latency": 42,
4646
"players": {
4747
"online": 1,
@@ -59,30 +59,30 @@ <h1>MCping API</h1>
5959
"broadcast": "1.20.4"
6060
}
6161
}</code></pre>
62-
<p>
63-
There is also a Mojang Services API, at
64-
<a href="/api/services">/api/services</a>. This is useful for checking if
65-
the authservers or Xbox Services are having issues. Example response
66-
below. The possible values for each field are
67-
<code>DefiniteProblems</code>, <code>PossibleProblems</code>, and
68-
<code>Operational</code>.
69-
</p>
70-
<pre><code class="language-json">{
62+
<p>
63+
There is also a Mojang Services API, at
64+
<a href="/api/services">/api/services</a>. This is useful for checking if
65+
the authservers or Xbox Services are having issues. Example response
66+
below. The possible values for each field are
67+
<code>DefiniteProblems</code>, <code>PossibleProblems</code>, and
68+
<code>Operational</code>.
69+
</p>
70+
<pre><code class="language-json">{
7171
"Xbox services": "Operational",
7272
"SessionServer": "Operational",
7373
"Mojang API": "Operational",
7474
"Minecraft API": "Operational"
7575
}</code></pre>
76-
<p>
77-
In the root document (<a href="https://mcping.me/"
78-
><code>https://mcping.me/</code></a
79-
>), you can specify an auto-ping URL fragment. These are of the format
80-
<code>#ping;&lt;edition&gt;&semi;&lt;hostname&gt;</code>, and will
81-
automatically initialize a ping for the specified edition to the specified
82-
hostname and port. For example, you could have
83-
<a href="https://mcping.me/#ping;j;hypixel.net"
84-
><code>https://mcping.me/#ping;j;hypixel.net</code></a
85-
>.
86-
</p>
87-
</body>
76+
<p>
77+
In the root document (<a href="https://mcping.me/"
78+
><code>https://mcping.me/</code></a
79+
>), you can specify an auto-ping URL fragment. These are of the format
80+
<code>#ping;&lt;edition&gt;&semi;&lt;hostname&gt;</code>, and will
81+
automatically initialize a ping for the specified edition to the specified
82+
hostname and port. For example, you could have
83+
<a href="https://mcping.me/#ping;j;hypixel.net"
84+
><code>https://mcping.me/#ping;j;hypixel.net</code></a
85+
>.
86+
</p>
87+
</body>
8888
</html>

0 commit comments

Comments
 (0)