Public API & Schema

This site documents the public Supabase REST API and the underlying Prisma schema used by GaiaLabs. All endpoints are powered by PostgREST with Row Level Security.

Base URL

https://adwobxutnpmjbmhdxrzx.supabase.co/rest/v1

Authentication

Use the publishable anon key in both apikey and Authorization headers.

curl "https://adwobxutnpmjbmhdxrzx.supabase.co/rest/v1/Project" \
  -H "apikey: sb_publishable_uBZdKmgGql5sDNGpj1DVMQ_opZ2V4kV" \
  -H "Authorization: Bearer sb_publishable_uBZdKmgGql5sDNGpj1DVMQ_opZ2V4kV"

Schema Models

Generated from the canonical Prisma schema at build-time.

Platform

View
FieldTypeAttributes
idString
@id
nameString
@unique
metaJson?
createdAtDateTime
updatedAtDateTime
@updatedAt
branchesPlatformBranch[]

PlatformBranch

View
FieldTypeAttributes
idString
@id
nameString?
versionInt?
isActiveBoolean?
notesString[]
platformPlatform
@relation

Developer

View
FieldTypeAttributes
idString
@id
nameString
metaJson?
platformPlatform
@relation
platformIdString
gamesGame[]

Region

View
FieldTypeAttributes
idString
@id
nameString
metaJson?
platformPlatform
@relation
platformIdString
createdAtDateTime

Game

View
FieldTypeAttributes
idString
@id
nameString
metaJson?
platformPlatform
@relation
platformIdString
developerDeveloper?
@relation

GameRom

View
FieldTypeAttributes
idString
@id
crcInt
@unique
metaJson?
gameGame
@relation
gameIdString
regionRegion?
@relation

GameRomBranch

View
FieldTypeAttributes
idString
@id
nameString?
versionInt?
isActiveBoolean?
notesString[]
gameRomGameRom
@relation

BaseRom

View
FieldTypeAttributes
idString
@id
nameString
@unique
gameGame
@relation
gameIdString
gameRomGameRom
@relation
gameRomIdString

BaseRomBranch

View
FieldTypeAttributes
idString
@id
nameString?
versionInt?
isActiveBoolean?
notesString[]
baseRomBaseRom
@relation

BaseRomFile

View
FieldTypeAttributes
idString
@id
nameString
typeString
versionInt?
crcInt?
metaJson?

Project

View
FieldTypeAttributes
idString
@id
nameString
@unique
metaJson?
gameGame
@relation
gameIdString
baseRomBaseRom
@relation

ProjectBranch

View
FieldTypeAttributes
idString
@id
nameString?
versionInt?
isActiveBoolean?
notesString[]
projectProject
@relation

ProjectFile

View
FieldTypeAttributes
idString
@id
nameString
typeString
moduleString?
versionInt?
crcInt?

Filtering & Embedding

Endpoints support PostgREST filtering (e.g. ?select=*,Game(*), ?name=eq.Illusion%20of%20Gaia%3A%20Retranslated), ordering (&order=updatedAt.desc), and pagination (&limit=20&offset=0).

curl "https://adwobxutnpmjbmhdxrzx.supabase.co/rest/v1/Project?select=*&order=updatedAt.desc" \
  -H "apikey: sb_publishable_uBZdKmgGql5sDNGpj1DVMQ_opZ2V4kV" \
  -H "Authorization: Bearer sb_publishable_uBZdKmgGql5sDNGpj1DVMQ_opZ2V4kV"