/
welcome.html
32 lines (32 loc) · 1.52 KB
/
welcome.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<head>
<title>Timestamp-Microservice</title>
<link rel="stylesheet" type="text/css" href="/public/css/style.css">
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css'>
<link href="https://fonts.googleapis.com/css?family=Righteous" rel="stylesheet">
</head>
<body>
<div class= 'stories'>
<div class='row'>
<div class='col'></div>
<div class='col' id='text'>
<h2>Timestamp-Microservice API</h2>
<span><b><h3>User stories:</h3></b><br>
<ul>
<li>I can pass a string as a parameter, and it will check to see whether that string contains either a unix timestamp or a natural language date (example: January 1, 2016)</li><br>
<li>If it does, it returns both the Unix timestamp and the natural language form of that date.</li><br>
<li>If it does not contain a date or Unix timestamp, it returns null for those properties.</li></span>
</ul>
<h3>Example of use:</h3>
<ul>
<li>https://timestamping.glitch.me/December%2015,%202015</li>
<li>https://timestamping.glitch.me/1450137600</li>
</ul>
<h3>Example output</h3>
<ul>
<li>{ "unix": 1450137600, "natural": "December 15, 2015" }</li>
</ul>
</div>
<div class='col'></div>
</div>
</div>
</body>