Skip to content

Commit

Permalink
Merge pull request rdkcentral#5222 from Shanmugasundaramraj24/main/RD…
Browse files Browse the repository at this point in the history
…K-49128

RDK-49128 - Add Documentation for "Age" Parameter in Warehouse Plugin isClean API
  • Loading branch information
anand-ky authored Apr 30, 2024
2 parents cfe69eb + f6b76a1 commit 6296082
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 12 additions & 1 deletion Warehouse/Warehouse.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,17 @@
},
"isClean":{
"summary": "Checks the locations on the device where customer data may be stored. If there are contents contained in those folders, then the device is not clean.",
"params": {
"type":"object",
"properties": {
"age": {
"summary": "Ignore files/folders for the isClean checkup that were created/updated within the last age (in seconds) when this API is called",
"type": "integer",
"example": "300"
}
},
"required": []
},
"result": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -298,4 +309,4 @@
}
}
}
}
}
10 changes: 8 additions & 2 deletions docs/api/WarehousePlugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ No Events

### Parameters

This method takes no parameters.
| Name | Type | Description |
| :-------- | :-------- | :-------- |
| params | object | |
| params?.age | integer | <sup>*(optional)*</sup> Ignore files/folders for the isClean checkup that were created/updated within the last age (in seconds) when this API is called |

### Result

Expand All @@ -302,7 +305,10 @@ This method takes no parameters.
{
"jsonrpc": "2.0",
"id": 42,
"method": "org.rdk.Warehouse.isClean"
"method": "org.rdk.Warehouse.isClean",
"params": {
"age": 300
}
}
```

Expand Down

0 comments on commit 6296082

Please sign in to comment.