This is my project of the Timestamp Microservice challenge for the freeCodeCamp API and Microservice certification. It was built based on the boilerplate available here.
Endpoints | Description |
---|---|
GET /api/timestamp |
Return a date object with unix timestamp and UTC timestamp of the current timestamp |
GET /api/timestamp/{dateParam} |
Return a date object of the informed timestamp (unix or UTC ISO-8601) |
- https://timestamp-microservice.andradeoromulo.repl.co/api/timestamp
- https://timestamp-microservice.andradeoromulo.repl.co/api/timestamp/2015-12-25
- https://timestamp-microservice.andradeoromulo.repl.co/api/timestamp/1451001600000
{"unix":1451001600000, "utc":"Fri, 25 Dec 2015 00:00:00 GMT"}
{"error" : "Invalid Date" }
Just run on terminal:
npm install
npm start
I'm a student and I really would like to hear case you have any tips, correction suggestions or comments about any my of projects (🤓).