codescalersinternships / home

home repo for internships
4 stars 0 forks source link

PokeAPI HTTP Client-Mohamed Fadel #297

Open MohamedFadel01 opened 2 months ago

MohamedFadel01 commented 2 months ago

Develop and Test HTTP Client for PokeAPI

Description: Create an HTTP client in Go that consumes the PokeAPIs. This client will focus on building an HTTP client development and testing.

Requirements:

  1. Client Functionality:

    • [x] Implement functions to call pokemon endpoint
    • [x] Implement proper error handling and timeouts
    • [x] Implement pagination
  2. Configuration:

    • [ ] Support for environment variable configuration
  3. Retry Mechanism:

  4. Testing:

    • [x] Unit tests for client functions
    • [ ] Integration tests using a mock server
  5. Documentation:

    • [x] Provide godoc-style comments for all exported functions
    • [x] Include usage examples in the README
  6. Logging:

    • [x] Implement structured logging for client operations

Optional Enhancements:

Acceptance Criteria: