4 points · by dbattaglia · 8y ago · 2 comments
The problems described are those of directly exposing an implementation as the API.
The interesting part of REST in this context is, IMHO, that you can have a database-y or filesystem-y interface that you can implement any way you like.
So yes: if you provide an API, think of the API in terms of the interface it should provide to the user. If that interface is CRUD-y/REST-y (and a lot are), by all means expose a REST API. Please still decouple it from the implementation, or at least make sure that you can decouple it when things start to drift.
Any solution?