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
- Host: GitHub
- URL: https://github.com/aminul-islam-niloy/my-weather
- Owner: aminul-islam-niloy
- Created: 2024-05-02T12:23:11.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-02T14:03:58.000Z (about 1 year ago)
- Last Synced: 2025-01-12T15:46:24.221Z (5 months ago)
- Language: C#
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.