1. Home
  2. Docs
  3. UniREST Solution 3.5
  4. Getting Started
  5. How Communication Works

How Communication Works

Client / Server

The UniREST solution is based on REST architecture. Basically, the developer sets up special HTTP URLs (technically REST APIs) through the UniREST Server application that, called by the UniREST Client, perform the four main Database operations:

  • read data
  • write new data
  • update existing data
  • delete existing data
Each API can perform one or more of these four operations. The developer can easily create those URLs and functionalities through a simple graphical interface; it's not necessary to write code.

The UniREST Server application also contains a set of built-in APIs to perform predefined operations, like user registration and login, write and read files, upload and download files, and so on.

The UniREST Client asset contains the methods to call those APIs and, when requested, to attach data that must be sent with the call.

Remember that all the communications between the UniREST Client and the UniREST Server are encrypted with a secret, unique key.

Login

The communication between your Unity project and your Server can’t start immediately, but it must be firstly authorized. The authorization is given through the login operation with a username and a password.

Once the login has been successfully performed, the UniREST Server replies with 3 Tokens and the UniREST Client will use these Tokens to execute the next requests.

The UniREST system works with two kinds of login:

  • the “classic” user login: each user has their own account and, when they use your Unity project, they must provide (manually or with automatic procedures) their credentials;
  • the Application login: a special feature where the Unity project is automatically registered as it was a user. This is useful if the project needs the online features but doesn’t require working with user accounts.

Articles