simplified example, used api.localhost:8080/v1/ before which needs an entry in the systems host file, now just using localhost:8080/