Hi there.

 I have been working with another REST API recently and one of the features
is the support for comma delimited lists as part of a API request. From
this example from the docs..

curl 
"http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QX&dataSet=BfMAe6Itzgt&startDate=2013-01-01&endDate=2013-01-31&orgUnit=YuQRtpLP10I&orgUnit=vWbkYPRmKyS&children=true";
-H "Accept:application/xml" -u admin:district -v


It would be useful to support this request as well..

curl 
"http://apps.dhis2.org/dev/api/completeDataSetRegistrations?dataSet=pBOMPrpg1QX&dataSet=BfMAe6Itzgt&startDate=2013-01-01&endDate=2013-01-31&orgUnit=YuQRtpLP10I,vWbkYPRmKyS&children=true";
-H "Accept:application/xml" -u admin:district -v

In some cases, we have many dozens or hundreds of orgunit UIDs in the
requests, and it might be just a bit simpler to have these delimited.

Thoughts?

Regards,
Jason
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to