Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down
Loading