@ApiResponse(code = 405, message = "Validation exception")})
@ApiImplicitParams({@ApiImplicitParam(value = "Pet object that needs to be updated in the store", required = true, dataType = "Pet", paramType = "body")})
public static Result updatePet() {
Object o = request().body().asJson();
try {
Pet pet = (Pet) BaseApiController.mapper.readValue(o.toString(), Pet.class);
petData.addPet(pet);
} catch (IOException e) {
e.printStackTrace();
}
return JsonResponse("SUCCESS");