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 |
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: |
|
---|
Generates an RCS ID in the form rcs.a82d987e.en
Parameters: |
|
---|---|
Returns: | str – an id that should be unique amongst all RCS ids |