JUNGKIMHOON
Glory of REST 본문
LEVEL 0
- http://server/getPosts
- http://server/deletePosts
- http://server/doThis
LEVEL 1
적절한 uri를 사용
- http://server/accounts
- http://server/accounts/10
BUT improper use of Http methods
LEVEL 2
LEVEL1 + HTTP Methods
LEVEL 3
Level2 + HATEOAS
DATA + NEXT POSSIBLE ACTIONS
* HTTP Methods
- GET
- POST
- PUT
- DELETE
* 안전한 URI 설계 필요
* 복수형 URI 설계
- /users (/user X)
- /users/1 (/user/1 X)
'Spring' 카테고리의 다른 글
[Spring] JWT를 활용한 인증 (feat. vue) (0) | 2020.09.30 |
---|---|
[Spring] CORS 오류 해결 (0) | 2020.09.19 |
Comments