What is the difference between path api/resource/... and path api/method/module/doctype/

Sorry if the question seems a bit stupid, I read the documentation and saw RPC and Rest API. Does frappe offer both of these uses?. However, I see that the documentation only talks about the api/resource path to use rest api (CRUD), what about the api/method/module/doctype/… path?