Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 99a2f0a

Browse files
halliprbtford
authored andcommitted
docs($resource): note methods list is non-exhaustive
The existing documentation for custom action methods implies that only a small list of upper case methods can be used for custom $resource actions.
1 parent 469ea33 commit 99a2f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngResource/resource.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ function shallowClearAndCopy(src, dst) {
121121
*
122122
* - **`action`** – {string} – The name of action. This name becomes the name of the method on
123123
* your resource object.
124-
* - **`method`** – {string} – HTTP request method. Valid methods are: `GET`, `POST`, `PUT`,
125-
* `DELETE`, and `JSONP`.
124+
* - **`method`** – {string} – Case insensitive HTTP method (e.g. `GET`, `POST`, `PUT`,
125+
* `DELETE`, `JSONP`, etc).
126126
* - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of
127127
* the parameter value is a function, it will be executed every time when a param value needs to
128128
* be obtained for a request (unless the param was overridden).

0 commit comments

Comments
 (0)