[Spring] PUT 과 PATCH 차이
·
스터디/Spring
PATCH /customers?id=1{ name : AA, balance : 0}목차 1.PUT 메소드정의The HTTP PUT request method creates a new resource or replaces a representation of the target resource with the request payload.HTTP PUT 메서드는 요청 페이로드를 사용해 새로운 리소스를 생성하거나, 대상 리소스를 나타내는 데이터를 대체합니다. UPDATE 방식예시아래와 같은 데이터가 존재한다고 가정합니다.idbalancename1100A220B3-120C id=1 인 유저의 데이터를 아래와 같이 두 케이스로 PUT 요청을 보냈다고 했을 때 결과는 다음과 같습니다.요청 1)PUT /cu..