Skip to content

About

A test assignment for the company in order to show how the pure Rails API for weather forecasting works

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

README

A small weather API that outputs the current value obtained through the AccuWeather service. The client is covered by rspec tests. Gems vcr and factory were used for testing. Data is loaded using the service object. Endpoints for admission:

  • /weather/current - Current temperature
  • /weather/historical - Hourly temperature for the last 24 hours
  • /weather/historical/max - Maximum temperature in 24 hours
  • /weather/historical/min - Minimum temperature for 24 hours
  • /weather/historical/avg - Average temperature for 24 hours
  • /weather/by_time - Find the temperature closest to the transmitted timestamp
  • /health - Backend status

About

A test assignment for the company in order to show how the pure Rails API for weather forecasting works

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages