-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nikolai Schimke
authored and
Nikolai Schimke
committed
Feb 1, 2024
1 parent
359c95a
commit c39ded4
Showing
4 changed files
with
155 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<html> | ||
|
||
<body> | ||
<h1>sportshub-{{version}} has the following routes:</h1> | ||
|
||
<h2>Informational</h2> | ||
<table> | ||
<tr> | ||
<th>Link</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr> | ||
<td><a href="/">/</a></td> | ||
<td>returns a list of all available routes</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/version">/version</a></td> | ||
<td>returns the version of the server</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/info/leagues">/info/leagues</a></td> | ||
<td>returns a list of all leagues</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/info/sports">/info/sports</a></td> | ||
<td>returns a list of all sports</td> | ||
</tr> | ||
|
||
</table> | ||
|
||
<h2>API</h2> | ||
<table> | ||
<tr> | ||
<th>Link</th> | ||
<th>Input</th> | ||
<th>Output</th> | ||
</tr> | ||
<tr> | ||
<td><a href="/all">/all</a></td> | ||
<td>none</td> | ||
<td>all events</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/active">/active</a></td> | ||
<td>none</td> | ||
<td>all active events</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/sport/<sport>">/sport/<sport></a></td> | ||
<td>sport</td> | ||
<td>all events of a specific sport</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/league/<league>">/league/<league></a></td> | ||
<td>league</td> | ||
<td>all events of a specific league</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/id/<id>">/id/<id></a></td> | ||
<td>id</td> | ||
<td>a specific event</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/team/home/<team>">/team/home/<team></a></td> | ||
<td>team</td> | ||
<td>all events where the home team is <team> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/team/away/<team>">/team/away/<team></a></td> | ||
<td>team</td> | ||
<td>all events where the away team is <team> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td><a href="/team/<team>">/team/<team></a></td> | ||
<td>team</td> | ||
<td>all events where <team> is either home or away</td> | ||
</tr> | ||
</table> | ||
|
||
|
||
</body> | ||
|
||
<style> | ||
:root { | ||
font-family: 'Arial Narrow Bold', sans-serif; | ||
} | ||
|
||
table { | ||
font-family: arial, sans-serif; | ||
border-collapse: collapse; | ||
width: 100%; | ||
} | ||
|
||
td, | ||
th { | ||
border: 1px solid #dddddd; | ||
text-align: left; | ||
padding: 8px; | ||
} | ||
|
||
tr:nth-child(even) { | ||
background-color: #dddddd; | ||
} | ||
</style> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters