Skip to content

Enable token authentication to 'list_database_tables' endpoint

Adam Kariv requested to merge akariv/baserow:token-read-db-tables into develop

What is in this MR

This MR allows listing a database's tables using a database token (related to issue #1100).

Only tables that the token has access to are returned in the response.

POST access in the view (i.e. the create table endpoint) was also modified to ensure that no token has permission to access it.

How to test this MR

For any database and database token: curl -vvv -X GET -H "Authorization: Token $TOKEN" "http://localhost:8000/api/database/tables/database/<database-id>/" | jq

Merge Request Checklist

Edited by Adam Kariv

Merge request reports