jazzido / mondrian-rest

A REST interface for Mondrian ROLAP server
MIT License
32 stars 8 forks source link

option to retrieve additional metadata in jsonrecords format #23

Closed jspeis closed 7 years ago

jspeis commented 7 years ago

If I have a dimension Foo with a hierarchy like Parent Group > Child Group and I do a drilldown on Foo by Child Group in jsonrecordsstyle, would be great if I could add a flag to tell mondrian-rest that I would like to also retrieve available metadata (e.g. name of the Parent Group).

This would be useful for example in the context of data visualizations where I want to drilldown to the deepest child level but group by the parent.

jazzido commented 7 years ago

I got you, brother. It's been there since the beggining: https://github.com/jazzido/mondrian-rest/blob/d58d8db562480054ae8aac834797388615a873ae/spec/api_spec.rb#L174-L183

Just add parents=true to your query string. This is also exposed in mondrian-rest-client: .option('parents', true).

jazzido commented 7 years ago

(…yeah, we need better documentation).

jspeis commented 7 years ago

woot! thanks

On Thu, Aug 24, 2017 at 4:37 PM, Manuel Aristarán notifications@github.com wrote:

(…yeah, we need better documentation).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jazzido/mondrian-rest/issues/23#issuecomment-324750395, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFWHagYgGRa4d2vdyuPUyBDJFw2jN8hks5sbd8PgaJpZM4PBrry .