Skip to content

Commit 1e04bc7

Browse files
committed
Drop Craft 2 → 3 upgrade instructions
1 parent 28c64b1 commit 1e04bc7

1 file changed

Lines changed: 0 additions & 23 deletions

File tree

README.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ This plugin makes it easy to create a JSON API for your entries (and other eleme
44

55
It’s powered by Phil Sturgeon’s excellent [Fractal](http://fractal.thephpleague.com/) package.
66

7-
87
## Requirements
98

109
This plugin requires Craft CMS 4.0 or later.
1110

12-
1311
## Installation
1412

1513
You can install this plugin from the Plugin Store or with Composer.
@@ -33,27 +31,6 @@ composer require craftcms/element-api
3331
./craft plugin/install element-api
3432
```
3533

36-
## Upgrading from Craft 2
37-
38-
If you’re in the process of upgrading a Craft 2 project to Craft 3, follow these instructions to get Element API back up and running:
39-
40-
1. [Install Element API 2.x](#installation).
41-
2. Move your old `craft/config/elementapi.php` file to `config/`, and rename it to `element-api.php`.
42-
3. Update your `elementType` endpoint settings to the new element type class names:
43-
44-
| Old | New |
45-
| --------------------------------------------- | ------------------------------ |
46-
| `ElementType::Asset` or `'Asset'` | `'craft\elements\Asset'` |
47-
| `ElementType::Category` or `'Category'` | `'craft\elements\Category'` |
48-
| `ElementType::Entry` or `'Entry'` | `'craft\elements\Entry'` |
49-
| `ElementType::GlobalSet` or `'GlobalSet'` | `'craft\elements\GlobalSet'` |
50-
| `ElementType::MatrixBlock` or `'MatrixBlock'` | `'craft\elements\MatrixBlock'` |
51-
| `ElementType::Tag` or `'Tag'` | `'craft\elements\Tag'` |
52-
| `ElementType::User` or `'User'` | `'craft\elements\User'` |
53-
54-
4. Replace any `'first' => true` endpoint settings to `'one' => true`.
55-
56-
5734
## Setup
5835

5936
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.

0 commit comments

Comments
 (0)