I think they mean wrapping the REST api in a class (aka "data provider" or "repository pattern") this way you've abstracted the HTTP request logic away from your application.
Both the API and the Mock implementation will require the same interface.
How is that different then defining an API and then having stub methods on the front returning pretend data?