Corrections to rest api (PUT,regular expressions)