openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk-client-js] branch issue_8_count updated: update readme with count
Date Fri, 23 Mar 2018 11:08:14 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch issue_8_count
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-client-js.git


The following commit(s) were added to refs/heads/issue_8_count by this push:
     new 6e04971  update readme with count
6e04971 is described below

commit 6e0497141da8cae3a91934f41af062beb9bcc471
Author: Carlos Santana <csantanapr@apache.org>
AuthorDate: Fri Mar 23 07:06:50 2018 -0400

    update readme with count
---
 README.md | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index d11110d..e15b8b8 100644
--- a/README.md
+++ b/README.md
@@ -229,12 +229,17 @@ ow.namespaces.list()
 ow.packages.list()
 ```
 
-Query parameters for the API calls are supported (e.g. limit, skip, etc.) by passing an object
with the named parameters as the first argument.
+Query parameters for the API calls are supported (e.g. limit, skip, count etc.) by passing
an object with the named parameters as the first argument.
 
 ```javascript
 ow.actions.list({skip: 100, limit: 50})
 ```
 
+To count the number of resources without retrieving the resources you can use `count` query
parameter.
+```
+ow.actions.list({count:true}).then(a => console.log(a)) //prints {"actions": 42}
+```
+
 The following optional parameters are supported:
 - `namespace` - set custom namespace for endpoint
 

-- 
To stop receiving notification emails like this one, please contact
csantanapr@apache.org.

Mime
View raw message