File tree Expand file tree Collapse file tree
src/main/java/com/faforever/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525@ RequiredArgsConstructor
2626public class AchievementsController {
2727
28- private static final String JSON_API_MEDIA_TYPE = "application/vnd.api+json" ;
2928 private final AchievementService achievementService ;
3029 private AtomicInteger nextUpdateId = new AtomicInteger ();
3130
Original file line number Diff line number Diff line change 11package com .faforever .api .data ;
22
33public class JsonApiMediaType {
4- public static final String JSON_API_MEDIA_TYPE = "application/vnd.api+json" ;
5- public static final String JSON_API_PATCH_MEDIA_TYPE = "application/vnd.api+json;ext=jsonpatch" ;
4+ public static final String JSON_API_MEDIA_TYPE = "application/vnd.api+json;charset=utf-8 " ;
5+ public static final String JSON_API_PATCH_MEDIA_TYPE = "application/vnd.api+json;ext=jsonpatch;charset=utf-8 " ;
66}
Original file line number Diff line number Diff line change 2626@ RequiredArgsConstructor
2727public class EventsController {
2828
29- private static final String JSON_API_MEDIA_TYPE = "application/vnd.api+json" ;
3029 private final EventsService eventsService ;
3130
3231 @ ApiOperation (value = "Updates the state and progress of one or multiple events." )
Original file line number Diff line number Diff line change 1515import org .springframework .web .bind .annotation .RequestMethod ;
1616import org .springframework .web .bind .annotation .RestController ;
1717
18- import javax .inject .Inject ;
1918import javax .servlet .http .HttpServletRequest ;
2019import javax .servlet .http .HttpServletResponse ;
2120import java .io .IOException ;
2625@ RequiredArgsConstructor
2726public class VotingController {
2827 static final String PATH = "/voting" ;
29- private static final String JSON_API_MEDIA_TYPE = "application/vnd.api+json" ;
3028 private final VotingService votingService ;
3129 private final PlayerService playerService ;
3230
You can’t perform that action at this time.
0 commit comments