Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Adding payload option for delete requests #10

Merged
merged 2 commits into from
Nov 12, 2018
Merged

Conversation

plinnegan
Copy link
Contributor

@plinnegan plinnegan commented Nov 12, 2018

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
Copy link

coveralls commented Nov 12, 2018

Pull Request Test Coverage Report for Build 176

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 100.0%

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

💛 - Coveralls

@davidhuser davidhuser merged commit c2fe87e into davidhuser:dev Nov 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants