Simple endpoint demo in scala