{"repo":"getkirby/kql","free":true,"listed":false,"github":"https://github.com/getkirby/kql","clone":"git clone https://github.com/getkirby/kql.git","description":"Kirby's Query Language API combines the flexibility of Kirby's data structures, the power of GraphQL and the simplicity of REST.","language":"PHP","stars":150,"topics":["kirby","cms","api","query","flat-file","file-based","headless-cms","query-language","json","kql"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Kirby QL Kirby's Query Language API combines the flexibility of Kirby's data structures, the power of GraphQL and the simplicity of REST. The Kirby QL API takes POST requests with standard JSON objects and returns highly customized results that fit your application. Playground You can play in our KQL sandbox. The sandbox is based on the Kirby starterkit. ℹ️ Source code of the playground is available on GitHub. Example Given a POST request to: /api/query 🆗 Response Installation Manual Download and copy this repository to /site/plugins/kql of your Kirby installation. Composer Documentation API Endpoint KQL adds a new query API endpoint to your Kirby API (i.e. yoursite.com/api/query ). This endpoint requires authentication. You can switch off authentication in your config at your own risk: Sending POST Requests You can use any HTTP request library in your language of choice to make regular POST requests to your /api/query endpoint. In this example, we are using the fetch API and JavaScript to retrieve data from our Kirby installation. query With the query, you can fetch data from anywhere in your Kirby site. You can query fields, pages, files, users, languages, roles and more. Queries Without Selects When you don't pass the select option, Kirby will try to come up with the most useful result set for you. This is great for simple queries. Fetching the Site Title 🆗 Response Fetching a List of Page IDs 🆗 Response Running Field Methods Queries can even execute field methods. 🆗 R","default_branch":null,"files":null,"tree":[],"storefront":"/r/getkirby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/getkirby/kql/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}