var app = WebApplication.Create();
app.MapGet("helloworld", () => "helloww");
app.MapGet("person", () => new Person("goncalo", 38));
app.Run();
Now you can send this request by your browser or postman to your localhost and it should return the above.