Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7CB47DEC5 for ; Mon, 17 Dec 2012 06:24:58 +0000 (UTC) Received: (qmail 10922 invoked by uid 500); 17 Dec 2012 06:24:58 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 10879 invoked by uid 500); 17 Dec 2012 06:24:57 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 10869 invoked by uid 99); 17 Dec 2012 06:24:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 06:24:57 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rohit.yadav@citrix.com designates 203.166.19.134 as permitted sender) Received: from [203.166.19.134] (HELO SMTP.CITRIX.COM.AU) (203.166.19.134) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2012 06:24:51 +0000 X-IronPort-AV: E=Sophos;i="4.84,299,1355097600"; d="scan'208";a="103006" Received: from banpmailmx01.citrite.net ([10.103.128.73]) by SYDPIPO01.CITRIX.COM.AU with ESMTP/TLS/RC4-MD5; 17 Dec 2012 06:24:28 +0000 Received: from BANPMAILBOX01.citrite.net ([10.103.128.72]) by BANPMAILMX01.citrite.net ([10.103.128.73]) with mapi; Mon, 17 Dec 2012 11:54:27 +0530 From: Rohit Yadav To: "cloudstack-dev@incubator.apache.org" , "cloudstack-users@incubator.apache.org" Date: Mon, 17 Dec 2012 11:54:26 +0530 Subject: API response change Thread-Topic: API response change Thread-Index: AQHN3B8pdRgZbckvHE6WgckqXGnsRA== Message-ID: <0BCCCE152323764BB7FD6AE6D7A1D9060102894ECFCD@BANPMAILBOX01.citrite.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I've modified api layer to return cloudstack-version (prev. cloud-stack-ver= sion in xml) as part of the api cmd response for json type, to be consisten= t with xml response which includes version number: https://git-wip-us.apache.org/repos/asf?p=3Dincubator-cloudstack.git;a=3Dco= mmit;h=3Df8a483fc5a47cb66ac4788fcd7d53da0c9d6ea2b The "cloudstack-version" information in response can be used by a client, f= or example an api discovery service which cloudmonkey can use to process/re= quest/cache apis from cloudstack mgmt server based on the version and check= sum of api information (api info would be a datastructure sent as json or x= ml from api server that has apiname, docstring, args etc. all the info that= cloudmonkey pre-caches during build time). The version info can be obtained using the listCapability api, share your c= oncern if there is some better way to do this or if we should revert this. Lastly, if you look at the code, string builders are used to build xml and = json responses (primitive c like coding), any suggestions if we can use any= APL compliant xml and json libraries to build them? Regards.=