Class: QgsService¶
-
class
qgis.server.
QgsService
¶ Bases:
sip.wrapper
Constructor
QgsService(
QgsService
)QgsService Class defining interfaces for QGIS server services
This class provides methods for executing server requests They are registered at runtime for a given service name.
Methods
Returns
True
if the given method is supported for that service.Execute the requests and set result in
QgsServerRequest
- rtype
str
- rtype
str
-
allowMethod
(self, QgsServerRequest.Method) → bool¶ Returns
True
if the given method is supported for that service.- Return type
bool
-
executeRequest
(self, request: QgsServerRequest, response: QgsServerResponse, project: QgsProject)¶ Execute the requests and set result in
QgsServerRequest
- Parameters
request (QgsServerRequest) –
response (QgsServerResponse) –
project (QgsProject) –
-
name
(self) → str¶ - Return type
str
- Returns
the name of the service
-
version
(self) → str¶ - Return type
str
- Returns
the version of the service