File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ for all of the buffered posts at once.
170
170
## Writing
171
171
172
172
By default, fields are read-only. You can allow a field to be written to in the
173
- [ Create] ( endpoints/ create) and [ Update] ( endpoints/ update) endpoints using the
174
- ` writable ` and ` readonly ` methods.
173
+ [ Create] ( create.md ) and [ Update] ( update.md ) endpoints using the ` writable ` and
174
+ ` readonly ` methods.
175
175
176
176
You can optionally supply a closure to these methods which will receive the
177
177
model instance, and should return a boolean value.
@@ -274,7 +274,7 @@ component for field validation with the
274
274
275
275
By default, the value provided for each field will be set to the model using the
276
276
` setValue ` method on your resource (which must be implemented as part of the
277
- [ Create] ( endpoints/ create.md) and [ Update] ( endpoints/ update.md) endpoints).
277
+ [ Create] ( create.md ) and [ Update] ( update.md ) endpoints).
278
278
279
279
If you would like to define custom hydration logic for a specific field, use the
280
280
` set ` method:
Original file line number Diff line number Diff line change @@ -121,13 +121,13 @@ these endpoints requires the implementation of an interface on your resource
121
121
class to define the behavior of how the endpoint should interact with your
122
122
storage.
123
123
124
- | Method | URI | Endpoint | Interface |
125
- | ------ | ------------- | ----------------------------- | ---------------------------------------- |
126
- | GET | ` /users ` | [ Index] ( endpoints/ index.md) | ` Tobyz\JsonApiServer\Resource\Listable ` |
127
- | POST | ` /users ` | [ Create] ( endpoints/ create.md) | ` Tobyz\JsonApiServer\Resource\Creatable ` |
128
- | GET | ` /users/{id} ` | [ Show] ( endpoints/ show.md) | ` Tobyz\JsonApiServer\Resource\Findable ` |
129
- | PATCH | ` /users/{id} ` | [ Update] ( endpoints/ update.md) | ` Tobyz\JsonApiServer\Resource\Updatable ` |
130
- | DELETE | ` /users/{id} ` | [ Delete] ( endpoints/ delete.md) | ` Tobyz\JsonApiServer\Resource\Deletable ` |
124
+ | Method | URI | Endpoint | Interface |
125
+ | ------ | ------------- | ------------------- | ---------------------------------------- |
126
+ | GET | ` /users ` | [ Index] ( index.md ) | ` Tobyz\JsonApiServer\Resource\Listable ` |
127
+ | POST | ` /users ` | [ Create] ( create.md ) | ` Tobyz\JsonApiServer\Resource\Creatable ` |
128
+ | GET | ` /users/{id} ` | [ Show] ( show.md ) | ` Tobyz\JsonApiServer\Resource\Findable ` |
129
+ | PATCH | ` /users/{id} ` | [ Update] ( update.md ) | ` Tobyz\JsonApiServer\Resource\Updatable ` |
130
+ | DELETE | ` /users/{id} ` | [ Delete] ( delete.md ) | ` Tobyz\JsonApiServer\Resource\Deletable ` |
131
131
132
132
::: tip Laravel Integration
133
133
For Laravel applications with Eloquent-backed resources, you can extend the
You can’t perform that action at this time.
0 commit comments