QWC Data Service
Type: objectJSON Schema
Type: stringFormat: uri Default: "https://github.com/qwc-services/qwc-data-service/raw/master/schemas/qwc-data-service.json"Reference to JSON schema of this config
Service name
Type: constSpecific value:
"data"
Config options
Type: objectBase dir where attachments are stored
Comma separated list of allowed attachment file extensions, i.e. '.png,.jpg'
Maximum attachment file size in bytes
Hostname of ClamD server listening on TCP port 3310. If set, uploaded files are checked by ClamAV
Field suffix where to log the username who last changed an upload field, i.e.
If specified, the timestamp of the last mutation to a record will be logged to the
If specified, the username of the last user who performed a mutation to a record with be logged to the
Whether to allow null geometries by default
Loopup of allowed attachment file extensions per theme, values as comma separated list, i.e. '.png,.jpg'
Lookup of maximum attachment file size in bytes per theme
The path pattern to use when saving attachments to disk. You can use {random}, {filename}, {ext} and {
Resources
Type: objectDatasets
Type: array of objectNo Additional Items
Each item of this array must be:
Dataset
Type: objectPostgreSQL metadata and field constraints for a dataset
Dataset name
DB connection string for read and write access (or read-only access if dbwriteurl is present)
Optional DB connection string for write access
Dataset fields with optional constraints
No Additional ItemsEach item of this array must be:
Field name
Must be one of:
- "USER-DEFINED"
- "bigint"
- "boolean"
- "character"
- "character varying"
- "date"
- "double precision"
- "file"
- "integer"
- "json"
- "jsonb"
- "numeric"
- "real"
- "smallint"
- "text"
- "time"
- "timestamp with time zone"
- "timestamp without time zone"
- "uuid"
No Additional Items
Each item of this array must be:
PostGIS geometry metadata
Type: objectMust be one of:
- "POINT"
- "POINTZ"
- "LINESTRING"
- "LINESTRINGZ"
- "POLYGON"
- "POLYGONZ"
- "MULTIPOINT"
- "MULTIPOINTZ"
- "MULTILINESTRING"
- "MULTILINESTRINGZ"
- "MULTIPOLYGON"
- "MULTIPOLYGONZ"
SRID
Type: integerSpatial Reference System Identifier (EPSG code)
Allow NULL geometries
Type: boolean Default: falseAllow setting geometry values to NULL