Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC front end implementation #3621

Closed
Tracked by #3516
seancolsen opened this issue Jun 13, 2024 · 0 comments · Fixed by #3893
Closed
Tracked by #3516

RPC front end implementation #3621

seancolsen opened this issue Jun 13, 2024 · 0 comments · Fixed by #3893
Assignees

Comments

@seancolsen
Copy link
Contributor

seancolsen commented Jun 13, 2024

Database page

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/schemas/ GET schemas.list
/api/db/v0/schemas/ POST schemas.add
/api/db/v0/schemas/{schemaId}/ PATCH schemas.patch
/api/db/v0/schemas/{schemaId}/ DELETE schemas.delete

Schema page

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/ GET tables.list
/api/db/v0/tables/ POST tables.add
/api/db/v0/tables/{tableId}/ PATCH tables.patch
/api/db/v0/tables/{tableId}/ DELETE tables.delete

Table page load

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/columns/ GET columns.list
/api/db/v0/tables/{tableId}/constraints/ GET constraints.list
/api/db/v0/tables/{tableId}/joinable_tables/ GET tables.list_joinable

Records listing

Replacing GET /api/db/v0/tables/{tableId}/records/ with records.list

Feature Backend Frontend
Basic
Pagination
Sorting
Filtering
Grouping
Record summaries (non-configurable)

Record selector

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/records/ GET records.search

Table page DML

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/records/ POST records.add
/api/db/v0/tables/{tableId}/records/{recordPk}/ PATCH records.patch
/api/ui/v0/tables/{tableId}/records/delete/ DELETE records.delete

Table page DDL

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/columns/ POST columns.add
/api/db/v0/tables/{tableId}/columns/{columnId} PATCH columns.patch
/api/db/v0/tables/{tableId}/columns/{columnId} DELETE columns.delete
/api/db/v0/tables/{tableId}/constraints/ POST constraints.add
/api/db/v0/tables/{tableId}/constraints/{id} DELETE constraints.delete
/api/db/v0/links/ POST data_modeling.add_foreign_key_column, data_modeling.add_mapping_table
/api/db/v0/tables/{tableId}/move_columns/ POST data_modeling.move_columns
/api/db/v0/tables/{tableId}/split_table/ POST data_modeling.split_table

Table page metadata

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/settings/{settingsId}/ PATCH tables.metadata.set
/api/db/v0/tables/{tableId}/columns/{columnId} PATCH columns.metadata.set

Explorations

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/ GET tables.get
/api/db/v0/queries/run/ POST explorations.run
/api/db/v0/queries/ GET explorations.list
/api/db/v0/queries/{queryId}/ GET explorations.get
/api/db/v0/queries/{queryId}/results/ GET explorations.run_saved
/api/db/v0/queries/ POST explorations.add
/api/db/v0/queries/{queryId}/ PUT explorations.replace
/api/db/v0/queries/{queryId}/ DELETE explorations.delete

Record page

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/records/{recordPk}/ GET records.get

Import pages

Endpoint HTTP Method Function Backend Frontend
/api/db/v0/tables/{tableId}/previews/ POST tables.get_import_preview
/api/db/v0/tables/{tableId}/type_suggestions/ GET data_modeling.suggest_types
@seancolsen seancolsen self-assigned this Jun 13, 2024
@seancolsen seancolsen changed the title First pass of front end RPC implementation RPC front end implementation Jun 13, 2024
@seancolsen seancolsen pinned this issue Jul 8, 2024
@kgodey kgodey added this to the Beta testing release #1 milestone Sep 18, 2024
@seancolsen seancolsen unpinned this issue Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants