added settings for the API endpoints and return user settings in json format