Snippet List
This viewset automatically provides `list`, `create`, `retrieve`,
`update` and `destroy` actions.
Additionally we also provide an extra `highlight` action.
GET /api/v1/snippets/?format=api
{ "count": 12, "next": "http://demo.scanapi.dev/api/v1/snippets/?format=api&page=2", "previous": null, "results": [ { "url": "http://demo.scanapi.dev/api/v1/snippets/318/?format=api", "id": 318, "highlight": "http://demo.scanapi.dev/api/v1/snippets/318/highlight/?format=api", "owner": "roberto.nunes", "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/319/?format=api", "id": 319, "highlight": "http://demo.scanapi.dev/api/v1/snippets/319/highlight/?format=api", "owner": "roberto.nunes", "title": "Calculator2", "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": "monokai" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/701/?format=api", "id": 701, "highlight": "http://demo.scanapi.dev/api/v1/snippets/701/highlight/?format=api", "owner": "cumbuquita_ao_vivo", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/702/?format=api", "id": 702, "highlight": "http://demo.scanapi.dev/api/v1/snippets/702/highlight/?format=api", "owner": "cumbuquita_ao_vivo", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/703/?format=api", "id": 703, "highlight": "http://demo.scanapi.dev/api/v1/snippets/703/highlight/?format=api", "owner": "arias_no_palmeiras", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/704/?format=api", "id": 704, "highlight": "http://demo.scanapi.dev/api/v1/snippets/704/highlight/?format=api", "owner": "cumbuquita_ao_vivo", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/705/?format=api", "id": 705, "highlight": "http://demo.scanapi.dev/api/v1/snippets/705/highlight/?format=api", "owner": "arias_no_palmeiras", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/715/?format=api", "id": 715, "highlight": "http://demo.scanapi.dev/api/v1/snippets/715/highlight/?format=api", "owner": "tacho", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/716/?format=api", "id": 716, "highlight": "http://demo.scanapi.dev/api/v1/snippets/716/highlight/?format=api", "owner": "tacho", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/717/?format=api", "id": 717, "highlight": "http://demo.scanapi.dev/api/v1/snippets/717/highlight/?format=api", "owner": "tacho", "title": "Hello World", "code": "print('hello world')", "linenos": false, "language": "python", "style": "xcode" } ] }