Skip to content

Commit

Permalink
feat: add index
Browse files Browse the repository at this point in the history
  • Loading branch information
psincraian committed Jan 11, 2024
1 parent a241e40 commit c2c902f
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
97 changes: 97 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gas TUR Prices API Documentation</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 20px;
line-height: 1.6;
background-color: #f8f8f8;
}

header, section, footer {
background-color: #fff;
padding: 20px;
margin-bottom: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
color: #333;
}

p {
color: #555;
}

code {
background-color: #f4f4f4;
padding: 2px 5px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
}

pre {
background-color: #f4f4f4;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
}

@media (min-width: 768px) {
body {
max-width: 80%;
margin: 20px auto;
}
}
</style>
</head>

<body>

<header>
<h1>Gas TUR Prices API</h1>
<p>Welcome to the Gas TUR Prices API for Spain! This API provides real-time Gas TUR prices in a convenient and
parseable format.</p>
</header>

<section>
<h2>Features</h2>
<ul>
<li><strong>Real-time Data:</strong> Access the latest Gas TUR prices.</li>
<li><strong>Easy to Integrate:</strong> Simple integration into your projects.</li>
<li><strong>Simple Data Format:</strong> Clear and easy-to-parse JSON format.</li>
</ul>
</section>

<section>
<h2>Usage</h2>
<p>To get started, make a GET request to the following endpoint:</p>
<pre><code>https://TODO/latest</code></pre>
<p>Example Response:</p>
<pre><code>{
"timestamp": "2024-01-11T12:30:00Z",
"gas_tur_price": 0.045,
"currency": "EUR"
}</code></pre>
</section>

<section>
<h2>Contribution</h2>
<p>We welcome contributions! Report bugs, suggest new features, or improve documentation by opening an <a
href="https://github.com/psincraian/tur-prices/issues">issue</a> or submitting a <a
href="https://github.com/psincraian/tur-prices/pulls">pull request</a>.</p>
</section>

<footer>
<p>Happy coding!</p>
</footer>

</body>

</html>

0 comments on commit c2c902f

Please sign in to comment.