Help Checking Purge action with PostMan

Hello, I am trying to work on this ticket and had submitted an initial PR for review.

And got a comment from @reagan to test if the purging now works as expected using POSTMAN, but not sure how to do this, what base URL and end point to use.

I have tried using the demo server and also tried building and loading the module locally but they both generate the error below when I try to access the cohort builder

HTTP Status 404 – Not Found Type Status Report Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

Apache Tomcat/8.5.91

Have tried searching through TALK and WIKI(cohort-module related pages) for anything that could help, but I haven’t been successful yet.

Any help, suggestions, ideas on how I can go about this? @ruhanga @gcliff @mozzy @thembo42

you’ll need to use the base URL where your local OpenMRS instance is running. It should look sth like http://localhost:8080/openmrs/.

example usages https://github.com/search?utf8=✓&q="ws%2Frest%2Fv1%2Fcohort"&type=Code

1 Like

Thank you @thembo42 for this…

Though getting error messages, even on the demo server the links to/under the Module Cohort are not working in the legacy UI. They return the same error message. For example the cohort dashbaord and cohort patient search links

Any help? @k4pran

Once you have a cohort member, you can use their UUID to hit the purge endpoints with a DELETE request to this url:

http://localhost:8080/openmrs/ws/rest/v1/cohortm/cohortmember/e682e501-eafb-4d56-948c-c88d44937964?purge=true

1 Like