This commit is contained in:
Liang Ding 2023-01-01 12:16:12 +08:00
parent 6a2205fb3b
commit 3a1382cb42
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 0 additions and 85 deletions

41
API.md
View file

@ -950,47 +950,6 @@ View API token in <kbd>Settings - About</kbd>, request header: `Authorization: T
```
* `id`Message ID
## Storage
### Set localStorage
This API is similar to the browser's `localStorage.setItem`, but the setting parameter is the entire JSON-formatted data instead of a single key-value pair.
When developing front-end extensions, you should avoid using the browser's `localStorage`, because using the browser's `localStorage` directly will cause data to be incorrectly overwritten or lost when switching between multiple workspaces.
* `/api/storage/setLocalStorage`
* Parameters
```json
{
"val": {}
}
```
* Return value
```json
{
"code": 0,
"msg": "",
"data": null
}
```
### Get localStorage
* `/api/storage/getLocalStorage`
* No parameters
* Return value
```json
{
"code": 0,
"msg": "",
"data": {}
}
```
## System
### Get boot progress