You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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
-
57
34
## Setup
58
35
59
36
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