An open API service indexing awesome lists of open source software.

https://github.com/aminul-islam-niloy/my-weather

Web API project to get my Current Weather
https://github.com/aminul-islam-niloy/my-weather

Last synced: 3 months ago
JSON representation

Web API project to get my Current Weather

Awesome Lists containing this project

README

        

# My Weather API

My Weather API is a simple ASP.NET Core web API that provides weather information using the OpenWeatherMap API.

## Getting Started

To get started with My Weather API, follow these steps:

1. Clone the repository:

```
git clone https://github.com/aminul-islam-niloy/My-Weather.git
```

2. Open the solution in Visual Studio.

3. Build the solution.

4. Run the application.

5. Use the Swagger UI or send HTTP requests to `https://localhost:7069/Weather/{city}` to get weather information for a specific city.

## Configuration

The application is configured to use the OpenWeatherMap API. You need to provide your API key in the `appsettings.json` file under the `OpenWeatherMap` section.

```json
{
"OpenWeatherMap": {
"ApiKey": "YOUR_API_KEY"
}
}
```

Replace `YOUR_API_KEY` with your actual OpenWeatherMap API key.

## Dependencies

The project uses the following dependencies:

- `Microsoft.Extensions.Http`: For making HTTP requests to the OpenWeatherMap API.
- `Swashbuckle.AspNetCore`: For generating Swagger documentation.

## Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

Feel free to customize this README file further to include additional information about your project, such as how to extend the functionality, testing procedures, or any other relevant details.