The main rcs.py module.
The starter module for RCS. Currently it contains most of the functional code for RCS and this should eventually end up in separate modules or packages.
Container class for all web requests for single documents
A REST endpoint for fetching a single document from the doc store.
Parameters: |
|
---|---|
Returns: | Response – a JSON response object; None with a 404 code if the key was not matched |
Container class for all web requests for sets of documents
A REST endpoint for fetching a single document from the doc store.
Parameters: |
|
---|---|
Returns: | list – an array of JSON configuration fragments (empty error objects are added where keys do not match) |
Container class for all catalog requests for registering new features
A REST endpoint for removing a layer.
Parameters: | smallkey (str) – A unique identifier for the dataset |
---|---|
Returns: | JSON Response – 204 on success; 500 on failure |
A REST endpoint for adding or editing a single layer. All registration requests must contain entries for all languages and will be validated against a JSON schema.
Parameters: | smallkey (str) – A unique identifier for the dataset (can be any unique string, but preferably should be short) |
---|---|
Returns: | JSON Response – 201 on success; 400 with JSON payload of an errors array on failure |
Handles updates to simplification factor of a feature layer
A REST endpoint for updating a simplification factor on a registered feature service.
Parameters: | smallkey (str) – A unique identifier for the dataset (can be any unique string, but preferably should be short) |
---|---|
Returns: | JSON Response – 200 on success; 400 with JSON payload of an errors array on failure |
Handles cache maintenance requests
A REST endpoint for triggering cache updates. Walks through the database and updates cached data.
Parameters: | arg – Either ‘all’ or a positive integer indicating the minimum |
---|
age in days of a record before it should be updated :type arg: str :returns: JSON Response – 200 on success; 400 on malformed URL
Detailed error logging function. Designed to attach to Flask exception events and logs a bit of extra infomration about the request that triggered the exception.
Parameters: |
|
---|