컴퓨터 지식

[CS] POST, PUT, PATCH 메소드의 차이점

bornsoon 2025. 6. 18. 00:30
method   멱등성(idempotency) RFC
POST 생성 (서버에서의 다양한 작업) X The POST method requests that the target resource process the representation enclosed in the request according to the resource's own specific semantics.
PUT 전체 업데이트 O The target resource in a POST request is intended to handle the enclosed representation according to the resource's own semantics, whereas the enclosed representation in a PUT request is defined as replacing the state of the target resource.
PATCH 부분 업데이트 X The PATCH method requests that a set of changes described in the request entity be applied to the resource identified by the Request-URI.

 

728x90

'컴퓨터 지식' 카테고리의 다른 글

[AWS] RDS 외부접속 오류 / AWS의 IGW  (0) 2025.03.30
[CS] SOLID 설계원칙  (0) 2025.03.13
[CS] JSON(JavaScript Object Notation)  (0) 2025.03.13
[도커] 도커 컴포즈  (0) 2024.12.28
[CS] CI / CD  (0) 2024.11.08