Skip to content

augurcan/weatherAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-API

This project creates a simple district-based weather API using Spring Boot and MySQL, enabling CRUD operations. The API can be used to manage weather information for different districts.

Installation and Run

The project is ready to run on Docker. Follow the steps below to get the project up and running.

  1. Clone the repository:
git clone https://github.com/augurcan/weatherAPI.git
  1. Ensure Docker is installed.
  2. Open the terminal in the project root directory and run the following command:
docker-compose up -d

To stop the services

Open the terminal in the project root directory and run the following command:

docker-compose down

Technologies and Tools

  • Spring Boot
  • MySQL
  • Docker

Project Structure

structure

Endpoints

  • GET

    • 'localhost:8080/api/v1/weather'
    • 'localhost:8080/api/v1/weather/weatherId'
    • 'localhost:8080/api/v1/weather/cities/cityId'
    • 'localhost:8080/api/v1/weather/district/districtId'
    • 'localhost:8080/api/v1/weather/cities/cityId/date'
    • 'localhost:8080/api/v1/weather/district/districtId/date'
  • POST

    • 'localhost:8080/api/v1/weather'
  • PUT

    • 'localhost:8080/api/v1/weather/weatherId'
  • DELETE

    • 'localhost:8080/api/v1/weather/weatherId'
  • WeatherDto:

		{
			"id":,
			"districtId":"",
			"cityId":"",
			"date":"",
			"hour":,
			"name":"",
			"temperature":,
			"feltTemperature":,
			"humidity":,
			"windDirection":"",
			"maxWind":,
			"averageWind":
		}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors