codescalersinternships / home

home repo for internships
1 stars 0 forks source link

Datetime HTTP Client - Template #145

Open xmonader opened 4 days ago

xmonader commented 4 days ago

Develop and Test HTTP Client for Datetime Server #144

Description: Create an HTTP client in Go that consumes the datetime server APIs implemented in the previous project #144 . This client will focus on building an HTTP client development and testing.

Requirements:

  1. Client Functionality:

    • Implement functions to call each datetime server endpoint
    • Handle different response formats (JSON, plain text)
    • Implement proper error handling and timeouts
  2. Configuration:

    • Allow configuration of server URLs and ports
    • Support for environment variable configuration
  3. Retry Mechanism:

  4. Testing:

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

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

    • Implement structured logging for client operations

Optional Enhancements:

Acceptance Criteria:

After this one You can develop the one for pokeapi