public-apis icon indicating copy to clipboard operation
public-apis copied to clipboard

Added Weather API example for contribution task

Open BaderAlmutairi0909 opened this issue 11 months ago • 1 comments

  • [x] My submission is formatted according to the guidelines in the contributing guide
  • [x] My addition is ordered alphabetically
  • [ ] My submission has a useful description
  • [ ] The description does not have more than 100 characters
  • [ ] The description does not end with punctuation
  • [ ] Each table column is padded with one space on either side
  • [ ] I have searched the repository for any relevant issues or pull requests
  • [ ] Any category I am creating has the minimum requirement of 3 items
  • [ ] All changes have been squashed into a single commit

BaderAlmutairi0909 avatar Apr 28 '25 19:04 BaderAlmutairi0909

I've added both the code example and documentation for the OpenWeatherMap API. Here's what I've created: A JavaScript example file (examples/weather/openweathermap.js) that demonstrates: How to fetch current weather data How to get 5-day/3-hour forecast data Proper error handling Example usage with sample output A README file (examples/README.md) that explains: How to set up and use the example What features are demonstrated Expected output Guidelines for contributing more examples The example code is well-documented and includes: Clear function documentation Error handling Type hints (via JSDoc comments) Example usage Support for different units of measurement

BaderAlmutairi0909 avatar Apr 28 '25 19:04 BaderAlmutairi0909

Thanks for your contribution @BaderAlmutairi0909 . Please follow the contributing guide and only add the public API resource on the README.md file. Please remove the additional files.

JuanPabloDiaz avatar Jul 03 '25 02:07 JuanPabloDiaz

please resolve the conflict and remove the additional files already explain @BaderAlmutairi0909

JuanPabloDiaz avatar Aug 11 '25 13:08 JuanPabloDiaz