Giter Club home page Giter Club logo

konstantinkrumin / timestamp-microservice Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 12 KB

A small app that accepts either valid date or Unix date as part of the URI and returns a JSON object with a date in UNIX and UTC formats. Also exception handling is implemented for wrongly typed param.

Home Page: https://timestamp-microservice.konstantinik1.repl.co/

CSS 19.39% JavaScript 46.89% HTML 33.72%
javascript nodejs express api freecodecamp

timestamp-microservice's Introduction

Stack: Javascript, Node.JS, Express

API HTTP Method Description
/ GET shows main page
/api GET returns current date in both UNIX and UTC formats
/api/:date GET returns passed date in both UNIX and UTC formats

A small app that accepts either valid date or Unix date as part of the URI and returns a JSON object with a date in UNIX and UTC formats. Also exception handling is implemented for wrongly typed param.

You can pass date value as /api/:date in either UNIX format or as a valid date string (ex., 2020-12-12). If you leave the date part empty and only call for /api it will return the current date in both UNIX and UTC formats.

App Image

timestamp-microservice's People

Contributors

konstantinkrumin avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.