From 534a2c080667760c1252bda838135e39a67b027c Mon Sep 17 00:00:00 2001 From: Nihaux Date: Tue, 14 Apr 2015 15:10:03 +0200 Subject: [PATCH] issue #930 customOperation (delete -> remove) https://github.com/mgonto/restangular/issues/930 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f7ba7e8..578fb2b9 100644 --- a/README.md +++ b/README.md @@ -765,7 +765,7 @@ These are the methods that can be called on the Restangular object. * **customDELETE(path, [params, headers])**: Does a DELETE to the specific path. Optionally you can set params and headers. * **customPOST([elem, path, params, headers])**: Does a POST to the specific path. Optionally you can set params and headers and elem. Elem is the element to post. If it's not set, it's assumed that it's the element itself from which you're calling this function. * **customPUT([elem, path, params, headers])**: Does a PUT to the specific path. Optionally you can set params and headers and elem. Elem is the element to post. If it's not set, it's assumed that it's the element itself from which you're calling this function. -* **customOperation(operation, path, [params, headers, elem])**: This does a custom operation to the path that we specify. This method is actually used from all the others in this subsection. Operation can be one of: get, post, put, delete, head, options, patch, trace +* **customOperation(operation, path, [params, headers, elem])**: This does a custom operation to the path that we specify. This method is actually used from all the others in this subsection. Operation can be one of: get, post, put, remove, head, options, patch, trace * **addRestangularMethod(name, operation, [path, params, headers, elem])**: This will add a new restangular method to this object with the name `name` to the operation and path specified (or current path otherwise). There's a section on how to do this later. Let's see an example of this: