Skip to content

Timezone API is a simple web service that returns the current date and time considering a given time zone.

License

Notifications You must be signed in to change notification settings

raphaelbh/timezone-api

Repository files navigation

Timezone API

Project Status GitHub License

Timezone API is a simple web service that provides useful time zone services to external third parties.

This project was created with the purpose of deepening knowledge in python, openapi specification, github actions and heroku integration.

Demo

https://timezone-api.onrender.com/api/v1/swagger/

Requirements

docker

Installation

$ docker-compose up -d
or
$ docker run -p 5000:5000 -e PORT=5000 -d raphaelbh/timezone-api

Usage

$ curl http://localhost:5000/api/v1/now
$ curl http://localhost:5000/api/v1/timezones

Running Tests

$ export PYTHONPATH=application
$ pytest --cache-clear --cov=application tests/

Tech Stack

docker python flask swagger heroku

Reference

Feedback

If you have any feedback, please contact me at [email protected]

github linkedin