mdeuser opened a new issue #237: API with back-to-back path parameters fails
URL: https://github.com/apache/incubator-openwhisk-cli/issues/237
 
 
   Creating an API with multiple back-to-back path parameters fails
   ```
   >bx wsk api create /dumpurl /two/{segment1}/{segment2} get showPathSegs 
--response-type http
   error: Unable to create API: API creation failure: The parameter 'segment2' 
defined in path '/two/{segment1}/{segment2}' does not match any of the 
parameters defined for the path in the swagger file.
   ```
   Multiple paths separated by a non-parameter path segment work correctly
   ```
   >bx wsk api create /dumpurl /two/{segment1}/and/{segment2} get showPathSegs 
--response-type http
   ok: created API /dumpurl/two/{segment1}/and/{segment2} GET for action 
/_/showPathSegs
   
https://service.us.apiconnect.ibmcloud.com/gws/apigateway/api/XXXXXXXXXX/dumpurl/two/{segment1}/and/{segment2}
   ```
   Fix is needed for the following
   1. Support back-to-back path segments
   2. Error message in the context of the failing command does not make 
sense... that is, no swagger file was specified in the command, yet the error 
message indicates that a swagger file is in error.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to