Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hucker
· 9y ago · 0 comments
Yes, with good results. Anything specific you're curious about?
Comments
[–]
patricius
9y ago
Hi. I'd like to know how you design the database to separate data available via REST and data that is not.
[–]
hucker
OP
9y ago
We use a separate schema for the API (that way we can easily version our APIs as well). The API schemas only contain views/function that expose the tables/fields/etc that we want to expose.
[–]
evv555
9y ago
SQL View queries get their own REST endpoints or you can use Postgrest like a language agnostic ORM.