Example using gradle && maven to expose REST API