Create a simple web service that returns a "Hello, World!" message when accessed.
This challenge is tech-agnostic. Choose your preferred programming language and framework. For beginner level, no database required.
- Build a basic REST API endpoint
- Understand HTTP GET requests and JSON responses
-
Environment Setup:
- Programming language and web framework
-
Implementation Details:
- Create a GET endpoint at
/hellothat returns a JSON response:{"message": "Hello, World!"}
- Create a GET endpoint at
-
Testing:
- Start your server and use curl or a browser to test:
GET /hello
- Start your server and use curl or a browser to test:
- Add support for custom messages via query parameters
- Implement different HTTP status codes
By completing this challenge, you will gain practical experience in creating and testing basic web services.
Happy coding!