Stage one project
Set up a basic web server in your preferred stack, Deploy it to any free hosting plaform and expose an API endpoint that conforms to the criteria below: Endpoint: [GET] <example.com>/api/hello?visitor_name=Mark (where <example.com> is your server origin) Response:
{
"client_ip": "127.0.0.1", //The IP address of the requester
"location": "New York" // The city of the requester
"greeting": "Hello, Mark!, // the temperature is 11 degrees Celcius in New York"
}
Run the code:
go run main.go
https://weather-location-api.vercel.app/api/hello?visitor_name=Mark you can change the value of the visitor_name query parameter