Skip to content

Commit 2bac1b2

Browse files
Merge pull request #240 from thilina-dulanjana/patch-1
Correct the feathers service url
2 parents 7b48cf6 + 7739d69 commit 2bac1b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/model-classes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export default new Vuex.Store({
200200

201201
### `instance.save(params)`
202202

203-
The `save` method is a convenience wrapper for the `create/patch` methods, by default. If the records has no `_id`, the `instance.create()` method will be used. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.md#service-methods) docs, for reference on where params are used in each method.
203+
The `save` method is a convenience wrapper for the `create/patch` methods, by default. If the records has no `_id`, the `instance.create()` method will be used. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.html#service-methods) docs, for reference on where params are used in each method.
204204

205205
```js
206206
// In your Vue component
@@ -218,7 +218,7 @@ As mentioned, `save` performs either `create` or `patch`, but you can use the `p
218218

219219
### `instance.create(params)`
220220

221-
The `create` method is a shortcut for calling the `create` action (service method) using the instance data. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.md#service-methods) docs, for reference.
221+
The `create` method is a shortcut for calling the `create` action (service method) using the instance data. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.html#service-methods) docs, for reference.
222222

223223
You might not ever need to use `.create()`, but can instead use the `.save()` method. Let `feathers-vuex` call `create` or `patch`.
224224

@@ -232,7 +232,7 @@ todo.create() // --> Creates the todo on the server using the instance data
232232

233233
### `instance.patch(params)`
234234

235-
The `patch` method is a shortcut for calling the `patch` action (service method) using the instance data. The instance's id field is used for the `patch` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.md#service-methods) docs, for reference.
235+
The `patch` method is a shortcut for calling the `patch` action (service method) using the instance data. The instance's id field is used for the `patch` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.html#service-methods) docs, for reference.
236236

237237
Similar to the `.create()` method, you might not ever need to use `.patch()` if you just use `.save()` and let `feathers-vuex` figure out how to handle it.
238238

@@ -249,7 +249,7 @@ todo.patch() // --> Sends a `patch` request the with the id and description.
249249

250250
### `instance.update(params)`
251251

252-
The `update` method is a shortcut for calling the `update` action (service method) using the instance data. The instance's id field is used for the `update` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.md#service-methods) docs, for reference.
252+
The `update` method is a shortcut for calling the `update` action (service method) using the instance data. The instance's id field is used for the `update` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.html#service-methods) docs, for reference.
253253

254254
Use `.update()` whenever you want to completely replace the data on the server with the instance data. You can also set the `preferUpdate` option to `true` to make `.save()` call `.update()` when an id field is present on the instance.
255255

@@ -264,7 +264,7 @@ todo.update() // --> Sends a `update` request the with all instance data.
264264

265265
### `instance.remove(params)`
266266

267-
The `remove` method is a shortcut for calling the `remove` action (service method) using the instance data. The instance's id field is used for the `remove` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.md#service-methods) docs, for reference.
267+
The `remove` method is a shortcut for calling the `remove` action (service method) using the instance data. The instance's id field is used for the `remove` id. The `params` argument will be used in the Feathers client request. See the [Feathers Service](https://docs.feathersjs.com/api/services.html#service-methods) docs, for reference.
268268

269269
```js
270270
const { Todo } = this.$FeathersVuex

0 commit comments

Comments
 (0)