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

Commit 1111076

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 948c86c commit 1111076

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
@@ -109,8 +109,8 @@ function shallowClearAndCopy(src, dst) {
109109
*
110110
* - **`action`** – {string} – The name of action. This name becomes the name of the method on
111111
* your resource object.
112-
* - **`method`** – {string} – HTTP request method. Valid methods are: `GET`, `POST`, `PUT`,
113-
* `DELETE`, and `JSONP`.
112+
* - **`method`** – {string} – Case insensitive HTTP method (e.g. `GET`, `POST`, `PUT`,
113+
* `DELETE`, `JSONP`, etc).
114114
* - **`params`** – {Object=} – Optional set of pre-bound parameters for this action. If any of
115115
* the parameter value is a function, it will be executed every time when a param value needs to
116116
* be obtained for a request (unless the param was overridden).

0 commit comments

Comments
 (0)