You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/05/25 15:31:47 UTC
[incubator-openwhisk-apigateway] branch master updated: Fix example
swagger for v2 interface (#203)
This is an automated email from the ASF dual-hosted git repository.
csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-apigateway.git
The following commit(s) were added to refs/heads/master by this push:
new ca7dc6e Fix example swagger for v2 interface (#203)
ca7dc6e is described below
commit ca7dc6e9153f9db1654ee156e9d1bd3ea73785c7
Author: Alex Song <al...@gmail.com>
AuthorDate: Thu May 25 11:31:45 2017 -0400
Fix example swagger for v2 interface (#203)
---
doc/v2/management_interface_v2.md | 2 +-
.../scripts/lua/management/examples/example1.json | 9 ---------
.../scripts/lua/management/examples/example2.json | 22 +---------------------
3 files changed, 2 insertions(+), 31 deletions(-)
diff --git a/doc/v2/management_interface_v2.md b/doc/v2/management_interface_v2.md
index eee51ae..8518ac6 100644
--- a/doc/v2/management_interface_v2.md
+++ b/doc/v2/management_interface_v2.md
@@ -106,7 +106,7 @@ _Example body_:
},
{
"operations": [
- "postHello"
+ "getFoo"
],
"execute": [
{
diff --git a/tests/scripts/lua/management/examples/example1.json b/tests/scripts/lua/management/examples/example1.json
index a6d617c..a1eba10 100644
--- a/tests/scripts/lua/management/examples/example1.json
+++ b/tests/scripts/lua/management/examples/example1.json
@@ -18,15 +18,6 @@
"/hello": {
"get": {
"description": "Returns a greeting to the user!",
- "parameters": [
- {
- "name": "user",
- "in": "path",
- "type": "string",
- "required": true,
- "description": "The name of the user to greet."
- }
- ],
"responses": {
"200": {
"description": "Returns the greeting.",
diff --git a/tests/scripts/lua/management/examples/example2.json b/tests/scripts/lua/management/examples/example2.json
index 24f82cc..47794c6 100644
--- a/tests/scripts/lua/management/examples/example2.json
+++ b/tests/scripts/lua/management/examples/example2.json
@@ -19,21 +19,6 @@
"get": {
"operationId": "getHello",
"description": "Returns a greeting to the user!",
- "x-openwhisk": {
- "namespace": "greend@us.ibm.com_dev",
- "package": "demo",
- "action": "hello",
- "url": "https://openwhisk.ng.bluemix.net/api/some/action/path.http"
- },
- "parameters": [
- {
- "name": "user",
- "in": "path",
- "type": "string",
- "required": true,
- "description": "The name of the user to greet."
- }
- ],
"responses": {
"200": {
"description": "Returns the greeting.",
@@ -48,12 +33,7 @@
},
"post": {
"operationId": "postHello",
- "description": null,
- "x-openwhisk": {
- "package": "demo",
- "action": "createUser",
- "url": "https://openwhisk.ng.bluemix.net/api/user@us.ibm.com/demo/createuser"
- }
+ "description": null
}
}
},
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].