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

Commit 3a501bf

Browse files
committed
Updating Web Actions documentation.
1 parent b42eba3 commit 3a501bf

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,6 @@ Date: Mon, 19 Dec 2016 15:47:53 GMT
711711
}
712712
````
713713

714-
715-
716714
## Exporting Web Actions
717715

718716
Functions can be turned into "*web actions*" which return HTTP content without use of an API Gateway. This feature is enabled by setting an annotation (`web-export`) in the configuration file.
@@ -728,12 +726,12 @@ functions:
728726
Functions with this annotation can be invoked through a URL template with the following parameters.
729727

730728
```
731-
https://{APIHOST}/api/v1/experimental/web/{USER_NAMESPACE}/{PACKAGE}/{ACTION_NAME}.{TYPE}
729+
https://{APIHOST}/api/v1/web/{USER_NAMESPACE}/{PACKAGE}/{ACTION_NAME}.{TYPE}
732730
```
733731
734732
- *APIHOST* - platform endpoint e.g. *openwhisk.ng.bluemix.net.*
735733
- *USER_NAMESPACE* - this must be an explicit namespace and cannot use the default namespace (_).
736-
- PACKAGE - action package or `default`.
734+
- *PACKAGE* - action package or `default`.
737735
- *ACTION_NAME* - default form `${servicename}-${space}-${name}`.
738736
- *TYPE* - `.json`, `.html`, `.text` or `.http`.
739737
@@ -769,13 +767,13 @@ function main() {
769767
770768
Functions can access request parameters using the following environment variables.
771769
772-
1. `**__ow_meta_verb:**` the HTTP method of the request.
773-
2. `**__ow_meta_headers:**` the request headers.
774-
3. `**__ow_meta_path:**` the unmatched path of the request.
775-
776-
Full details on this new feature are available in this [blog post](https://medium.com/openwhisk/serverless-http-handlers-with-openwhisk-90a986cc7cdd#.2x09176m8).
770+
1. `__ow_method` - HTTP method of the request.
771+
2. `__ow_headers` - HTTP request headers.
772+
3. `__ow_path` - Unmatched URL path of the request.
773+
4. `__ow_body` - Body entity from request.
774+
5. `__ow_query` - Query parameters from the request.
777775
778-
_**IMPORTANT: [Web Actions](https://github.com/openwhisk/openwhisk/blob/master/docs/actions.md) is currently experimental and may be subject to breaking changes.**_
776+
**Full details on this feature are available in this [here](https://github.com/apache/incubator-openwhisk/blob/master/docs/webactions.md).**
779777
780778
## Scheduled Invocations
781779

0 commit comments

Comments
 (0)