Skip to content

Commit

Permalink
added models
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlprice committed Jul 9, 2020
1 parent 541c360 commit 5df58e1
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
22 changes: 22 additions & 0 deletions models/account.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Account",
"type": "object",
"description": "Users can belong to multiple accounts on CloudHome's federated services. In other words users have a unique id that can interact or manage devices on more than one account or location",
"properties": {
"accountID": {
"type": "string"
},
"accountName": {
"type": "string"
},
"userCount": {
"type": "integer"
},
"deviceCount": {
"type": "integer"
}
},
"required": [
"accountID"
]
}
21 changes: 21 additions & 0 deletions models/location.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "Location",
"type": "object",
"description": "Device geolocation at most recent update. Users can optionally choose to turn off geolocation, however key features such as mapping will not be available.",
"properties": {
"lat": {
"type": "number",
"description": "decimal degrees"
},
"long": {
"type": "number",
"description": "decimal degrees"
},
"geoTracking": {
"type": "boolean"
}
},
"required": [
"geoTracking"
]
}
21 changes: 21 additions & 0 deletions models/user.v1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"title": "User",
"type": "object",
"description": "Users associated with a CloudHome account. Administrative priviledges are indicated to show which users can configure device management and which users can only interact with configured devices",
"properties": {
"userID": {
"type": "string"
},
"username": {
"type": "string"
},
"email": {
"type": "string"
}
},
"required": [
"userID",
"username",
"email"
]
}

0 comments on commit 5df58e1

Please sign in to comment.