Fixed REST mothods fot create and updated (they where inverted)