Is Eggplant DAI Cloud and Server follow the same rest APIs?

I found that Eggplant DAI has the cloud as well as the server version.

Also, the API documentation is separately provided for both of these versions.

I have following queries regarding the REST APIs for the above two versions:

  1. Is Eggplant DAI cloud and server both use the same REST APIs?
  2. Is the API response for the cloud and server version are identical in terms of structure and schema?
  3. Also, can I switch between Eggplant DAI cloud and server with the same application where I have used the API request-response-parsing for any one of them?