They may be slightly different, but not by much. Since Confluence Cloud is always "up-to-date", you can always be sure that it is running the latest version of the Confluence API.
For Server, it might be slightly different depending on the version of Confluence you have installed (although it should be mostly the same especially for recent versions like 6.0). You can go here and choose your version of Confluence to see the REST API documentation for a specific version:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.