Create REST API from passing date range through url