This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions.

Additionally we also provide an extra `highlight` action.

GET /api/v1/snippets/
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 31,
    "next": "http://demo.scanapi.dev/api/v1/snippets/?page=2",
    "previous": null,
    "results": [
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/2/",
            "id": 2,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/2/highlight/",
            "owner": "admin",
            "title": "Calculator",
            "code": "def add(x, y):\r\n    return x + y\r\n\r\ndef subtract(x, y):\r\n    return x - y\r\n\r\ndef multiply(x, y):\r\n    return x * y\r\n\r\ndef divide(x, y):\r\n    return x / y",
            "linenos": true,
            "language": "python",
            "style": "emacs"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/6/",
            "id": 6,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/6/highlight/",
            "owner": "guest",
            "title": "",
            "code": "print('hello, hello')",
            "linenos": false,
            "language": "python",
            "style": "friendly"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/100/",
            "id": 100,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/100/highlight/",
            "owner": "my_user",
            "title": "",
            "code": "print('hello, hello')",
            "linenos": false,
            "language": "python",
            "style": "friendly"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/101/",
            "id": 101,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/101/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/102/",
            "id": 102,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/102/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/103/",
            "id": 103,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/103/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/104/",
            "id": 104,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/104/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/105/",
            "id": 105,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/105/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/106/",
            "id": 106,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/106/highlight/",
            "owner": "my_user",
            "title": "Hello World",
            "code": "print('hello, patch')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        },
        {
            "url": "http://demo.scanapi.dev/api/v1/snippets/205/",
            "id": 205,
            "highlight": "http://demo.scanapi.dev/api/v1/snippets/205/highlight/",
            "owner": "maiakovsky",
            "title": "Hello World",
            "code": "print('hello world')",
            "linenos": false,
            "language": "python",
            "style": "xcode"
        }
    ]
}