You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Alena Prokharchyk (JIRA)" <ji...@apache.org> on 2013/07/22 18:26:53 UTC

[jira] [Commented] (CLOUDSTACK-3685) APIServer should have a better way for user to pass Map-like parameter

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-3685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13715334#comment-13715334 ] 

Alena Prokharchyk commented on CLOUDSTACK-3685:
-----------------------------------------------

We have to be careful and provide backwards compatibility for existing API users. So whoever implements a new approach, should leave the support for the old style too.
                
> APIServer should have a better way for user to pass Map-like parameter
> ----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-3685
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3685
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: API
>    Affects Versions: pre-4.0.0
>            Reporter: Min Chen
>             Fix For: Future
>
>
> Currently to pass a Map parameter to api command, we have to pass it like this:
> details[0].key=key1_name&details[0].value=key1_value&details[1].key=key2_name&details[1].value=key2_value...
> Furthermore, ".key" and ".value" are not in our convention at all, so api writer can choose different modifier. This input is very hard to read. We need to have a better way to input Map-like parameter, either json or simple key=value structure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira