Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

44장 REST #46

Open
sbyeol3 opened this issue Jun 5, 2022 · 0 comments
Open

44장 REST #46

sbyeol3 opened this issue Jun 5, 2022 · 0 comments

Comments

@sbyeol3
Copy link
Collaborator

sbyeol3 commented Jun 5, 2022

44장. REST API

  • REST는 Roy Fielding의 2000년 논문에서 처음 소개되었으며 HTTP의 장점을 최대한 활용하며 프로토콜을 의도에 맞게 디자인하도록 유도하고 있다. REST의 기본 원칙을 성실히 지킨 디자인을 RESTful이라고 표현한다.

REST API의 구성

  • 자원(resource), 행위(verb), 표현(representations) 3가지 요소로 구성
    • URI(엔드포인트) / 요청 메소드 / payload

REST API 설계 원칙

  • URI는 리소스를 표현하는 데 집중하고 행위에 대한 정의는 메소드를 통해 하는 것이 API 설계의 중심 규칙이다.
    • URI는 리소스를 표현하므로 동사보다는 명사를 사용한다.
    • 행위는 주로 5가지 메소드(GET, POST, PUT, PATCH, DELETE 등)을 사용하여 CRUD를 구현한다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant