Fix REST endpoint URL