@@ -34,7 +34,7 @@ public CarbonAwareController(ILogger<CarbonAwareController> logger, IEmissionsHa
34
34
/// </summary>
35
35
/// <param name="parameters">The request object <see cref="EmissionsDataForLocationsParametersDTO"/></param>
36
36
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
37
- [ Produces ( "application/json" ) ]
37
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
38
38
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
39
39
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
40
40
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -50,7 +50,7 @@ public async Task<IActionResult> GetBestEmissionsDataForLocationsByTime([FromQue
50
50
/// </summary>
51
51
/// <param name="parameters">The request object <see cref="EmissionsDataForLocationsParametersDTO"/></param>
52
52
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
53
- [ Produces ( "application/json" ) ]
53
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
54
54
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
55
55
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
56
56
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -68,7 +68,7 @@ public async Task<IActionResult> GetEmissionsDataForLocationsByTime([FromQuery]
68
68
/// <param name="startTime"> [Optional] Start time for the data query.</param>
69
69
/// <param name="endTime"> [Optional] End time for the data query.</param>
70
70
/// <returns>Array of EmissionsData objects that contains the location, time and the rating in g/kWh</returns>
71
- [ Produces ( "application/json" ) ]
71
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
72
72
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsData > ) ) ]
73
73
[ ProducesResponseType ( StatusCodes . Status204NoContent ) ]
74
74
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -107,7 +107,7 @@ public async Task<IActionResult> GetEmissionsDataForLocationByTime(
107
107
/// <response code="400">Returned if any of the input parameters are invalid</response>
108
108
/// <response code="500">Internal server error</response>
109
109
/// <response code="501">Returned if the underlying data source does not support forecasting</response>
110
- [ Produces ( "application/json" ) ]
110
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
111
111
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsForecastDTO > ) ) ]
112
112
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
113
113
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -138,7 +138,7 @@ public async Task<IActionResult> GetCurrentForecastData([FromQuery] EmissionsFor
138
138
/// <response code="400">Returned if any of the input parameters are invalid</response>
139
139
/// <response code="500">Internal server error</response>
140
140
/// <response code="501">Returned if the underlying data source does not support forecasting</response>
141
- [ Produces ( "application/json" ) ]
141
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
142
142
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < EmissionsForecastDTO > ) ) ]
143
143
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
144
144
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -172,7 +172,7 @@ public async Task<IActionResult> BatchForecastDataAsync([FromBody] IEnumerable<E
172
172
/// <response code="200">Returns a single object that contains the information about the request and the average marginal carbon intensity</response>
173
173
/// <response code="400">Returned if any of the requested items are invalid</response>
174
174
/// <response code="500">Internal server error</response>
175
- [ Produces ( "application/json" ) ]
175
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
176
176
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( CarbonIntensityDTO ) ) ]
177
177
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
178
178
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
@@ -209,7 +209,7 @@ public async Task<IActionResult> GetAverageCarbonIntensity([FromQuery] CarbonInt
209
209
/// <response code="200">Returns an array of objects where each contains location, time boundaries and the corresponding average marginal carbon intensity</response>
210
210
/// <response code="400">Returned if any of the requested items are invalid</response>
211
211
/// <response code="500">Internal server error</response>
212
- [ Produces ( "application/json" ) ]
212
+ [ Produces ( "application/json" , "application/json; charset=utf-8" ) ]
213
213
[ ProducesResponseType ( StatusCodes . Status200OK , Type = typeof ( IEnumerable < CarbonIntensityDTO > ) ) ]
214
214
[ ProducesResponseType ( StatusCodes . Status400BadRequest , Type = typeof ( ValidationProblemDetails ) ) ]
215
215
[ ProducesResponseType ( StatusCodes . Status500InternalServerError , Type = typeof ( ValidationProblemDetails ) ) ]
0 commit comments