Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-03-05 Thread Petr Blaho
On Mon, Mar 03, 2014 at 09:19:34AM +0100, Radomir Dopieralski wrote: > On 27/02/14 11:52, Petr Blaho wrote: > > > I agree with you w/r/t to indirection when accessing data but I like the > > idea that when I look at json repsonse I see what type of resource it > > is. That wrapper element describe

Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-03-03 Thread Radomir Dopieralski
On 27/02/14 11:52, Petr Blaho wrote: > I agree with you w/r/t to indirection when accessing data but I like the > idea that when I look at json repsonse I see what type of resource it > is. That wrapper element describes it. And I do not need to know what > request (url, service, GET or POST...) t

Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-02-27 Thread Petr Blaho
On Wed, Feb 26, 2014 at 02:17:53PM -0500, Jay Dobies wrote: > This is a new concept to me in JSON, I've never heard of a wrapper > element like that being called a namespace. I named it "namespace" in my email. It is not any kind of formal or standard naming. "Wrapper element" is better name for

Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-02-27 Thread Dougal Matthews
On 26/02/14 19:17, Jay Dobies wrote: This is a new concept to me in JSON, I've never heard of a wrapper element like that being called a namespace. It's certainly not in the spec AFAIK, but I've seen this approach before in various places. My first impression is that is looks like cruft. If

Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-02-27 Thread Dougal Matthews
On 26/02/14 18:38, Petr Blaho wrote: I am wondering what is the OpenStack way of returning json from apiclient. Good question, I think its important for us to be as consistent as possible. By looking at API docs at http://api.openstack.org/ I can say that projects use both ways, altought what

Re: [openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-02-26 Thread Jay Dobies
This is a new concept to me in JSON, I've never heard of a wrapper element like that being called a namespace. My first impression is that is looks like cruft. If there's nothing else at the root of the JSON document besides the namespace, all it means is that every time I go to access relevan

[openstack-dev] [TripleO][Tuskar] JSON output values from Tuskar API

2014-02-26 Thread Petr Blaho
Hi, I am wondering what is the OpenStack way of returning json from apiclient. I have got 2 different JSON response examples from http://api.openstack.org/: json output with namespace: { "volume": { "status":"available", "availability_zone":"nova", "id":"5aa119a8-d25b-45a7-8d1b-8