728x90
반응형
Richardson Maturity Model
Maturity Model(성수도 모델)
- Level 0
- Expose soap web services in rest style
- http://server/getPosts
- http://server/deletePosts
- http://server/doThis
- Level 1
- Expose resources with proper uri
- http://server/accounts
- http://server/accounts/10
- note: improper use of http methods
- Level 2
- Level1 + HTTP Methods
- Level 3
- Level2 + HATEOAS
- DATA + NEXT POSSIBLE ACTIONS
RESTful API 설계 시 고려해야 할 사항
- Consumer first
- Make best use of HTTP
- Request methods
- GET
- POST
- PUT
- DELETE
- Response Status
- 200
- 404
- 400
- 201
- 401
- No secure info in URI
- Use plurals
- prefer /users to /user
- prefer /users/1 to /user/1
- User nouns for resources
- For exceptions
- defines a consistent approach
- /search
- PUT /gists/{id}/star
- DELETE /gists/{id}/star
- defines a consistent approach
728x90
반응형
'Spring | SpringBoot' 카테고리의 다른 글
[모든 개발자를 위한 HTTP 웹 기본 지식] 섹션 1. 인터넷 네트워크 (0) | 2024.04.29 |
---|---|
스프링부트 개념정리(이론) (0) | 2024.04.29 |
[Spring Boot 3.x 를 이용한 RESTful Web Services 개발] 섹션 5. Java Persistence API 사용 (0) | 2024.04.29 |
[Spring Boot 3.x 를 이용한 RESTful Web Services 개발] 섹션 4. Spring Boot API 사용 (0) | 2024.04.29 |
[Spring Boot 3.x 를 이용한 RESTful Web Services 개발] 섹션 3. RESTful Service 기능 확장 (0) | 2024.04.29 |