HexDecBinCalc/api-usage.html
2022-11-04 00:09:44 -04:00

36 lines
952 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>API Usage</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="api-container">
<h2>API Usage</h2>
<div class="text">
<p>Parameters</p>
<ol>
<li>Binary: <code>binary</code></li>
<li>Decimal: <code>decimal</code></li>
<li>Hexadecimal: <code>hexadecimal</code></li>
</ol>
<p>Usage and Response</p>
<ol class="no-dots">
<li>GET request to <code>https://dev.nevets.tech/calculator/hexdecbin/api.php?(parameter)=(value)</code></li>
<li>API responds with a json string similar to below</li>
<pre>
{
"binary":1101011,
"decimal":107,
"hexadecimal":"6B"
}
</pre>
<li><b>Reminder: </b>Only use one parameter, more than one will return a 422 error!</li>
</ol>
</div>
</div>
</body>
</html>