davidhuser / dhis2.py

Generic and lightweight Python wrapper for the DHIS2 API using requests
MIT License
15 stars 11 forks source link

Adding payload option for delete requests #10

Closed plinnegan closed 5 years ago

plinnegan commented 5 years ago

In some rare cases such as updating collections like dataElementGroups a payload is required with a delete api request. For example the DHIS2 2.29 dev manual in section 1.9.4.2 shows an example of bulk removal of data elements from a dataElementGroup.

I have made changes to allow json or data parameters for delete.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 176


Files with Coverage Reduction New Missed Lines %
dhis2/api.py 2 100.0%
<!-- Total: 2 -->
Totals Coverage Status
Change from base Build 171: 0.0%
Covered Lines: 343
Relevant Lines: 343

💛 - Coveralls