Skip to content

Commit 72e3e92

Browse files
committed
Update /api-info
1 parent 43f0b5e commit 72e3e92

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

src/pages/api-info.astro

+51-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,57 @@ import Layout from '@layouts/Layout.astro'
55
<Layout title='API'>
66
<main>
77
<h1>API</h1>
8+
9+
<table>
10+
<thead>
11+
<tr>
12+
<th>Endpoint</th>
13+
<th>Response</th>
14+
</tr>
15+
</thead>
16+
<tbody>
17+
<tr>
18+
<td>GET <code>/rankings</code></td>
19+
<td>Returns whole rankings info.</td>
20+
</tr>
21+
<tr>
22+
<td>GET <code>/fighters</code></td>
23+
<td>Returns all fighters info.</td>
24+
</tr>
25+
<tr>
26+
<td>GET <code>/fighter/:fighterId</code></td>
27+
<td>Returns single fighter info.</td>
28+
</tr>
29+
<tr>
30+
<td>GET <code>/division/:divisionId</code></td>
31+
<td>Returns single division info.</td>
32+
</tr>
33+
</tbody>
34+
</table>
835
</main>
936
</Layout>
1037

11-
<style></style>
38+
<style>
39+
h1 {
40+
font-size: 3rem;
41+
}
42+
code {
43+
padding: 0.2em 0.4em;
44+
margin: 0;
45+
font-size: 85%;
46+
border-radius: 6px;
47+
background-color: var(--color-table-code);
48+
}
49+
table {
50+
font-size: 1.4rem;
51+
border-collapse: collapse;
52+
}
53+
th {
54+
background-color: var(--color-table-head);
55+
}
56+
td,
57+
th {
58+
padding: 0.6rem 0.6rem;
59+
border: 1px solid var(--color-table-border);
60+
}
61+
</style>

0 commit comments

Comments
 (0)