Skip to content

Snippy v0.8.0

Compare
Choose a tag to compare
@heilaaks heilaaks released this 21 Jul 10:44
· 700 commits to master since this release
c9b1403

New Features

  • Add new content category references.
  • Experimental beta release from RESTish API server.
  • REST API documentation can be read from Swagger Hub.
  • Use case and user documentation can be read from Read the Docs.

Examples

# Installing for local user.
$ pip install snippy --user
$ snippy import --defaults
$ snippy import --defaults --solutions
$ snippy import --defaults --references
$ snippy search --sall docker

# Installing as a Docker container.
$ sudo docker pull heilaaks/snippy:latest
$ sudo docker run heilaaks/snippy search --sall docker

# Running server in Docker container.
$ sudo docker run -d --net="host" --name snippy heilaaks/snippy --server --port 8080 --ip 127.0.0.1 --log-json -vv
$ curl -s -X GET "http://127.0.0.1:8080/snippy/api/app/v1/snippets?sall=security&limit=1" -H "accept: application/vnd.api+json"
$ sudo docker logs snippy
$ sudo docker rm -f snippy