Settings for rest api
Fixed bugs..