[Hawkular-dev] Tenant Id - Not Part of URL

Thomas Segismont tsegismo at redhat.com
Wed May 13 10:36:42 EDT 2015


Le 13/05/2015 15:34, Matt Wringe a écrit :
> Personally I think a matrix parameter makes a lot more sense
>
> http://hawkular/metrics;tenant=foo/gauges/....
>
> versus
>
> http://hawkular/metrics/gauges/....?tenant=foo
>
> Always having to specify tenant at the end of the url seems strange to
> be. Logically I would think that it should be applied to the metrics
> resource itself and not to all the child resources.
>
> Something like this would normally mean that the parameter 'a' is to be
> applied to the 'foo/bar' resource:
> http://foo/bar;a=b/baz
>
> While, something like this would normally mean that the parameter 'a' is
> to be applied to the 'foo/bar/baz' resource:
> http://foo/bar/baz?a=b
>

I have no strong preference.

Note that the query param is just a fallback, in case a client can't set 
the header (like somebody sending GET requests manually with a browser).


More information about the hawkular-dev mailing list