code:
@app.delete('/pets/<int:pet_id>') @output({}, 204) def delete_pet(pet_id): if pet_id > len(pets) - 1: abort_json(404) pets.pop(pet_id) return ''
shell:
curl -v -X DELETE localhost:5000/pets/0
error:
AttributeError: 'dict' object has no attribute 'many'
code:
@app.delete('/pets/<int:pet_id>') @output({}, 204) def delete_pet(pet_id): if pet_id > len(pets) - 1: abort_json(404) pets.pop(pet_id) return ''shell:
curl -v -X DELETE localhost:5000/pets/0error:
AttributeError: 'dict' object has no attribute 'many'