{"id":18370002,"url":"https://github.com/statamic/content-api-demo","last_synced_at":"2026-04-29T08:33:34.657Z","repository":{"id":41717465,"uuid":"239915031","full_name":"statamic/content-api-demo","owner":"statamic","description":"Simple demo of the Statamic Content API","archived":false,"fork":false,"pushed_at":"2023-01-06T01:46:41.000Z","size":12223,"stargazers_count":1,"open_issues_count":16,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-15T20:57:09.387Z","etag":null,"topics":["api","cms","demo","flat","flat-file","laravel","php","rest-api","statamic","statamic-3"],"latest_commit_sha":null,"homepage":"https://content-api-demo.statamic.dev/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-12T03:02:14.000Z","updated_at":"2024-01-04T02:12:22.000Z","dependencies_parsed_at":"2023-02-05T02:01:52.955Z","dependency_job_id":null,"html_url":"https://github.com/statamic/content-api-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcontent-api-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcontent-api-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcontent-api-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic%2Fcontent-api-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic","download_url":"https://codeload.github.com/statamic/content-api-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248281425,"owners_count":21077423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cms","demo","flat","flat-file","laravel","php","rest-api","statamic","statamic-3"],"created_at":"2024-11-05T23:35:04.627Z","updated_at":"2026-04-29T08:33:29.637Z","avatar_url":"https://github.com/statamic.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://statamic.com/assets/branding/Statamic-Logo+Wordmark-Rad.svg\" width=\"400\" alt=\"Statamic Logo\" /\u003e\u003c/p\u003e\n\n## Statamic 3 (beta) Content API Demo\n\n_Statamic 3 is the very latest and greatest version of Statamic, a uniquely powerful CMS built on [Laravel](https://laravel.com) and designed to make building and managing bespoke websites radically efficient and remarkably enjoyable._\n\n## Demo Details\n\nThis Content API Demo uses the entries endpoint on a Movies collection to fetch and and filter data with the help of [Vue Select](https://vue-select.org).\n\n### AJAX Calls\n\nThe AJAX calls happen in the main [Vue instance](https://github.com/statamic/content-api-demo/blob/master/resources/js/site.js#L13-L27).\n\n```js\nonSearch(search, loading) {\n    loading(true);\n    this.search(loading, search, this);\n},\nsearch: _.debounce((loading, search, vm) =\u003e {\n    fetch(\n        `/api/collections/movies/entries?filter[title:contains]=${escape(search)}`\n    ).then(res =\u003e {\n        res.json().then(json =\u003e (vm.options = json.data));\n        loading(false);\n    });\n}, 350)\n```\n\n\n### Rendered Output\nThe returned data from the `/api/collections/movies/entries` call is rendered in the [`home.antlers.html`](https://github.com/statamic/content-api-demo/blob/master/resources/views/home.antlers.html#L4-L26) template, inside a scoped slot for the Vue Select component.\n\n## Screenshot\n\n![Statamic 3 Content API Demo Screenshot](https://github.com/statamic/content-api-demo/raw/master/screenshot.png)\n\n\n## Want to try it for yourself?\n\n**1. Clone the project repo** locally and install the dependencies.\n\n```\ngit clone git@github.com:statamic/content-api-demo.git\ncd content-api-demo\ncomposer install\nnpm i \u0026\u0026 npm run dev\ncp .env.example .env \u0026\u0026 php artisan key:generate\n```\n\n**2. Visit `content-api-demo.test`** (or whatever your dev URL pattern is) to see it in action\n\n**3. Make a new user** – If you want to mess around and create/modify entries. You'll want it to be a `super` so you have access to everything.\n\n```\nphp please make:user\n```\n\nYou can log in at `content-api.demo.test/cp`.\n\n## Related Links\n\n- [Statamic 3 Documentation][docs]\n- [Statamic 3 CMS Repo][cms]\n- [Statamic Discord][discord]\n\n[cms]: https://github.com/statamic/cms\n[docs]: https://statamic.dev/\n[discord]: https://statamic.com/discord\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fcontent-api-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic%2Fcontent-api-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic%2Fcontent-api-demo/lists"}