Permissions
How to manage tables read/writes
This guide will allow you to understand how pREST
to understand and manage your table's permission management and how you can tailor it to your needs by using the prest.toml
file.
Restrict mode
The prest.toml
file allows you to configure each table's read/write/delete permissions.
restrict = false
: (default) The pREST will serve in public mode. You can write/read/delete every data without configuring permissions.
restrict = true
: you need to configure the permissions of all tables.
Ignore table
If you need to ignore restricted access mode for some tables, you can use the ignore_table
option, it receives a string list with the names of the tables to be "ignored", by default, is an empty list []
.
Table permissions
Example:
Multiple configurations for the same table:
attribute | description |
---|---|
name | Table name |
permissions | Table permissions. Options: |
fields | Exposed fields permitted for operations |
Example configuration
Configuration example: prest.toml
Last updated