def scores_insert(self, request): """Exposes an API endpoint to insert a score for the current user. Args: request: An instance of ScoreRequestMessage parsed from the API request. Returns: An instance of ScoreResponseMessage containing the score inserted, the time the score was inserted and the ID of the score. """ entity = Score.put_from_message(request) return entity.to_message()