A JSON REST API for the ZFS cli
Our goal is to have a working JSON API for the whole ZFS cli (currently tested under FreeBSD). Please have a look at the Features section for more information about what is currently supported.
This API will be help us to build some beautiful web UIs for the ZFS tools on FreeBSD.
- List ZFS pools
- Create ZFS pools
- Destroy ZFS pools
- and many more soon...
The following perl modules are required:
- Mojolicious (https://metacpan.org/pod/Mojolicious)
- YAML (https://metacpan.org/pod/distribution/YAML/lib/YAML.pod)
- Mojolicious::Plugin::Swagger2 (https://metacpan.org/pod/Mojolicious::Plugin::Swagger2)
- Backticks (https://metacpan.org/pod/Backticks)
Get cpanminus
curl -L https://cpanmin.us | perl - App::cpanminus
git clone https://github.com/omani/restful-zfs.git
cd restful-zfs
cpanm -L extlib Mojolicious YAML Mojolicious::Plugin::Swagger2 Backticks
./start.sh
./start_swaggerUI.sh
- Swagger2 spec (https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md)
- The excellent Mojolicious Documentation (http://mojolicio.us/perldoc)
Feel free to contribute
- Fork repository
- Change files
- Commit
- Start pull request
- Get your name into the list of contributors
Hasan Pekdemir hpekdemir.smart@googlemail.com
Released under the FreeBSD License (See the LICENSE file)