← Back to team overview

dhis2-devs-core team mailing list archive

Re: Filtering API resources by viewClass param.

 

Hi Araz

The viewClass parameter is going away completely in the future have a look
at field filtering [1] instead.

[1] https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s07.html

--
Morten

On Mon, Mar 16, 2015 at 1:56 PM, Araz Abishov <araz.abishov.gsoc@xxxxxxxxx>
wrote:

> Hello everyone,
>
> In 2.17 we can specify viewClass=[basic | detailed | export] param for
> queries to /api/metaData/ which is extremely useful, but it seems it does
> not work for other resources.
>
> For example I want to get particular indicator from /api/indicators/{id}.
>
> The body of response contains indicatorType as well, which by default is
> just an url to another resource (it means I need to make another network
> request in order to get it).
>
> It will be really nice if indicator itself could contain the body of
> indicatorType if we specify viewClass=detailed.
>
> Best Regards,
> Araz
>
> --
> Mailing list: https://launchpad.net/~dhis2-devs-core
> Post to     : dhis2-devs-core@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs-core
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References