Skip to content

Commit

Permalink
fix change of value sending
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-goebel committed Aug 21, 2024
1 parent 404def6 commit a8ae222
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
4 changes: 2 additions & 2 deletions examples/asset-types.http
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ DELETE {{api-server}}/v2/asset-types/Test Type
X-Api-Key: {{read-write-token}}

### Selects asset type
GET {{api-server}}/v2/asset-types/gp_joule_resent_sessions?expansions=AssetType.attributes
X-Api-Key: {{read-only-token}}
GET {{api-server}}/v2/asset-types/Niagara Watchdog?expansions=AssetType.attributes
X-Api-Key: {{read-write-token}}

### Inserts
POST {{api-server}}/v2/asset-types?expansions=AssetType.attributes
Expand Down
20 changes: 15 additions & 5 deletions examples/assets.http
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GET {{api-server}}/v2/assets
X-Api-Key: {{read-only-token}}

### Select asset with id
GET {{api-server}}/v2/assets/16042
GET {{api-server}}/v2/assets/7
X-Api-Key: {{read-write-token}}

### Select asset with id and attachments
Expand Down Expand Up @@ -35,11 +35,21 @@ Content-Type: application/json

{
"projectId": "10",
"globalAssetIdentifier": "GAI 4711112ds",
"globalAssetIdentifier": "1234567890",
"name": "Test Asset",
"assetType": "Space",
"parentLocationalAssetId": 15879,
"parentFunctionalAssetId": 15877
"assetType": "Space"
}

### Update asset
PUT {{api-server}}/v2/assets
X-Api-Key: {{read-write-token}}
Content-Type: application/json

{
"projectId": "10",
"globalAssetIdentifier": "1234567890",
"name": "Test Asset 1",
"assetType": "Space"
}

### Insert asset with attachment
Expand Down
23 changes: 11 additions & 12 deletions examples/data.http
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ GET {{api-server}}/v2/data
X-Api-Key: {{read-only-token}}

### Get all data based on asset id
GET {{api-server}}/v2/data?assetId=3613
GET {{api-server}}/v2/data?assetId=927&
X-Api-Key: {{read-only-token}}

### Get all data based on subtype
Expand All @@ -15,7 +15,7 @@ GET {{api-server}}/v2/data?assetTypeName=VIRTUAL Battery
X-Api-Key: {{read-only-token}}

### Get data trends
GET {{api-server}}/v2/data-trends?assetTypeName=VIRTUAL Battery&fromDate=2022-07-30T20:00:00.000%2B02:00&toDate=2022-07-30T21:00:00.000%2B02:00
GET {{api-server}}/v2/data-trends?assetId=102&dataSubtype=input&fromDate=2024-04-03T00:00:00.000%2B02:00
X-Api-Key: {{read-only-token}}

### Get data aggs
Expand All @@ -31,25 +31,24 @@ PUT {{api-server}}/v2/data
X-Api-Key: {{read-write-token}}

{
"assetId": 16297,
"assetId": 17534,
"subtype": "input",
"data": {
"session_count": 1
"value": null
}
}

### Put data
PUT {{api-server}}/v2/data
X-Api-Key: {{read-write-token}}

{
"assetId": 8514,
"subtype": "input",
"data": {
"brightness": 188
},
"clientReference": "42"
}
{
"data": {
"value":99
},
"subtype":"input",
"assetId":17501
}

### Put data bulk
PUT {{api-server}}/v2/data-bulk
Expand Down

0 comments on commit a8ae222

Please sign in to comment.