Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 928 Bytes

File metadata and controls

34 lines (20 loc) · 928 Bytes

Backend Challenge - Temperature Converter API

Introduction

Build a web service to convert temperatures between Celsius, Fahrenheit, and Kelvin.

This challenge is tech-agnostic. Choose your preferred programming language and framework. For beginner level, no database required.

Objectives

  • Handle different conversion types
  • Perform mathematical conversions accurately

Instructions

  1. Environment Setup:

    • Programming language and web framework
  2. Implementation Details:

    • Create a GET endpoint at /convert that accepts value, from, and to parameters (e.g., from=celsius, to=fahrenheit)
  3. Testing:

    • Test with: GET /convert?value=32&from=fahrenheit&to=celsius

Possible Improvements

  • Add validation for valid temperature ranges
  • Support more units

Conclusion

By completing this challenge, you will learn to implement conversion logic in APIs.

Happy coding!