---
title: "Comment by Federico Kereki on \"A poor man's API\" | Hashnode"
description: "This is an interesting idea, but having an API based on physical tables instead of logical entities is considered an antipattern. For instance here at it reads:"
url: "https://hashnode.com/posts/poor-mans-api/637e4be0b19e2ed6be0ad8a1/comment/6380a67102ed71f5750f0d16"
---

[Discussion](https://hashnode.com/posts/poor-mans-api/637e4be0b19e2ed6be0ad8a1)

Comment [A poor man's API](https://hashnode.com/posts/poor-mans-api/637e4be0b19e2ed6be0ad8a1)

[Federico Kereki](https://hashnode.com/@fkereki)

[Nov 25, 2022](https://hashnode.com/posts/poor-mans-api/637e4be0b19e2ed6be0ad8a1/comment/6380a67102ed71f5750f0d16)

This is an interesting idea, but having an API based on physical tables instead of logical entities is considered an antipattern. For instance [here](https://learn.microsoft.com/en-us/azure/architecture/best-practices/api-design) at it reads: _A resource doesn't have to be based on a single physical data item. For example, an order resource might be implemented internally as several tables in a relational database, but presented to the client as a single entity. Avoid creating APIs that simply mirror the internal structure of a database. The purpose of REST is to model entities and the operations that an application can perform on those entities. A client should not be exposed to the internal implementation._

[Nicolas Fränkel](https://hashnode.com/@nfrankel)

[Nov 26, 2022](https://hashnode.com/posts/poor-mans-api/637e4be0b19e2ed6be0ad8a1/comment/6380a67102ed71f5750f0d16#reply-6382a239bdbd2c06dff637f0)

You're right... in theory. And then, as I mentioned, sometimes, you don't want to spend time and money implementing the perfect solution: you just want to see if there's traction and interested.
