REST API calls with error handling for Flutter.
Recent revisions are kept. Restoring one creates a new revision.