Rest Controller in Spring Boot for Rock Paper Scissors REST API
You do not need ping within your controller. Check out Spring boot actuator
Each method having duplicated error handling. You can move it to @ControllerAdvice
Method names like playerPOST, playerDELETE aren't helpful. Consider this as a normal class and have normal method names like createPlayer, deletePlayer
You need not define produces attribute for each mapping, RestController defaults to JSON
Returning ok("") doesn't make sense. Should be either returning the player object, or use ResponseEntity.created() (201)
Why are you autowiring HttpServletRequest context?
Should use AllArgsConstructor - constructor based autowiring