Vue-resource: How do i make a patch request on a specific resource object?

Created on 29 Jun 2016  路  5Comments  路  Source: pagekit/vue-resource

in this document: https://github.com/vuejs/vue-resource/blob/master/docs/resource.md#default-actions

It seems there is no method to make make a patch request.

Should it be one here?

Most helpful comment

This should be in there, it's a fundamental REST verb. The difference between "replace the resource with this data" (PUT) and "update these values for the resource" (PATCH).

In fact, the current PUT should really be called "replace" and not "update".

All 5 comments

It would be great to at least know the reasoning behind PATCH not being included. I think PATCH is much more useful than PUT.

See pull request #313

@steffans Any update on this?

This should be in there, it's a fundamental REST verb. The difference between "replace the resource with this data" (PUT) and "update these values for the resource" (PATCH).

In fact, the current PUT should really be called "replace" and not "update".

@steffans yes, my purpose is explained by @Sarke perfectly, this is a useful REST verb that cannot get around. So not supporting this method cause much trouble in fact, so please update it.

If you don't see any reason why, then you can say any other reason why not?

Please merge https://github.com/vuejs/vue-resource/issues/313 quickly.

Request #313 still not merged... why?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jiyifun picture jiyifun  路  3Comments

briward picture briward  路  4Comments

yozman picture yozman  路  6Comments

Jigsaw5279 picture Jigsaw5279  路  5Comments

facesea picture facesea  路  5Comments