@@ -32,7 +32,7 @@ public CarbonAwareController(ILogger<CarbonAwareController> logger, IEmissionsAg
32
32
/// </summary>
33
33
/// <param name="parameters">The request object <see cref="EmissionsDataForLocationsParametersDTO"/></param>
34
34
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
35
- [ Produces ( "application/json" ) ]
35
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
36
36
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
37
37
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
38
38
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -51,7 +51,7 @@ public async Task<IActionResult> GetBestEmissionsDataForLocationsByTime([FromQue
51
51
/// </summary>
52
52
/// <param name="parameters">The request object <see cref="EmissionsDataForLocationsParametersDTO"/></param>
53
53
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
54
- [ Produces ( "application/json" ) ]
54
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
55
55
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
56
56
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
57
57
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -72,7 +72,7 @@ public async Task<IActionResult> GetEmissionsDataForLocationsByTime([FromQuery]
72
72
/// <param name="time"> [Optional] Start time for the data query.</param>
73
73
/// <param name="toTime"> [Optional] End time for the data query.</param>
74
74
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
75
- [ Produces ( "application/json" ) ]
75
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
76
76
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
77
77
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
78
78
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -111,7 +111,7 @@ public async Task<IActionResult> GetEmissionsDataForLocationByTime([FromQuery, S
111
111
/// <response code="400">Returned if any of the input parameters are invalid</response>
112
112
/// <response code="500">Internal server error</response>
113
113
/// <response code="501">Returned if the underlying data source does not support forecasting</response>
114
- [ Produces ( "application/json" ) ]
114
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
115
115
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsForecastDTO > ) ) ]
116
116
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
117
117
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -145,7 +145,7 @@ public async Task<IActionResult> GetCurrentForecastData([FromQuery] EmissionsFor
145
145
/// <response code="400">Returned if any of the input parameters are invalid</response>
146
146
/// <response code="500">Internal server error</response>
147
147
/// <response code="501">Returned if the underlying data source does not support forecasting</response>
148
- [ Produces ( "application/json" ) ]
148
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
149
149
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsForecastDTO > ) ) ]
150
150
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
151
151
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -176,7 +176,7 @@ public async Task<IActionResult> BatchForecastDataAsync([FromBody] IEnumerable<E
176
176
/// <response code="200">Returns a single object that contains the information about the request and the average marginal carbon intensity</response>
177
177
/// <response code="400">Returned if any of the requested items are invalid</response>
178
178
/// <response code="500">Internal server error</response>
179
- [ Produces ( "application/json" ) ]
179
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
180
180
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( CarbonIntensityDTO ) ) ]
181
181
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
182
182
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -211,7 +211,7 @@ public async Task<IActionResult> GetAverageCarbonIntensity([FromQuery] CarbonInt
211
211
/// <response code="200">Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity</response>
212
212
/// <response code="400">Returned if any of the requested items are invalid</response>
213
213
/// <response code="500">Internal server error</response>
214
- [ Produces ( "application/json" ) ]
214
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
215
215
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < CarbonIntensityDTO > ) ) ]
216
216
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
217
217
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
0 commit comments