diff --git a/README.md b/README.md index d34bce9..74f5bb7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ It’s powered by Phil Sturgeon’s excellent [Fractal](http://fractal.thephplea ## Requirements -This plugin requires Craft CMS 4.3.0+ or 5.0.0+. +This plugin requires Craft CMS 4.3.0+ or 5.0.0+ or 6.0.0-alpha.1+ with the `craftcms/yii2-adapter` package. ## Installation @@ -33,7 +33,7 @@ composer require craftcms/element-api ## Setup -To define your API endpoints, create a new `element-api.php` file within your `config/` folder. This file should return an array with an `endpoints` key, which defines your site’s API endpoints. +To define your API endpoints, create a new `element-api.php` file within your `config/` folder (or `config/craft/` if you’re using Craft CMS v6). This file should return an array with an `endpoints` key, which defines your site’s API endpoints. Within the `endpoints` array, keys are URL patterns, and values are functions that define the endpoint configurations. diff --git a/composer.json b/composer.json index 27fa231..6792e8e 100644 --- a/composer.json +++ b/composer.json @@ -20,13 +20,13 @@ "email": "support@craftcms.com", "issues": "https://github.com/craftcms/element-api/issues?state=open", "source": "https://github.com/craftcms/element-api", - "docs": "https://github.com/craftcms/element-api/blob/v2/README.md", - "rss": "https://github.com/craftcms/element-api/commits/v2.atom" + "docs": "https://github.com/craftcms/element-api/blob/4.x/README.md", + "rss": "https://github.com/craftcms/element-api/commits/4.x.atom" }, "minimum-stability": "dev", "prefer-stable": true, "require": { - "craftcms/cms": "^4.3.0|^5.0.0-beta.1", + "craftcms/cms": "^4.3.0|^5.0.0-beta.1|^6.0.0-alpha.1", "league/fractal": "^0.20.1" }, "require-dev": { @@ -47,7 +47,7 @@ "extra": { "name": "Element API", "handle": "element-api", - "documentationUrl": "https://github.com/craftcms/element-api/blob/v2/README.md" + "documentationUrl": "https://github.com/craftcms/element-api/blob/4.x/README.md" }, "config": { "platform": {