From 0850312fd7c1025a69e67e478cd6064619f94ce7 Mon Sep 17 00:00:00 2001 From: Rwolfe-Nava Date: Wed, 12 Jun 2024 13:47:08 -0400 Subject: [PATCH] refactor content type name --- .../main/java/gov/cms/ab2d/api/controller/common/ApiText.java | 4 ++-- .../main/java/gov/cms/ab2d/api/controller/v1/StatusAPIV1.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/gov/cms/ab2d/api/controller/common/ApiText.java b/api/src/main/java/gov/cms/ab2d/api/controller/common/ApiText.java index 77a60d6e3..ac1136724 100644 --- a/api/src/main/java/gov/cms/ab2d/api/controller/common/ApiText.java +++ b/api/src/main/java/gov/cms/ab2d/api/controller/common/ApiText.java @@ -1,7 +1,7 @@ package gov.cms.ab2d.api.controller.common; import static gov.cms.ab2d.api.util.Constants.GENERIC_FHIR_ERR_MSG; -import static gov.cms.ab2d.common.util.Constants.NDJSON_FIRE_CONTENT_TYPE; +import static gov.cms.ab2d.common.util.Constants.FHIR_NDJSON_CONTENT_TYPE; import static gov.cms.ab2d.common.util.Constants.SINCE_EARLIEST_DATE; import lombok.experimental.UtilityClass; @@ -33,7 +33,7 @@ public class ApiText { public static final String STATUS_DES = "Returns a status of an export job."; public static final String JOB_ID = "A job identifier"; public static final String FILE_NAME = "A file name"; - public static final String DNLD_DESC = "Returns the requested file as " + NDJSON_FIRE_CONTENT_TYPE; + public static final String DNLD_DESC = "Returns the requested file as " + FHIR_NDJSON_CONTENT_TYPE; public static final String JOB_NOT_FOUND = "Job not found. " + GENERIC_FHIR_ERR_MSG; public static final String JOB_CANCELLED_MSG = "Job canceled"; public static final String CAP_STMT = "FHIR capability statement"; diff --git a/api/src/main/java/gov/cms/ab2d/api/controller/v1/StatusAPIV1.java b/api/src/main/java/gov/cms/ab2d/api/controller/v1/StatusAPIV1.java index 88f65e655..46f7c7eb1 100644 --- a/api/src/main/java/gov/cms/ab2d/api/controller/v1/StatusAPIV1.java +++ b/api/src/main/java/gov/cms/ab2d/api/controller/v1/StatusAPIV1.java @@ -40,6 +40,7 @@ import static gov.cms.ab2d.api.controller.common.ApiText.X_PROG; import static gov.cms.ab2d.api.util.SwaggerConstants.BULK_CANCEL; import static gov.cms.ab2d.common.util.Constants.API_PREFIX_V1; +import static gov.cms.ab2d.common.util.Constants.FHIR_JSON_CONTENT_TYPE; import static gov.cms.ab2d.common.util.Constants.FHIR_PREFIX; import static org.springframework.http.HttpHeaders.EXPIRES; import static org.springframework.http.HttpHeaders.RETRY_AFTER; @@ -72,7 +73,7 @@ public class StatusAPIV1 { ) } ) - @GetMapping(value = "/Job/{jobUuid}/$status", produces = APPLICATION_JSON) + @GetMapping(value = "/Job/{jobUuid}/$status", produces = { APPLICATION_JSON, FHIR_JSON_CONTENT_TYPE }) @ResponseStatus(value = HttpStatus.OK) public ResponseEntity getJobStatus(HttpServletRequest request, @PathVariable @NotBlank String jobUuid) {