Update api.md

This commit is contained in:
Henry Pitcairn 2016-04-04 13:03:43 -04:00
parent 2fbe092d4d
commit ab493fa656

14
api.md
View File

@ -50,6 +50,20 @@ If the `apiToken` parameter is valid, the request will be route; otherwise an er
### Advanced
#### Description
#### Supported Actions
Action|Description|Parameters
------|-----------|----------
`getResources`|Returns a JSON array of disk and memory usage|_none_
`dropCaches`|Clears system caches|_none_
`getUSB`|Returns a list of USB devices connected ot the pineapple|_none
`getFstab`|Returns the contents of `/etc/config/fstab`|_none_
`getCSS`||
`saveFstab`|Overwrites `/etc/config/fstab` with a string|<ul><li>`fstab`<li>item2</li><ul><li>A string to be written to `/etc/config/fstab`</li></ul></li></ul>
`saveCSS`||
`checkForUpgrade`||
`downloadUpgrade`||
`getDownloadStatus`||
`performUpgrade`||
`getCurrentVersion`||
### Clients
#### Description
#### Supported Actions