The Mathesar API is built with Django REST Framework (aka DRF).
The API is split into two namespaces:
db
for APIs that relate to the user databaseui
for APIs that relate do the Mathesar database (where we store metadata)
DRF provides a simple web-based UI for interacting with the Mathesar API. After logging in through the Mathesar UI, you can browse the root of each API namespace at the following URLs:
If you prefer a non-browser tool for API development, you'll have to:
- Use browser to execute one of the methods above, then
- Extract the key, value pair for the cookie named
sessionid
using dev tools. - submit that cookie with each request until it expires.
- Repeat as necessary (e.g., when the cookie expires).