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 451DFEDD6 for ; Thu, 31 Jan 2013 08:30:13 +0000 (UTC) Received: (qmail 48763 invoked by uid 500); 31 Jan 2013 08:30:12 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 48620 invoked by uid 500); 31 Jan 2013 08:30:11 -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 48573 invoked by uid 99); 31 Jan 2013 08:30:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 08:30:10 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of runseb@gmail.com designates 209.85.212.173 as permitted sender) Received: from [209.85.212.173] (HELO mail-wi0-f173.google.com) (209.85.212.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 08:30:04 +0000 Received: by mail-wi0-f173.google.com with SMTP id hq4so155135wib.0 for ; Thu, 31 Jan 2013 00:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=OwkoDNXjwtf68EQPCGkeZGGW/LiW8nUhxqlQv1mab+g=; b=B+dcLkMUF+E4jmFmIGB81DkXvYABSX2/rX8cT8I4vQRAuaIiH6pzRnA3B1ZLqSbQN9 uIkYyd2P91R5+dul4d1GxPBNY68VfYtl1bDHaxqb/ka5kvvmq5k3MGwO1AD+8DY5Mp+i H+TR1k2b42jqbdniVppJxSvx6FqHNCS28uQf7EXgLUzukMTYMyd+7NGE8NiDLyXLjiFx ycqUJrQs5aBNdena+3YTzCsI+D4bK/OxUR2Jd4mc9CrfkBBCiuI/Mf6Mw1mpxk40f5SF R3Trp3ZkrlmuWgZMQEPJx684TxX8I32MLow17VZAymoHApY3sTMhPTBORdtvHIa2pN1c C5bQ== X-Received: by 10.180.82.65 with SMTP id g1mr13472131wiy.22.1359620978676; Thu, 31 Jan 2013 00:29:38 -0800 (PST) Received: from [10.0.0.5] (156-239.193-178.cust.bluewin.ch. [178.193.239.156]) by mx.google.com with ESMTPS id fa15sm13465299wid.7.2013.01.31.00.29.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 31 Jan 2013 00:29:37 -0800 (PST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: [DISCUSS] Fwd: jclouds json parsing issue From: Sebastien Goasguen In-Reply-To: Date: Thu, 31 Jan 2013 09:29:34 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <23A5F519-3FB7-4D1B-93CE-567DDE89584A@gmail.com> References: To: cloudstack-dev@incubator.apache.org X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 30, 2013, at 10:17 PM, Rohit Yadav wrote: > On Wed, Jan 30, 2013 at 1:06 PM, Chip Childers > wrote: >> On Wed, Jan 30, 2013 at 3:56 PM, Rohit Yadav = wrote: >>> Did we change the response format to an envelop style? >>>=20 >>> Cloudstack 3.x >>> deployvirtualmachineresponse.json : { "deployvirtualmachine" : = {"id":1234, >>> "jobid":50006} } >>> Cloudstack 4.x >>> new json response : { "deployvirtualmachineresponse" : >>> = {"id":"1cce6cb7-2268-47ff-9696-d9e610f6619a","jobid":"13330fc9-8b3e-4582-a= a3e-90883c041ff0"}, >>> "cloudstack-version": "4.1.0-SNAPSHOT" } >>=20 >> It looks like there are two changes... The name of the returned >> object (deployvirtualmachine vs deployvirtualmachineresponse), as = well >> as the addition of the cloudstack-version field. >=20 > I've no idea about these changes and how and why they were made? > Comment or advise anyone? > I've been maintaining and working on the api layer about past two > months now and I feel this is the layer which the world talks to and > my aim is to make sure we keep minimal damages to projects who are > based on top of CloudStack if that requires us to deprecate it and > adopt something REST-ful or standardized. This is for future of > course, I still want feedback and info on the changes as Adrian > mentions. Rohit,=20 I think we are still trying to figure out if this is a real issue, if = something got changed or not. I will see Charles on Friday and we will go through his workflow, I will = check the version numbers etc and try to figure out what the real issue = is. Your work on API refactoring, while I did not follow all of it :), was = terrific. Long term there should probably be a move to pure REST. -Sebastien >=20 >>=20 >> -chip >>=20 >>> Forwarding comment from jclouds developer Adrian: >>>=20 >>> ---------- Forwarded message ---------- >>> From: Adrian Cole >>> Date: Wed, Jan 30, 2013 at 12:25 PM >>> Subject: Re: [jclouds] cloudstack renamed = deployvirtualmachineresponse in >>> version 4.1 (#1254) >>> To: jclouds/jclouds >>> Cc: Bhaisaab >>>=20 >>>=20 >>> @bhaisaab another note wrt the = envelope style >>> used in cloudstack. If you are looking to support multiple version >>> detection, it would be much easier on us and others to use http = mechanisms. >>> typically content mediation is done via headers, rather than = wrapping >>> things in a thing that includes version and starts feeling like = SOAP. >>> making a generator based on your style of doing versions is = possible, but >>> it wouldn't be reusable code. If there's good reason to deviate from = ReST >>> and other similar apis wrt Accept header and/or version headers, = please >>> consider things that you are doing on your own, as making tools that = only >>> work with the cloudstack way isn't enough gain to even use the = metadata >>> service you describe. for example, there are specs like HAL >>> http://stateless.co/hal_specification.html that at least have a = chance of >>> tooling support. Alternatively, you could go into the REST community = and >>> pitch the way you do things and get others to adopt it. This could = also >>> lead to tooling that isn't bespoke only to cloudstack. >>>=20 >>> =97 >>> Reply to this email directly or view it on >>> = GitHub.