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
Copy file name to clipboardExpand all lines: README.md
+52-1Lines changed: 52 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ Which will result in:
156
156
"message": "That is not valid",
157
157
"code": 422,
158
158
"file": "README.md",
159
-
"line": 107,
159
+
"line": 137,
160
160
"trace": []
161
161
}
162
162
}
@@ -166,6 +166,57 @@ Which will result in:
166
166
167
167
This can be useful for development. For production usage, you can better construct an `ErrorsDocument` with only specific values.
168
168
169
+
#### Using extensions and profiles
170
+
171
+
The [Atomic Operations extension](https://jsonapi.org/ext/atomic/) and the [Cursor Pagination profile](https://jsonapi.org/profiles/ethanresnick/cursor-pagination/) come packaged along. Any 3rd party of self-made extension can be applied with:
172
+
173
+
```php
174
+
use alsvanzelf\jsonapi\ResourceDocument;
175
+
use alsvanzelf\jsonapi\interfaces\ExtensionInterface;
176
+
177
+
class ExampleExtension implements ExtensionInterface {
0 commit comments