API Connect Developer Guide
  • Introduction
  • Authentication
  • Model's Schema
  • Subscribing a Product
  • Managing Application
  • Managing Organization
  • FAQs
Powered by GitBook
On this page
  • Access token
  • Asset
  • Site
  • Device

Model's Schema

Access token

Access token model return access token for user authentication to consume Mevris.

Property

Type

Required

ID (Access Token)

String

Yes

Asset

The Asset model stores the information about assets e.g. AC, Refrigerator, Plug, LED etc.

Property

Type

Required

id

String

Yes

name

String

Yes

state

Object

No

state.connected

String

No

state.voltage

String

No

state.power

String

No

state.current

String

No

state.standby

String

No

state.thermostateFanMode

String

No

state.thermostateMode

String

No

state.thermostateSetpoint

String

No

ownerId

String

No

assetType

String

No

site

String

No

createdAt

Time

Yes

updatedAt

Time

Yes

Site

The Site model stores the information about user defined sites e.g. My Home, Office Room etc.

Property

Type

Required

id

String

Yes

name

String

active

String

Yes

isDeleted

String

No

location

String

No

ownerId

String

Yes

siteType

String

Yes

createdAt

String

Yes

updatedAt

String

Yes

Device

The Device model stores the information about devices which will make up a asset e.g. Smart WiFi Kit etc.

Model is queried based upon Device MacID.

Property

Type

Required

id

String

Yes

name

String

Yes

slug

String

Yes

currentFirmwareVersion

String

Yes

nextFirmwareVersion

String

Yes

asset

String

Yes

createdAt

Time

Yes

updatedAt

Time

Yes

PreviousAuthenticationNextSubscribing a Product

Last updated 6 years ago