Skip to content

Commit 1838776

Browse files
committed
CWMSVUE-600 Updated accept header to use jsonv2
1 parent 0170e14 commit 1838776

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • cwms-data-api-client/src/main/java/mil/army/usace/hec/cwms/data/api/client/controllers

cwms-data-api-client/src/main/java/mil/army/usace/hec/cwms/data/api/client/controllers/RatingController.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
package mil.army.usace.hec.cwms.data.api.client.controllers;
2626

27+
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_HEADER_V2;
2728
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_XML_HEADER_V2;
2829
import static mil.army.usace.hec.cwms.data.api.client.controllers.RatingEffectiveDatesEndpointInput.EFFECTIVE_DATES_ENDPOINT;
2930
import mil.army.usace.hec.cwms.data.api.client.model.RatingEffectiveDatesMap;
@@ -64,7 +65,7 @@ public RatingEffectiveDatesMap retrieveRatingEffectiveDates(ApiConnectionInfo ap
6465
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, RATINGS + "/" + EFFECTIVE_DATES_ENDPOINT)
6566
.addEndpointInput(input)
6667
.get()
67-
.withMediaType(ACCEPT_XML_HEADER_V2);
68+
.withMediaType(ACCEPT_HEADER_V2);
6869
try (HttpRequestResponse response = executor.execute()) {
6970
String body = response.getBody();
7071
return RadarObjectMapper.mapJsonToObject(body, RatingEffectiveDatesMap.class);

0 commit comments

Comments
 (0)