Commit 56c1848
authored
Update API Docs mirror to the latest version (#1924)
# API Documentation Changelog
## Overview
This document details all changes made to `docs/api/index.html` in the
v2/apiDocs branch compared to v2/main.
---
## 1. Library and Resource Updates
### jQuery Library Versions
- **Old**: `jquery-1.10.2.js` and `jquery-1.10.2-ui.js`
- **New**: `jquery.min.js` and `jquery-ui.min.js`
- **Impact**: Updated to minified versions for better performance
### Stylesheet and Resource Links
- Normalized self-closing tags: `/>` → `>`
- Updated HTTP charset: `utf-8` → `windows-1252` (in meta tag)
---
## 2. HTML Formatting and Encoding Changes
### HTML Entity Encoding
All HTML entity-encoded quotes converted to literal quotes throughout
JSON examples:
- `"` → `"`
- Applied consistently across all JSON sample values in the
documentation
### Self-Closing Tag Normalization
- `<br/>` → `<br>`
- `<link ... />` → `<link ... >`
- Applied to all HTML elements in the documentation
### Table Structure
- Added `<tbody>` tags to all table elements for proper HTML structure
- Added `style="display: none;"` attributes to hidden rows for cleaner
display
---
## 3. API Test Links
### URL Updates
All test operation links now use absolute URLs instead of relative
paths:
- **Old**: `href="doc/test/[hash]"`
- **New**:
`href="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/doc/test/[hash]"`
### Affected Operations
Applied to all API operations that include test links:
- Create action group
- Update action group
- Delete action group
- Get action groups
- Execute action group
- And all other endpoints with test functionality
---
## 4. Access Scope Information
### New Access Scope Blocks
Added `<pre class="scoped">Access scope : ...</pre>` blocks to API
operations:
- Full enduser API access (enduser/*)
- Enduser Open API (enduser/o)
- Applied to all applicable API endpoints
### Example
```html
<pre class="scoped">Access scope : Full enduser API access (enduser/*)</pre>
```
---
## 5. Sample JSON and Default Values
### Action Group Examples
#### shortcut Field
- **Old**: `"shortcut" : false`
- **New**: `"shortcut" : true`
#### notificationCondition Field
- **Old**: `"notificationCondition" : "ALWAYS"`
- **New**: `"notificationCondition" : "ON_SUCCESS"`
#### New Field: lockLevel
- **Added**: `"lockLevel" : 5` to command parameters
- **Location**: Command examples within action groups
### Example Before:
```json
{
"shortcut" : false,
"notificationCondition" : "ALWAYS",
"commands" : [ {
"delay" : 1
} ]
}
```
### Example After:
```json
{
"shortcut" : true,
"notificationCondition" : "ON_SUCCESS",
"commands" : [ {
"delay" : 1,
"lockLevel" : 5
} ]
}
```
---
## 6. Event Information Updates
### Event Descriptions and Reordering
#### GatewaySynchronizationStartedEvent
- **Added Fields**:
- `"owningPartner" : "an owning partner"`
- `"gatewayId" : "A gateway id (ex: 0101-1234-5678)"`
#### GatewaySynchronizationEndedEvent
- **Added Fields**:
- `"owningPartner" : "an owning partner"`
- `"gatewayId" : "A gateway id (ex: 0101-1234-5678)"`
#### ActionGroupCreatedEvent
- **Reordered**: Event appears later in documentation (moved after
GatewaySynchronizationStartedEvent)
- **Added Fields**:
- `"owningPartners" : [ "some owning partners" ]`
- **Modified Structure**: Updated JSON example to reflect current API
response format
#### ActionGroupUpdatedEvent
- **New Event**: Added to documentation
- **Fields Include**:
- `"owningPartners" : [ "some owning partners" ]`
- Full action group structure with metadata
#### ActionGroupDeletedEvent
- **New Event**: Added to documentation
- **Fields Include**:
- `"owningPartners" : [ "some owning partners" ]`
- `"actionGroupOID"`
- `"setupOID"`
#### ExecutionStateChangedEvent
- **Enhanced Fields**:
- Added `"owningPartners" : [ "some owning partners" ]`
- Added `"failedCommands"` array with detailed error information
- Added `"failureTypeCode"` and `"failureType"` fields
#### DeviceStateChangedEvent
- **Enhanced Fields**:
- Added `"owningPartners" : [ "some owning partners" ]`
- Updated device state change structure
---
## 7. API Response Examples Updates
### Action Group Response Structure
#### Enhanced Fields
- **creationTime**: `"creationTime" : 1769503155441` (timestamp added)
- **lastUpdateTime**: `"lastUpdateTime" : 1769503155441` (timestamp
added)
- **lockLevel**: `"lockLevel" : 5` (now included in command examples)
### Execution Response Structure
- Updated to include complete execution details
- Added fields: `startTime`, `owner`, `actionGroup`, `description`,
`executionType`, `executionSubType`
---
## 8. Rate Limiting Information
### Updated Rate Limit Blocks
Rate limiting sections now include more detailed information:
- Per-session rate limits with specific time periods
- Categorized limits (e.g., "bulk-load", "exec")
### Example
```html
<pre class="rateLimited">Per-session rate-limit : 1 calls per 1d period for this particular operation (bulk-load)</pre>
```
---
## 9. Parameter Updates
### New Request Parameters
- **preventLockLevelReset**: Added to action group update operations
- Type: Boolean (default false)
- Description: "Do not reset command lock levels"
### Enhanced Parameter Descriptions
- Descriptions now wrapped in `<pre>` tags for consistency
- Added optional parameter indicators
- More detailed documentation of parameter purposes
---
## 10. Event Field Documentation
### New Event Fields Documented
#### owningPartner (singular)
- **Type**: String
- **Description**: "Owning partner of the parent entity (gateway, setup
group, ...)) . only available in event streams"
- **Applied to**: GatewaySynchronizationStartedEvent,
GatewaySynchronizationEndedEvent
#### owningPartners (plural)
- **Type**: Array of Strings
- **Description**: "Owning partners of the parent entity (setup, ...)) .
only available in event streams"
- **Applied to**: ActionGroupCreatedEvent, ActionGroupUpdatedEvent,
ActionGroupDeletedEvent, ExecutionStateChangedEvent,
DeviceStateChangedEvent
#### gatewayId
- **Type**: String
- **Description**: "A gateway id (ex: 0101-1234-5678)"
- **Applied to**: Gateway-related events
---
## 11. Content Organization Changes
### Event Reordering
Events are now organized in a different order within the documentation:
1. **Create Action Group Operation**:
- GatewaySynchronizationStartedEvent (moved first)
- ActionGroupCreatedEvent
- GatewaySynchronizationEndedEvent
2. **Update Action Group Operation**:
- GatewaySynchronizationStartedEvent
- GatewaySynchronizationEndedEvent
- ActionGroupUpdatedEvent
3. **Delete Action Group Operation**:
- GatewaySynchronizationEndedEvent
- GatewaySynchronizationStartedEvent
- ActionGroupDeletedEvent
---
## 12. Trigger and Execution Documentation
### Delayed Execution Events
- Enhanced documentation for `DelayedTriggerSetEvent`
- Enhanced documentation for `DelayedTriggerCancelledEvent`
- Clearer execution type descriptions
### Weekly Planning
- Updated examples for weekly planning triggers
- Time-based trigger documentation
- Dawn/dusk trigger clarification
---
## 13. Country Data Updates
### New Country Support
- **Country**: South Korea
- **Code**: KR
- Added to all supported countries lists in location-related API
operations
---
## Summary of Changes
| Category | Change Type | Count |
|----------|------------|-------|
| Library Updates | Version upgrades | 2 |
| HTML Encoding | Entity encoding → literal | ~500+ |
| Self-closing Tags | Normalization | ~200+ |
| Test Links | URL updates | ~100+ |
| Access Scopes | Added blocks | ~50+ |
| Event Fields | New fields | 15+ |
| Event Events | New/reordered | 10+ |
| Sample Values | Updated defaults | 10+ |
| Parameters | New parameters | 5+ |
| Countries | New entries | 1+ |
---
## Impact Assessment
### For API Users
- ✅ Test links now direct to full absolute URLs
- ✅ Better documentation of event ownership and access scopes
- ✅ New fields provide more context (owningPartner/owningPartners)
- ✅ Enhanced error information in ExecutionStateChangedEvent
### For HTML/Browser Rendering
- ✅ Proper `<tbody>` tags improve semantic HTML
- ✅ Literal quote characters instead of entities improve readability
- ✅ Updated jQuery libraries (minified versions) improve performance
### For Backwards Compatibility
- 1 parent b3a8630 commit 56c1848
File tree
7 files changed
+44525
-51265
lines changed- docs
- api
7 files changed
+44525
-51265
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
| |||
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
126 | 139 | | |
127 | 140 | | |
128 | 141 | | |
| |||
151 | 164 | | |
152 | 165 | | |
153 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
154 | 174 | | |
155 | 175 | | |
156 | 176 | | |
| |||
160 | 180 | | |
161 | 181 | | |
162 | 182 | | |
163 | | - | |
| 183 | + | |
164 | 184 | | |
165 | 185 | | |
166 | 186 | | |
| |||
241 | 261 | | |
242 | 262 | | |
243 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
244 | 276 | | |
245 | 277 | | |
246 | 278 | | |
| |||
261 | 293 | | |
262 | 294 | | |
263 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
264 | 300 | | |
265 | 301 | | |
266 | 302 | | |
| |||
0 commit comments