Modified the rest of the RestService methods to pull environment information from configuration.