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

allowMethod

Returns True if the given method is supported for that service.

executeRequest

Execute the requests and set result in QgsServerRequest

name

rtype

str

version

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
name(self) → str
Return type

str

Returns

the name of the service

version(self) → str
Return type

str

Returns

the version of the service