2
Generating different APIs from the same schema
Source: supabase/supabase#7542 · opened by @eli5zen
Hey :)
I have a use case that may be relevant for more people (maybe a similar form of the problem) so after talking to the support team, they advised me to open up a discussion here :)
TL;DR
Generate multiple APIs on top of the same schema (and DB), each API exposing parts of the schema.
Detailed
We develop 2 applications. One of them is B2C, which will be open-sourced & free to use. The other is B2B, closed & has costs for usage. The apps share & interact on some of the data, so to enforce consistent and accurate relationships on both sides, we wish to use a single PostgreSQL DB. Can supabase help with generating 2 sets of APIs from the same DB (so private schema is not exposed in the open-sourced API)?
See below a diagram for clarification:
<img width="387" alt="Screen Shot 2022-07-03 at 22 10 16" src="
Thanks!
I have a use case that may be relevant for more people (maybe a similar form of the problem) so after talking to the support team, they advised me to open up a discussion here :)
TL;DR
Generate multiple APIs on top of the same schema (and DB), each API exposing parts of the schema.
Detailed
We develop 2 applications. One of them is B2C, which will be open-sourced & free to use. The other is B2B, closed & has costs for usage. The apps share & interact on some of the data, so to enforce consistent and accurate relationships on both sides, we wish to use a single PostgreSQL DB. Can supabase help with generating 2 sets of APIs from the same DB (so private schema is not exposed in the open-sourced API)?
See below a diagram for clarification:
<img width="387" alt="Screen Shot 2022-07-03 at 22 10 16" src="
Thanks!
No pledges yet. Be the first to back this.
Comments
Similar requests
Default schema for Foreign Keys
1 vote · 0 comments
Allow selecting a schema in database connection string settings
4 votes · 0 comments
Table Editor UX: unclear table selection
2 votes · 0 comments
Reorder Schema Visualizer
2 votes · 0 comments
Increase the CPU time on Edge Functions, even billing it
19 votes · 0 comments
No comments yet.