You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by ho...@apache.org on 2017/09/08 03:01:00 UTC
[incubator-openwhisk-test] branch master updated: Update hellowhisk
package. (#6)
This is an automated email from the ASF dual-hosted git repository.
houshengbo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-test.git
The following commit(s) were added to refs/heads/master by this push:
new ec860ab Update hellowhisk package. (#6)
ec860ab is described below
commit ec860abe30f9d97b404cbfcf0b199baafe347795
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Thu Sep 7 22:00:58 2017 -0500
Update hellowhisk package. (#6)
---
packages/hellowhisk/README.md | 29 +++++++++++++++++++++++++++++
packages/hellowhisk/manifest.yaml | 4 ++--
2 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/packages/hellowhisk/README.md b/packages/hellowhisk/README.md
new file mode 100644
index 0000000..8314a23
--- /dev/null
+++ b/packages/hellowhisk/README.md
@@ -0,0 +1,29 @@
+[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
+
+# hellowhisk
+
+Containst the following actions:
+- greeting.js
+- HttpGet.swift
+
+## HttpGet.swift
+
+This action invokes: ```curl https://httpbin.org/get```
+
+which returns JSON which appears something like:
+
+```
+{
+ "args": {},
+ "headers": {
+ "Accept": "*/*",
+ "Connection": "close",
+ "Host": "httpbin.org",
+ "User-Agent": "curl/7.54.0"
+ },
+ "origin": "47.220.153.242",
+ "url": "https://httpbin.org/get"
+}
+```
+
+and then serializes it for the response object.
diff --git a/packages/hellowhisk/manifest.yaml b/packages/hellowhisk/manifest.yaml
index 6af8f54..2ca660e 100644
--- a/packages/hellowhisk/manifest.yaml
+++ b/packages/hellowhisk/manifest.yaml
@@ -4,6 +4,6 @@ package:
name: hellowhisk
actions:
greeting:
- location: src/greeting.js
+ function: src/greeting.js
httpGet:
- location: src/httpGet.swift
+ function: src/httpGet.swift
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].