|
|
|
|
|
by steve-rodrigue
4182 days ago
|
|
A good API is an API that abstract its database schema and expose designed Endpoints (Objects) to its clients. By exposing Objects instead of your schema, your API has less chance to be updated as frequently, since its internal data storage is separated from its public API. For the same reason, it is a bad practice to have multiple applications reading and writing data directly in your database. Building an Endpoint based API on top of your database and sharing this API across your clients is a better option. Building an API directly on top of a database schema also brings the problem of impedance mismatch in all your client's applications: http://en.wikipedia.org/wiki/Object-relational_impedance_mis... The problems here have nothing to do with the fact that the API might be chatty. |
|