fixed GET /pets and PUT /pets apis