Skip to content

Commit

Permalink
MAT-7855 url sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
adongare committed Nov 8, 2024
1 parent 1c4f335 commit a0014c0
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ public class InternalTerminologyController {
private final FhirContext fhirContext;
private final InternalTerminologyService internalTerminologyService;

@GetMapping("ValueSet/{id}/expand")
@GetMapping(path = "ValueSet/{id}/expand", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<String> valueSetExpansion(@PathVariable String id) {
ValueSet valueSet = internalTerminologyService.getValueSetExpansionById(id);
return ResponseEntity.ok()
.contentType(MediaType.APPLICATION_JSON)
.body(fhirContext.newJsonParser().encodeResourceToString(valueSet));
return ResponseEntity.ok().body(fhirContext.newJsonParser().encodeResourceToString(valueSet));
}
}

0 comments on commit a0014c0

Please sign in to comment.