brunogirin opened a new issue #854: API Gateway doesn't take sequences into 
account
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/854
 
 
   When writing a sequence that I want to expose via the API Gateway, I can set 
the `web` flag to `true` but `wskdeploy` doesn't see the sequence when creating 
the API.
   
   ### Manifest
   
   ```
   packages:
     example:
       version: 0.0.1
       actions:
         greeting:
           function: build/libs/platform-0.0.1.jar
           runtime: java
           main: com.consideratehoteliers.Hello
           web-export: true
           inputs:
             name: string
           outputs:
             greeting: string
         copycat:
           function: build/libs/platform-0.0.1.jar
           runtime: java
           main: com.consideratehoteliers.Copy
       sequences:
         hello-copycat:
           actions: greeting, copycat
           web: true
       apis:
         hello-world:
           example:
             hello:
               greeting: GET
             hello-copy:
               hello-copycat: GET
   ```
   
   ### Output when running `wskdeploy`
   
   ```
   $ wskdeploy
   Info: The API host is [openwhisk.eu-gb.bluemix.net], from .wskprops.
   Info: The auth key is set, from .wskprops.
   Info: The namespace is [_], from .wskprops.
   Info: The apigw access token is set, from .wskprops.
   Info: Unmarshal OpenWhisk runtimes from internet at 
https://openwhisk.eu-gb.bluemix.net.
   Error: manifestreader.go [98]: [ERROR_YAML_FILE_FORMAT_ERROR]: File: 
[manifest.yaml]: 
   ==> manifest_parser.go [1035]: [ERROR_YAML_FILE_FORMAT_ERROR]: File: 
[manifest.yaml]: Action [hello-copycat] is missing from manifest file, API 
[hello-world] can only be created based on the action from manifest file. 
Please update manifest file to include [hello-copycat] as a web action.
   ```
   
   Also note that it looks like you need to set `web-export` for actions and 
`web` for sequences, which is rather confusing.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to