You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/02/09 20:30:32 UTC

[GitHub] pritidesai opened a new issue #724: API Gateway - Add support to specify response type in manifest file

pritidesai opened a new issue #724: API Gateway - Add support to specify response type in manifest file
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/724
 
 
   APIs are defined in manifest file with:
   
   ```
       apis:
              book-club:
                   club:
                       books:
                           getBooks: GET
                           postBooks: POST
                           putBooks: PUT
                           deleteBooks: DELETE
   ```
   
   Now, here four different APIs are getting created with specified Gateway Method (GET, POST, PUT, DELETE, etc), with default response type of `json`. As this current schema does not support specifying response type for each API. We need to update the schema so that response type can be specified, some possible options:
   
   ```
       apis:
              book-club:
                   club:
                       books:
                           getBooks: GET,<response_type>
                           postBooks: POST,<response_type>
                           putBooks: PUT,<response_type>
                           deleteBooks: DELETE,<response_type>
   ```
   
   or:
   
   ```
       apis:
              book-club:
                   club:
                       books:
                           getBooks:
                               method: GET
                               response: <response_type>
                           postBooks:
                               method: POST
                               response: <response_type>
                           putBooks:
                               method: PUT
                               response: <response_type>
                           deleteBooks:
                               method: DELETE
                               response: <response_type>
   ```
   
   please feel free to suggest any other option.
   
   

----------------------------------------------------------------
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