Files
maptology/testing/api-client/docs/DefaultApi.md
T
Ole e3935842c7
lbs-gitea/maptology/master There was a failure building this commit
move generated client code in the projects source folder & successfully create devices
2018-01-25 01:33:33 +01:00

76 KiB

DefaultApi

All URIs are relative to http://localhost/api

Method HTTP request Description
addCurrentUserPrivilege POST /users/current/privileges Add a privilege for the specified user.
addLocations POST /devices/current/locations Updates the locations of the current device.
addNotice POST /notices Adds a new notice and returns the notice as well as its location.
addUser POST /users Adds a user account with the specified roles and emails.
addUserPrivilege POST /users/{id}/privileges Returns the privileges for a particular user.
createDevice POST /devices Creates a new device and returns its handle.
createShare POST /shares Creates a new share.
deleteCurrentDevice DELETE /devices/current Deletes the current device.
deleteDevice DELETE /devices/{id} Deletes a device.
deletePrivilege DELETE /privileges/{id} Deletes a particular privilege.
deleteShare DELETE /shares/{id} Delete a share.
getActiveNotices GET /notices/active Returns a page of notices.
getBuildVersion GET /versions/build Returns the build version.
getCurrentDevice GET /devices/current Returns the current device.
getCurrentUser GET /users/current Returns the user currently authorized.
getCurrentUserDevices GET /users/current/devices Returns the list of devices for the current user.
getCurrentUserPlaces GET /users/current/places Returns the places for the current user.
getCurrentUserPrivileges GET /users/current/privileges Returns the privileges for the current user.
getDevice GET /devices/{id} Gets a device.
getDeviceLocation GET /devices/{id}/location Gets the last device location.
getDeviceVisits GET /devices/{id}/visits Gets the last device location.
getDevices GET /devices Returns all devices.
getEntityStatistics GET /log/entities Returns a list of entity statistics.
getLoadStatistic GET /log/load Returns the current load statistic.
getLogMessages GET /log/messages Returns a list of log messages starting from a particular id.
getNotice GET /notices/{id} Returns the notice with the specified id.
getNotices GET /notices Returns a page of notices.
getPlace GET /places/{id} Returns the place with the specified id.
getPlaceVisits GET /places/{id}/visits Returns the visits for a particular place.
getPrivilege GET /privileges/{id} Returns the privileges for a particular user.
getPrivilegeLocation GET /privileges/{id}/location Returns the location for a particular privilege.
getShare GET /shares/{id} Returns a share.
getShareInfo GET /shares/{token}/info Get a share info by its secret token.
getShareLocation GET /shares/{token}/location Get a shared location by its secret token.
getSystemStatistic GET /log/system Returns the system statistic.
getUpdatedNotices GET /notices/updated Returns all active notices modified after the date.
getUser GET /users/{id} Returns the user account with the specified id.
getUserPlaces GET /users/{id}/places Returns the places for a particular user.
getUserPrivileges GET /users/{id}/privileges Returns the privileges for a particular user.
getUsers GET /users Returns a list of users.
registerUser POST /users/register Registers a new user and sends an email account verification.
resetUser POST /users/reset Sends a password reset email to the correspondence email account of a user.
resetUserPassword PUT /users/password/{token} Sets the password of a user account using a token received via email.
searchUsers GET /users/search Returns a list of users whose login name or name contains the term.
setCurrentPassword PUT /users/current/password Sets the password of the currently authorized user.
setCurrentUser PUT /users/current Updates the currently authorized user.
setDevice PUT /devices/{id} Sets the values of a device.
setNotice PUT /notices/{id} Updates an existing notice.
setPlace PUT /places/{id} Updates the place with the specified id.
setShare PUT /shares/{id} Updates an existing share.
setUser PUT /users/{id} Updates the values of a particular user account.
setUserPassword PUT /users/{id}/password Sets the password of a user.
verifyUserEmail PUT /users/verify/{token} Verifies an email address using a token received via email.

addCurrentUserPrivilege

Privilege addCurrentUserPrivilege(share)

Add a privilege for the specified user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String share = "share_example"; // String | The token of the share.
try {
    Privilege result = apiInstance.addCurrentUserPrivilege(share);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#addCurrentUserPrivilege");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
share String The token of the share.

Return type

Privilege

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

addLocations

addLocations(body)

Updates the locations of the current device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
LocationUpdate body = new LocationUpdate(); // LocationUpdate | The location update with the locations to add.
try {
    apiInstance.addLocations(body);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#addLocations");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body LocationUpdate The location update with the locations to add.

Return type

null (empty response body)

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

addNotice

Notice addNotice(body)

Adds a new notice and returns the notice as well as its location.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Notice body = new Notice(); // Notice | The new notice to add.
try {
    Notice result = apiInstance.addNotice(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#addNotice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body Notice The new notice to add.

Return type

Notice

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

addUser

User addUser(body)

Adds a user account with the specified roles and emails.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
User body = new User(); // User | The data for the new user.
try {
    User result = apiInstance.addUser(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#addUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body User The data for the new user.

Return type

User

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

addUserPrivilege

Privilege addUserPrivilege(id, share)

Returns the privileges for a particular user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
String share = "share_example"; // String | The token of the share.
try {
    Privilege result = apiInstance.addUserPrivilege(id, share);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#addUserPrivilege");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The user id.
share String The token of the share.

Return type

Privilege

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

createDevice

DeviceHandle createDevice(body)

Creates a new device and returns its handle.

The response will include the auth token to be stored on the device and supplied as authentication on all subsequent api calls. Note that the auth token can not be requested after creation, so when losing the auth token you may lose access to the device data.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
DeviceInfo body = new DeviceInfo(); // DeviceInfo | Necessary data from to create a device.
try {
    DeviceHandle result = apiInstance.createDevice(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#createDevice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body DeviceInfo Necessary data from to create a device.

Return type

DeviceHandle

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

createShare

Share createShare(body)

Creates a new share.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
ShareInfo body = new ShareInfo(); // ShareInfo | Necessary data from to create a share.
try {
    Share result = apiInstance.createShare(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#createShare");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body ShareInfo Necessary data from to create a share.

Return type

Share

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

deleteCurrentDevice

deleteCurrentDevice()

Deletes the current device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
try {
    apiInstance.deleteCurrentDevice();
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteCurrentDevice");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

null (empty response body)

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

deleteDevice

deleteDevice(id)

Deletes a device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
    apiInstance.deleteDevice(id);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteDevice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The device id.

Return type

null (empty response body)

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

deletePrivilege

deletePrivilege(id)

Deletes a particular privilege.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
    apiInstance.deletePrivilege(id);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deletePrivilege");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The privilege id.

Return type

null (empty response body)

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

deleteShare

deleteShare(id)

Delete a share.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
try {
    apiInstance.deleteShare(id);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#deleteShare");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The share id.

Return type

null (empty response body)

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getActiveNotices

NoticePage getActiveNotices(pageOffset, pageSize)

Returns a page of notices.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    NoticePage result = apiInstance.getActiveNotices(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getActiveNotices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

NoticePage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getBuildVersion

BuildVersion getBuildVersion()

Returns the build version.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
try {
    BuildVersion result = apiInstance.getBuildVersion();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getBuildVersion");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

BuildVersion

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

getCurrentDevice

Device getCurrentDevice()

Returns the current device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
try {
    Device result = apiInstance.getCurrentDevice();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getCurrentDevice");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

Device

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getCurrentUser

User getCurrentUser()

Returns the user currently authorized.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    User result = apiInstance.getCurrentUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getCurrentUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

User

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getCurrentUserDevices

DevicePage getCurrentUserDevices(pageOffset, pageSize)

Returns the list of devices for the current user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    DevicePage result = apiInstance.getCurrentUserDevices(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getCurrentUserDevices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

DevicePage

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getCurrentUserPlaces

PlacePage getCurrentUserPlaces(pageOffset, pageSize)

Returns the places for the current user.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    PlacePage result = apiInstance.getCurrentUserPlaces(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getCurrentUserPlaces");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

PlacePage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getCurrentUserPrivileges

PrivilegePage getCurrentUserPrivileges(pageOffset, pageSize)

Returns the privileges for the current user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    PrivilegePage result = apiInstance.getCurrentUserPrivileges(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getCurrentUserPrivileges");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

PrivilegePage

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getDevice

Device getDevice(id)

Gets a device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
    Device result = apiInstance.getDevice(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getDevice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The device id.

Return type

Device

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getDeviceLocation

Location getDeviceLocation(id)

Gets the last device location.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
try {
    Location result = apiInstance.getDeviceLocation(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getDeviceLocation");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The device id.

Return type

Location

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getDeviceVisits

List<Visit> getDeviceVisits(id, start, duration)

Gets the last device location.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
Long start = 789L; // Long | The start time in Epoch milliseconds.
Long duration = 789L; // Long | The duration in milliseconds.
try {
    List<Visit> result = apiInstance.getDeviceVisits(id, start, duration);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getDeviceVisits");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The device id.
start Long The start time in Epoch milliseconds.
duration Long The duration in milliseconds.

Return type

List<Visit>

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getDevices

DevicePage getDevices(pageOffset, pageSize)

Returns all devices.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    DevicePage result = apiInstance.getDevices(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getDevices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

DevicePage

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getEntityStatistics

List<EntityStatistic> getEntityStatistics()

Returns a list of entity statistics.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    List<EntityStatistic> result = apiInstance.getEntityStatistics();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getEntityStatistics");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<EntityStatistic>

Authorization

admin

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

getLoadStatistic

LoadStatistic getLoadStatistic()

Returns the current load statistic.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    LoadStatistic result = apiInstance.getLoadStatistic();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getLoadStatistic");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

LoadStatistic

Authorization

admin

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

getLogMessages

List<LogMessage> getLogMessages(from)

Returns a list of log messages starting from a particular id.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long from = 0L; // Long | The id of the first message to retrieve.
try {
    List<LogMessage> result = apiInstance.getLogMessages(from);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getLogMessages");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
from Long The id of the first message to retrieve. [optional] [default to 0]

Return type

List<LogMessage>

Authorization

admin

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

getNotice

Notice getNotice(id)

Returns the notice with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the notice.
try {
    Notice result = apiInstance.getNotice(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getNotice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The id of the notice.

Return type

Notice

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getNotices

NoticePage getNotices(pageOffset, pageSize)

Returns a page of notices.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    NoticePage result = apiInstance.getNotices(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getNotices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

NoticePage

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getPlace

Place getPlace(id)

Returns the place with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
try {
    Place result = apiInstance.getPlace(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getPlace");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.

Return type

Place

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getPlaceVisits

VisitPage getPlaceVisits(id, pageOffset, pageSize)

Returns the visits for a particular place.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    VisitPage result = apiInstance.getPlaceVisits(id, pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getPlaceVisits");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

VisitPage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getPrivilege

Privilege getPrivilege(id)

Returns the privileges for a particular user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
    Privilege result = apiInstance.getPrivilege(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getPrivilege");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The privilege id.

Return type

Privilege

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getPrivilegeLocation

Location getPrivilegeLocation(id)

Returns the location for a particular privilege.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The privilege id.
try {
    Location result = apiInstance.getPrivilegeLocation(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getPrivilegeLocation");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The privilege id.

Return type

Location

Authorization

admin, user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getShare

Share getShare(id)

Returns a share.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
try {
    Share result = apiInstance.getShare(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getShare");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The share id.

Return type

Share

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getShareInfo

ShareInfo getShareInfo(token)

Get a share info by its secret token.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token.
try {
    ShareInfo result = apiInstance.getShareInfo(token);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getShareInfo");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
token String The secret token.

Return type

ShareInfo

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getShareLocation

Location getShareLocation(token)

Get a shared location by its secret token.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token.
try {
    Location result = apiInstance.getShareLocation(token);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getShareLocation");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
token String The secret token.

Return type

Location

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getSystemStatistic

LoadStatistic getSystemStatistic()

Returns the system statistic.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
try {
    LoadStatistic result = apiInstance.getSystemStatistic();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getSystemStatistic");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

LoadStatistic

Authorization

admin

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml

getUpdatedNotices

List<Notice> getUpdatedNotices(since)

Returns all active notices modified after the date.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Long since = 0L; // Long | The earlies time in epoch milliseconds.
try {
    List<Notice> result = apiInstance.getUpdatedNotices(since);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getUpdatedNotices");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
since Long The earlies time in epoch milliseconds. [optional] [default to 0]

Return type

List<Notice>

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getUser

User getUser(id)

Returns the user account with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to retrieve.
try {
    User result = apiInstance.getUser(id);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The id of the user to retrieve.

Return type

User

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getUserPlaces

PlacePage getUserPlaces(id, pageOffset, pageSize)

Returns the places for a particular user.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    PlacePage result = apiInstance.getUserPlaces(id, pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getUserPlaces");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The user id.
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

PlacePage

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getUserPrivileges

PrivilegePage getUserPrivileges(id, pageOffset, pageSize)

Returns the privileges for a particular user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The user id.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    PrivilegePage result = apiInstance.getUserPrivileges(id, pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getUserPrivileges");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The user id.
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

PrivilegePage

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

getUsers

UserPage getUsers(pageOffset, pageSize)

Returns a list of users.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    UserPage result = apiInstance.getUsers(pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#getUsers");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

UserPage

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

registerUser

User registerUser(body)

Registers a new user and sends an email account verification.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
UserRegistration body = new UserRegistration(); // UserRegistration | The data of the new user.
try {
    User result = apiInstance.registerUser(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#registerUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body UserRegistration The data of the new user.

Return type

User

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

resetUser

resetUser(login)

Sends a password reset email to the correspondence email account of a user.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String login = "login_example"; // String | The login of the user to reset.
try {
    apiInstance.resetUser(login);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#resetUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
login String The login of the user to reset.

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

resetUserPassword

User resetUserPassword(token, body)

Sets the password of a user account using a token received via email.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token received via email.
UserPassword body = new UserPassword(); // UserPassword | The new user password.
try {
    User result = apiInstance.resetUserPassword(token, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#resetUserPassword");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
token String The secret token received via email.
body UserPassword The new user password.

Return type

User

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

searchUsers

UserPage searchUsers(term, pageOffset, pageSize)

Returns a list of users whose login name or name contains the term.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
String term = "term_example"; // String | The search term.
Integer pageOffset = 0; // Integer | The offset in terms of elements.
Integer pageSize = 20; // Integer | The maximum number of elements on the page.
try {
    UserPage result = apiInstance.searchUsers(term, pageOffset, pageSize);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#searchUsers");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
term String The search term.
pageOffset Integer The offset in terms of elements. [optional] [default to 0]
pageSize Integer The maximum number of elements on the page. [optional] [default to 20]

Return type

UserPage

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setCurrentPassword

User setCurrentPassword(body)

Sets the password of the currently authorized user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
UserPassword body = new UserPassword(); // UserPassword | The new password to set.
try {
    User result = apiInstance.setCurrentPassword(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setCurrentPassword");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body UserPassword The new password to set.

Return type

User

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setCurrentUser

User setCurrentUser(body)

Updates the currently authorized user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: user
HttpBasicAuth user = (HttpBasicAuth) defaultClient.getAuthentication("user");
user.setUsername("YOUR USERNAME");
user.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
User body = new User(); // User | The new user values to set.
try {
    User result = apiInstance.setCurrentUser(body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setCurrentUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
body User The new user values to set.

Return type

User

Authorization

user

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setDevice

Device setDevice(id, body)

Sets the values of a device.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The device id.
Device body = new Device(); // Device | The device values.
try {
    Device result = apiInstance.setDevice(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setDevice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The device id.
body Device The device values. [optional]

Return type

Device

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setNotice

Notice setNotice(id, body)

Updates an existing notice.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the notice.
Notice body = new Notice(); // Notice | The data of the notice to set.
try {
    Notice result = apiInstance.setNotice(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setNotice");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The id of the notice.
body Notice The data of the notice to set.

Return type

Notice

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setPlace

Place setPlace(id, body)

Updates the place with the specified id.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The place id.
Place body = new Place(); // Place | The place to set.
try {
    Place result = apiInstance.setPlace(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setPlace");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The place id.
body Place The place to set.

Return type

Place

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setShare

Share setShare(id, body)

Updates an existing share.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: device
ApiKeyAuth device = (ApiKeyAuth) defaultClient.getAuthentication("device");
device.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//device.setApiKeyPrefix("Token");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The share id.
Share body = new Share(); // Share | The new share to set.
try {
    Share result = apiInstance.setShare(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setShare");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The share id.
body Share The new share to set. [optional]

Return type

Share

Authorization

device

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setUser

User setUser(id, body)

Updates the values of a particular user account.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to set.
User body = new User(); // User | The new user data to set.
try {
    User result = apiInstance.setUser(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setUser");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The id of the user to set.
body User The new user data to set.

Return type

User

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

setUserPassword

User setUserPassword(id, body)

Sets the password of a user.

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.DefaultApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure HTTP basic authorization: admin
HttpBasicAuth admin = (HttpBasicAuth) defaultClient.getAuthentication("admin");
admin.setUsername("YOUR USERNAME");
admin.setPassword("YOUR PASSWORD");

DefaultApi apiInstance = new DefaultApi();
Long id = 789L; // Long | The id of the user to change.
UserPassword body = new UserPassword(); // UserPassword | The new password.
try {
    User result = apiInstance.setUserPassword(id, body);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#setUserPassword");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
id Long The id of the user to change.
body UserPassword The new password.

Return type

User

Authorization

admin

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml

verifyUserEmail

verifyUserEmail(token)

Verifies an email address using a token received via email.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.DefaultApi;


DefaultApi apiInstance = new DefaultApi();
String token = "token_example"; // String | The secret token received via email.
try {
    apiInstance.verifyUserEmail(token);
} catch (ApiException e) {
    System.err.println("Exception when calling DefaultApi#verifyUserEmail");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
token String The secret token received via email.

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, application/xml
  • Accept: application/json, application/xml