REST API implemented initially, config file refactored