Skip to content

Commit

Permalink
refactor content type name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rwolfe-Nava committed Jun 12, 2024
1 parent d59ab99 commit 0850312
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<JobCompletedResponse> getJobStatus(HttpServletRequest request,
@PathVariable @NotBlank String jobUuid) {
Expand Down

0 comments on commit 0850312

Please sign in to comment.