Rest API - HTTP Methods
A developer wrote this PUT request handler in a REST API:
What is the main problem with this code regarding PUT semantics?
def put_user(user_id, data):
user = get_user(user_id)
user.update(data)
save_user(user)What is the main problem with this code regarding PUT semantics?
