-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from maddox/new-routes
New Routes
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Harmony API</title> | ||
<style media="screen"> | ||
body { color: #333333; font-family: 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans, sans-serif; margin-top: 25px;} | ||
h1 { text-align: center; } | ||
a { color: #333333; text-decoration: none; } | ||
a:hover { text-decoration: underline; } | ||
.logo { display: block; margin: auto } | ||
.content { margin: 20px 25%; } | ||
.docs { background-color: #f4f4f4; border-radius: 4px; padding: 10px;} | ||
.docs p { padding: 0; margin: 0; line-height: 28px; font-size: 14px; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; } | ||
.docs .method { background-color: #dbdbdb; padding: 4px; border-radius: 2px; margin-right: 4px;} | ||
.docs h2 { margin-bottom: 8px;} | ||
.docs h2:first-child { margin-top: 0;} | ||
.footer { text-align: center; font-size: 12px; margin: 10px 0 50px 0;} | ||
</style> | ||
</head> | ||
<body> | ||
<img class="logo" src="/harmony-icon.png" alt="Harmony" width="256px" /> | ||
<div class="content"> | ||
<h1>Harmony API</h1> | ||
|
||
<div class="docs"> | ||
<h2>Info</h2> | ||
<p><span class="method">GET</span> <a href="/status">/status</a></p> | ||
<p><span class="method">GET</span> <a href="/activities">/activities</a></p> | ||
|
||
<h2>Control</h2> | ||
<p><span class="method">PUT</span> /off</p> | ||
<p><span class="method">POST</span> /start_activity?activity_name=Watch%20TV</p> | ||
</div> | ||
|
||
<div class="footer"> | ||
Learn more at <a href="https://github.com/maddox/harmony-api">https://github.com/maddox/harmony-api</a> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |