Apps

Read the schema of an app's database

Read-only. The tables of the app's own database (env.DB) with their columns, indexes, number of rows and whether they are per-user (set_table_owner_column), the views, the applied migrations and a name for the next one. Use it to see where a build stands before you change the tables.

get/apps/{id}/schema

Request

  • Base URL: https://api.hypamoon.com/api/v1
  • URL: https://api.hypamoon.com/api/v1/apps/{id}/schema
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://app.hypamoon.com/oauth/authorize, token URL https://api.hypamoon.com/oauth/token, scopes: sites:read)

Path parameters

idstring uuid required

The id of the app.

Response

The schema.

app_idstring required
databasetrue required
next_migration_namestring required

A name that sorts after the last applied migration, like 0003_next.sql; replace next with what it does.

database_bytesinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.