All Templates / Other
Postgres HTTP
Turns your postgres db into an REST api
Postgres HTTP
lassejlv/postgres_http:latest
Just deployed
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
Turns your postgres db into an http server. Great for beginners or just small projects and testing.
You can find the source code here: github.com/lassejlv/postgres_http
- POST /query
- body: { query: string, args: any[] }
- headers: { Authorization: Bearer }
- response: { rows: any[] }
- GET /status
- headers: { Authorization: Bearer }
- response: { ok: boolean, ping: number }
By default you cannot run: DELETE, DROP, TRUNCATE
.
Update the env variable ALLOW_DANGEROUS_SQL_COMMANDS
and set it to true if you wanna be doing that.
You will find the api under the variables tab. It's randomly generated under creation.
Template Content
Postgres HTTP
lassejlv/postgres_http:latestDetails
lasse's Projects
Created on Dec 9, 2024
3 total projects
1 active projects
100% success on recent deploys
Other
More templates in this category
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform
Lucas's Projects
41
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa
Shahed Nasser's Projects
309