You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.7 KiB
HTML

3 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="An Easy, Fast and Secured URL shortener">
<title>Documentation - MrKayJayDee URL Shortener</title>
<link rel="icon" href="https://i.imgur.com/Dnmmfqd.png">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="flex h-screen justify-center items-center">
<div class="bg-white rounded m-2 sm:m-5 p-3 sm:p-80 shadow-md">
<p class="text-center font-bold text-4xl">Documentation</p>
<div class="pt-5" id="shortenedLink">
<p class="font-bold">Shortening a link</p>
<p class="font-medium">POST</p>
<pre class="border-black bg-gray-300 border-2 rounded-lg text-center"><code class="language-plaintext">/api/short</code></pre>
<p class="font-medium">Body</p>
<pre class="border-black bg-gray-300 border-2 rounded-lg"><code class="language-json">{
"origUrl": "http://google.com"
}</code></pre>
<p class="font-medium">Return</p>
<pre class="border-black bg-gray-300 border-2 rounded-lg"><code class="language-json">{
"urlId": "9bcF-giN0",
"origUrl": "http://google.com",
"shortUrl": "https://mrkayjaydee.xyz/9bcF-giN0",
"clicks": 0,
"date": "2022-01-26T15:37:26.977Z",
"_id": "61f16ab602262b5f179d3336",
"__v": 0
}</code></pre>
</div>
<div class="pt-5" id="state"></div>
</div>
</div>
</body>
</html>