examples/web-service/README.md
HTTP web service with automatic service discovery and registration.
This example creates an HTTP service that:
go run main.go
# Get service info
curl http://localhost:9090/
# List all users
curl http://localhost:9090/users
# Get specific user
curl http://localhost:9090/users/1
# Health check
curl http://localhost:9090/health
http.Handler interfaceUse web.Service when:
Use regular micro.Service when: