Which are the best practices of code versioning in LAC?
As you modify your rules and save them, each version is saved. You should be to see a link called "# versions" on the upper right, select the version to be used and revert back. Let me know if there are other questions.
For API versioning, see API Versions - CA Live API Creator - 3.2 - CA Technologies Documentation