-
Notifications
You must be signed in to change notification settings - Fork 13
Publish a database table to the API Server
Billy Charlton edited this page Jun 30, 2017
·
3 revisions
« Back to Recipes for typical tasks
PostgREST is currently set up to serve up all tables and views that are in one of two schemas:
- The
api
schema is served at https://api.sfcta.org/api - The
scratch
schema is served at https://api.sfcta.org/scratch
IMPORTANT - Our policy is to ONLY publish VIEWS, not tables, in the api
schema, to enforce read-only permissions coming from the outside. That way even if someone had the sfcta password they wouldn't be able to modify any important database tables.
To publish a table on scratch
:
To create a view of a table, and publish that view on api
:
Get Started
- Back-End Setup
- Setting up your development environment
- Building Prospector locally
- Publishing your changes
Other Useful Links
- Recipes for typical tasks
- Glossary
- Publishing instructions for CMP standalone site
- Deploying a new release GitHub Pages and Prospector
Platform Considerations
Background Information