Commit 72e3e92 1 parent 43f0b5e commit 72e3e92 Copy full SHA for 72e3e92
File tree 1 file changed +51
-1
lines changed
1 file changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,57 @@ import Layout from '@layouts/Layout.astro'
5
5
<Layout title =' API' >
6
6
<main >
7
7
<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 >
8
35
</main >
9
36
</Layout >
10
37
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 >
You can’t perform that action at this time.
0 commit comments