https://github.com/cloudcmd/rest
CloudCmd REST
https://github.com/cloudcmd/rest
Last synced: 3 months ago
JSON representation
CloudCmd REST
- Host: GitHub
- URL: https://github.com/cloudcmd/rest
- Owner: cloudcmd
- License: mit
- Created: 2013-08-15T11:33:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-06T07:37:49.000Z (about 11 years ago)
- Last Synced: 2025-05-13T20:26:39.824Z (9 months ago)
- Homepage: http://cloudcmd.io
- Size: 242 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
CloudCmd REST
=============
**/api/v1/**
|Name |Method |Query |Body |Description |
|:------------|:--------|:--------------|:------------------|:------------------------------|
|`fs` |`GET` | | |get file or dir content |
| | |`size` | |get dir or file size |
| | |`time` | |get time of file change |
| | |`hash` | |get file hash |
| | |`beautify` | |beautify js, html, css |
| | |`minify` | |minify js, html, css |
| |`PUT` | |file content |create/write file |
| | | `unzip` |file content |unzip and create/write file |
| | | `dir` | |create dir |
| |`PATCH` | |diff |patch file |
| |`DELETE` | | |delete file |
| | |`files` |Array of names |delete files |
|`mv` |`PUT` | |{from, to} |rename file/dir |
| | | |{from, names, to} |mv files/dirs |
|`cp` |`PUT` | |{from, names, to} |copy files |
|`pack` |`PUT` | |{from} |pack file |
|`unpack` |`PUT` | |{from} |unpack file |
|`config` |`GET` | | |get config |
| |`PATCH` | |{option:value} |change config |
|`markdown` |`GET` | | |parse markdown with path |
| | |`relative` | |parse with relative path |
| |`PUT` | |raw markdown |parse raw markdown |