RESTful API란 REST를 기반으로 만들어진 API를 의미한다.
REST(Representational State Transfer)
1) URI는 동사보다는 명사를, 대문자는 소문자를 사용한다.
[BAD] http://bummy.com/VELOG
[GOOD] http://bummy.com/velog
2) URL 마지막엔 슬래시 구분자를 사용하지 않는다
[BAD] http://bummy.com/velog/
[GOOD] http://bummy.com/velog
3) 언더바(_) 대신 하이픈(-)을 사용한다.
[BAD] http://bummy.com/velog_restful_api
[GOOD] http://bummy.com/velog-restful-api
4) 파일 확장자는 URI에 포함하지 않는다
[BAD] http://bummy.com/velog/api.jpg
[GOOD] http://bummy.com/velog/api
5) Method는 포함하지 않는다.
[BAD] http://bummy.com/update-posts/1
[GOOD] http://bummy.com/posts/1
즉 RESTful API는 REST 규칙을 잘 지킨 API라고 설명할 수 있다.