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.
5_HTTP 메서드 활용
클라이언트에서 서버로 데이터 전송
데이터 전달방식 2가지
4가지 상황
1. 정적 데이터 조회
정적 데이터 조회 정리
2. 동적 데이터 조회
동적 데이터 조회 정리
3. HTML Form을 통한 데이터 전송
HTML Form 데이터 전송 정리
4. HTML API 데이터 전송
HTML API 데이터 전송 정리
HTTP API 설계 예시
API 설계 - POST 기반 등록
POST - 신규 자원 등록 특징
API 설계 - PUT 기반 등록
PUT - 신규 자원 등록 특징
HTML FORM 사용
HTML FORM은 GET, POST만 지원
회원 목록 /members -> GET
회원 등록 폼 /members/new -> GET
회원 등록 /members/new, /members -> POST
회원 조회 /members/{id} -> GET
회원 수정 폼 /members/{id}/edit -> GET
회원 수정 /members/{id}/exit, /members/{id} -> POST
회원 삭제 /members/{id}/delete -> POST
컨트롤 URI
참고하면 좋은 URI 설계 개념
🔗 출처
All reactions