You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/21 03:11:45 UTC

[GitHub] andrewnet opened a new issue #2405: REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls.

andrewnet opened a new issue #2405: REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls.
URL: https://github.com/apache/incubator-openwhisk/issues/2405
 
 
   REST API response for list package and get package has different definition for "binding", they should keep consistent otherwise we can't use the same model class for both API calls.
   
   ## Environment details:
   Bluemix OpenWhisk
   
   ## Steps to reproduce the issue:
   1.   Create a package
   2.   Run `wsk -v package list`, this should give you a list of packages defined in the system
   3.   Run `wsk -v package get <any package name>` to get details of a specific package
   4.   Compare the result, you should see the attribute `binding` is a boolean in package list and it is an object in package detail
   
   ## Provide the expected results and outputs:
   The type of attribute `binding` needs to be consistent in both API call
   
   ## Provide the actual results and outputs:
   ### sample for package list
   ```
   [{
     "name": "package_messagehub_myenv",
     "binding": true,
     "publish": false,
     "annotations": [{
       "key": "binding",
       "value": {
         "namespace": "whisk.system",
         "name": "messaging"
       }
     }],
     "version": "0.0.1",
     "namespace": "Entity_discovery_dev"
   }, {
     "name": "MyPackage",
     "binding": true,
     "publish": false,
     "annotations": [{
       "key": "binding",
       "value": {
         "namespace": "whisk.system",
         "name": "messaging"
       }
     }],
     "version": "0.0.1",
     "namespace": "Entity_discovery_dev"
   }]
   ```
   
   ### Sample for package detail
   ```
   {
       "namespace": "Entity_discovery_dev",
       "name": "MyPackage",
       "version": "0.0.1",
       "publish": false,
       "binding": {
           "namespace": "whisk.system",
           "name": "messaging"
       },
       ...
   }
   ```
   
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services