Skip to content

api

api

ExportParameters dataclass

Bases: BaseInterface

The serializable request parameters which are accepted by the exporter service.

Source code in src/qgis_server_light/interface/exporter/api.py
 6
 7
 8
 9
10
11
12
13
14
@dataclass(repr=False)
class ExportParameters(BaseInterface):
    """
    The serializable request parameters which are accepted by the exporter service.
    """

    project_path: str = field(metadata={"type": "Element"})
    unify_layer_names_by_group: bool = field(metadata={"type": "Element"}, default=False)
    output_format: str = field(metadata={"type": "Element"}, default="json")

output_format: str = field(metadata={'type': 'Element'}, default='json') class-attribute instance-attribute

project_path: str = field(metadata={'type': 'Element'}) class-attribute instance-attribute

unify_layer_names_by_group: bool = field(metadata={'type': 'Element'}, default=False) class-attribute instance-attribute

__init__(project_path: str, unify_layer_names_by_group: bool = False, output_format: str = 'json') -> None

ExportResult dataclass

Bases: BaseInterface

The serializable response which is provided by the exporter service.

Source code in src/qgis_server_light/interface/exporter/api.py
17
18
19
20
21
22
23
24
@dataclass(repr=False)
class ExportResult(BaseInterface):
    """
    The serializable response which is provided by the exporter service.
    """

    successful: bool = field(metadata={"type": "Element"})
    content: str = field(metadata={"type": "Element"})

content: str = field(metadata={'type': 'Element'}) class-attribute instance-attribute

successful: bool = field(metadata={'type': 'Element'}) class-attribute instance-attribute

__init__(successful: bool, content: str) -> None