diff --git a/src/main/java/gov/cms/madie/resources/PackageController.java b/src/main/java/gov/cms/madie/resources/PackageController.java index fafcfd9..ce48860 100644 --- a/src/main/java/gov/cms/madie/resources/PackageController.java +++ b/src/main/java/gov/cms/madie/resources/PackageController.java @@ -9,7 +9,6 @@ import jakarta.xml.bind.JAXBException; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; -import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.validation.annotation.Validated; @@ -64,13 +63,12 @@ public String getMeasureSimpleXml( value = "/hqmf", produces = { MediaType.APPLICATION_XML_VALUE, - }, - consumes = {MediaType.APPLICATION_JSON_VALUE}) + }) public ResponseEntity generateHqmf( @RequestBody @Validated(Measure.ValidationSequence.class) Measure measure) throws Exception { // generate HQMF if the model type is QDM if (measure != null && measure.getModel() != null && measure.getModel().contains("QDM")) { - return ResponseEntity.status(HttpStatus.OK) + return ResponseEntity.ok() .contentType(MediaType.APPLICATION_XML) .body(hqmfService.generateHqmf((QdmMeasure) measure)); }