Getting bad request when retrieving mrrt templates from jquery

Hi all

I am trying to populate a select box with MrrtReportTemplates, it has a resource MrrtReportTemplateResource which was implemented according to our standard here by extending DataDelegatingCrudResource. https://github.com/openmrs/openmrs-module-radiology/blob/master/omod/src/main/java/org/openmrs/module/radiology/report/template/web/resource/MrrtReportTemplateResource.java#L32

Here is my javascript code https://github.com/ivange94/openmrs-module-radiology/blob/RAD-273/omod/src/main/webapp/orders/radiologyReportSegment.jsp#L21-L28

When I run it I get a bad request from server. I am trying to retrieve all templates and populate the select element on the page.

Are you supposed to provide a uuid in the URL of the template?

Thanks for your response. I was trying to get all templates when the api does not implement a doGetAll method. Fixed that. :slight_smile: