Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for Bitcoin to ISK endpoint #487

Open
wants to merge 3 commits into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
46 changes: 46 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2708,6 +2708,52 @@ <h5 toggle-next="closed" class="response">Response</h5>
</row>
</article>

<article id="endpoint-bitcoin" shortname="bitcoin" title="Bitcoin to ISK exchange rate" icon="btc" class="endpoint">
<row>
<column class="medium-10 large-8 col-centered">
<hgroup>
<icon class="blue fa fa-btc"></icon>
<h3><a href="#endpoint-bitcoin">
<icon class="fa fa-link"></icon>Bitcoin to ISK exchange rate</a></h3>
<h4>Source:&nbsp;<a href="https://myntkaup.is/" target="_blank" title="Myntkaup, auðveldasta leiðin til þess að kaupa Bitcoin á Íslandi í dag.">myntkaup.is</a></h4>
</hgroup>
<box class="light endpoint">
<titlebar class="blue">
<method>get</method>
<path><a href="http://apis.is/btc" target="_blank">/btc</a></path>
</titlebar>
<div class="content">
<p>Current Bitcoin to ISK exchange rate.</p>
<h5 toggle-next="closed" class="demo">jQuery demo</h5>
<pre class="demo"><code class="javascript">$.ajax({
'url': 'http://apis.is/btc',
'type': 'GET',
'dataType': 'json',
'success': function(response) {
console.log(response);
}
});
</code></pre>
<h5 toggle-next="closed" class="response">Response</h5>
<pre class="response"><code class="json">
{
"results": [
{
"id": "bitcoin",
"symbol": "BTC",
"currencySymbol": "₿",
"rateUsd": 3878.990012322519,
"rateIsk": 458225.2181623272,
"rateIskFriendly": "458.225kr."
}
]
}</code></pre>
</div>

</box>
</column>
</row>
</article>
</main>
<footer>
<section class="dark">
Expand Down