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.
170170## Writing
171171
172172By 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.
175175
176176You can optionally supply a closure to these methods which will receive the
177177model instance, and should return a boolean value.
@@ -274,7 +274,7 @@ component for field validation with the
274274
275275By default, the value provided for each field will be set to the model using the
276276` 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).
278278
279279If you would like to define custom hydration logic for a specific field, use the
280280` 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
121121class to define the behavior of how the endpoint should interact with your
122122storage.
123123
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 ` |
131131
132132::: tip Laravel Integration
133133For Laravel applications with Eloquent-backed resources, you can extend the
You can’t perform that action at this time.
0 commit comments