Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Build Status MIT license Download

This server was generated by the swagger-codegen project.

Swagger Generated Server

jSupla Mock Server allows you to start server that is compatible with Supla Cloud. By default it has mock all possible devices.

Run Server

Download latest version from Download and then run

java -jar jsupla-mock-server-<VERSION>.jar

After about 30 seconds server should be started. To test it you can send test request to http://localhost:9090/api/2.3.0/server-info

curl -X GET "http://localhost:9090/api/v2.3.0/server-info" -H  "accept: application/json"

As a response you should get something like this (not formatted):

  "address": "http://localhost:9090/api/v2.3.0",
  "time": null,
  "timezone": null,
  "authenticated": null,
  "username": null,
  "cloudVersion": "2.3.0",
  "apiVersion": "2.3.0",
  "supportedApiVersions": [

For more api calls you can check Supla Swagger Hub


Most of calls need to be authorized with oAuth token. The default token is MzFhYTNiZTAwODg5M2E0NDE3OGUwNWE5ZjYzZWQ2YzllZGFiYWRmNDQwNDBlNmZhZGEzN2I3NTJiOWM2ZWEyZg. You can change it in /src/main/resources/application.yml or during startup via Spring Boot properties (--jsupla.token=your_token).

Note 1: Tokens generated from Supla Cloud are made from 2 parts that are separated with dot. First part is plain OAuth token. Second part is server URL encoded in Base64. In this implementation you don't need to pass anything as server URL, but if you will pass it, it will be trimmed.

Note 2: If you want to use token that will point you to http://localhost:9090 you can use this token MzFhYTNiZTAwODg5M2E0NDE3OGUwNWE5ZjYzZWQ2YzllZGFiYWRmNDQwNDBlNmZhZGEzN2I3NTJiOWM2ZWEyZg.aHR0cDovL2xvY2FsaG9zdDo5MDkw

Gradle & Maven

To embed Supla server in you Gradle/Maven application you first need to add big-boy bintray repository:

repositories { 
	maven { 
		url "" 

After this just add dependency:

compile 'pl.grzeslowski.jsuplaservermock:jsupla-mock-server:VERSION'

The latest version you can find here Download

You can’t perform that action at this time.