dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #50491
Inconsistency between schema and api ?
Hello!
I'm making a new DHIS2 App and so make use of the API through d2. I think I
found an inconsistency between the schema as exposed under api/schemas and
the real field returned.
Having access to the schema is very handy to directly know for example
which field to show & how (as we have access to their property types).
- When using organisationUnitGroups, for example
https://play.dhis2.org/demo/api/organisationUnitGroups/RXL3lPSK8oG.json we
get a field named "organisationUnits" with a list of ids of the linked unit.
- But on the schema (
https://play.dhis2.org/demo/api/schemas/organisationUnitGroup) the link to
organisationUnit is actually referenced under the field name "members"
There are similar situation for OU (organisationUnitGroups vs just
"groups") and probably other.
Is it something I'm missing or is that a mistake? If this is a bug, let me
know if I can fill a PR (with some direction from the team).
Thanks,
Martin
--
*Martin Van Aken - **Freelance Enthusiast Developer*
Mobile : +32 486 899 652
Follow me on Twitter : @martinvanaken <http://twitter.com/martinvanaken>
Call me on Skype : vanakenm
Hang out with me : martin@xxxxxxxxxxxxxxxx
Contact me on LinkedIn : http://www.linkedin.com/in/martinvanaken
Company website : www.joyouscoding.com
Follow ups