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&page=2
{ "count": 18, "next": null, "previous": "http://demo.scanapi.dev/api/v1/snippets/?format=api", "results": [ { "url": "http://demo.scanapi.dev/api/v1/snippets/718/?format=api", "id": 718, "highlight": "http://demo.scanapi.dev/api/v1/snippets/718/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/724/?format=api", "id": 724, "highlight": "http://demo.scanapi.dev/api/v1/snippets/724/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/847/?format=api", "id": 847, "highlight": "http://demo.scanapi.dev/api/v1/snippets/847/highlight/?format=api", "owner": "guest", "title": "Allowed Modules Test", "code": "# Testing allowed modules", "linenos": false, "language": "python", "style": "friendly" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/848/?format=api", "id": 848, "highlight": "http://demo.scanapi.dev/api/v1/snippets/848/highlight/?format=api", "owner": "guest", "title": "Unicode Test", "code": "# Testing unicode", "linenos": false, "language": "python", "style": "friendly" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/849/?format=api", "id": 849, "highlight": "http://demo.scanapi.dev/api/v1/snippets/849/highlight/?format=api", "owner": "guest", "title": "Isolation Test 1", "code": "# First isolation test", "linenos": false, "language": "python", "style": "friendly" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/851/?format=api", "id": 851, "highlight": "http://demo.scanapi.dev/api/v1/snippets/851/highlight/?format=api", "owner": "guest", "title": "Allowed Modules Test", "code": "# Testing allowed modules", "linenos": false, "language": "python", "style": "friendly" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/852/?format=api", "id": 852, "highlight": "http://demo.scanapi.dev/api/v1/snippets/852/highlight/?format=api", "owner": "guest", "title": "Unicode Test", "code": "# Testing unicode", "linenos": false, "language": "python", "style": "friendly" }, { "url": "http://demo.scanapi.dev/api/v1/snippets/853/?format=api", "id": 853, "highlight": "http://demo.scanapi.dev/api/v1/snippets/853/highlight/?format=api", "owner": "guest", "title": "Isolation Test 1", "code": "# First isolation test", "linenos": false, "language": "python", "style": "friendly" } ] }