You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,6 +88,8 @@ Now that we have our OpenWhisk actions created, we will expose our OpenWhisk act
88
88
This feature is part of the "Bluemix Native API Management" feature and currently supports very powerful API management features like security, rate limiting, and more. For now though we're just using the CLI to expose our action with a REST endpoint. You can read more about this feature here: [API Gateway](https://console.ng.bluemix.net/docs/openwhisk/openwhisk_apigateway.html#openwhisk_apigateway).
# POST /v1/cat {"name": "Tahoma", "color": "Tabby"}
92
94
wsk api create -n "Cats API" /v1 /cat post create-cat
93
95
@@ -100,12 +102,11 @@ In both cases, the CLI will output the URL required to use the API. Make note of
100
102
Take note of the API URL that is generated from the previous command. Send an http POST and GET request using CuRL to test the actions. Remember to send the required parameters in the body of the request for POST, or as path parameters for GET. OpenWhisk automatically forwards these parameters to the actions we created.
101
103
102
104
```bash
103
-
104
105
# POST /v1/cat {"name": "Tahoma", "color": "Tabby"}
105
-
curl -X POST -H 'Content-Type: application/json' -d '{"name":"Tahoma","color":"Tabby"}'<<USE THE URL FROM ABOVE>>
106
+
curl -X POST -H 'Content-Type: application/json' -d '{"name":"Tahoma","color":"Tabby"}'$THE_URL_FROM_ABOVE
0 commit comments