added API configuration, updated rest service