Loader Settings¶
/api/admin/repositories
Loader Cache¶
-
GET/api/admin/loadercache¶ Get loader cache
| Response Code | Reason |
|---|---|
| 200 | No error |
| 500 | Server error |
The response contains the loader cache .
{
"cachesize": "128"
}
Commands¶
-
POST/api/admin/loadercache¶ Execute loader cache commands
The request requires a Standard Request packet. Available commands are:
| Command | Description |
|---|---|
| get | Get loader cache size |
| edit | Edit loader cache |
The request must contain the command element. The data element is required for edit.
The response for each command may be:
| Response Code | Reason |
|---|---|
| 204 | Success |
| 400 | Server error |
Get¶
The request to get loader cache looks like:
POST /api/admin/loadercache HTTP/1.1
Content-Type: application/json
{
"command": "get",
}
The request packet must contain the command element.
Edit¶
The request to edit loader cache looks like:
POST /api/admin/loadercache HTTP/1.1
Content-Type: application/json
{
"command": "edit",
"data": {
"cache": 128
}
}
The options are as follows:
| Field | Type | Description |
|---|---|---|
cache |
Integer | The size of the loader cache; must be greater than 0 |
All fields are required.