You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
4_HTTP 메서드
HTTP API를 만들어보자
리소스
리소스와 행위를 분리
HTTP 메서드 - GET, POST
주요 메서드
기타 메서드
GET
members/100100번 유저의 정보를 달라고 요청POST
POST 정리
HTTP 메서드 - PUT, PATCH, DELETE
PUT
/members/100이렇게 보내기 때문에 클라이언트가 구체적인 리소스 전체 경로를 알고 있음members/100URL을 지정하여 요청 메세지에 데이터와 함께 넘기면members/100URL을 지정하여 요청 메세지에 데이터와 함께 넘기면PUT에서는 리소스를 완전히 대체함
PATCH
DELETE
members/100100번 멤버를 지우겠다는 요청 메세지를 보냄HTTP 메서드의 속성
안전 (Safe)
멱등 (Idempotent)
캐시 가능 (Cacheable)
🔗 출처
All reactions