Skip to content

kha7an/weatherApi

Repository files navigation

git clone https://github.com/kha7an/weatherApi

cd weatherApi

bundle install
rails db:create
rails db:migrate
rails server

git clone https://github.com/kha7an/weatherApi
cd weatherApi
docker-compose build
docker-compose up

Теперь приложение будет доступно по адресу http://localhost:3000.

Использование API

Доступные эндпоинты

  • GET /api/weather/current - Получить текущую температуру.
  • GET /api/weather/historical - Получить температуру за последние 24 часа.
  • GET /api/weather/historical/max - Получить максимальную температуру за последние 24 часа.
  • GET /api/weather/historical/min - Получить минимальную температуру за последние 24 часа.
  • GET /api/weather/historical/avg - Получить среднюю температуру за последние 24 часа.
  • GET /api/weather/by_time - Найти температуру, ближайшую к переданному timestamp.
  • GET /api/health - Проверка статуса бекенда (возвращает OK).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages