Is fields disabled with get method api?

I was trying to fetch from the endpoint https://play.im.dhis2.org/stable-2-39-6/api/39/appHub/v2/apps?paging=false&fields=name,coreApp,sourceUrl.

I was expecting to get data only for the specified fields but I am getting data for all fields as if I used *, but I use to get only the fields before.

Are there some kind of changes causing this?

1 Like

@jetisco4u : the app hub is a separate backend service from DHIS2 core and hence the api does not have the same functionality / syntax as the DHIS2 api. You could create a feature request for this, or in the interim, I think it would just be better if you filtered for the fields you are interested in after retrieving the payload.

2 Likes

I opted for creating a configuration file in my DOMS document with the list of retrieved apps given that the payload does not include the baseURL which is the main item I am after. But it would be nice if we can have the baseUrl or the landing page url for the apps. That way I can parse the url object and obtain the path which I can fetch dynamically to build routes for an instance I am launching.

1 Like