16 #ifndef QGSSERVEROGCAPI_H    17 #define QGSSERVEROGCAPI_H    20 #include "qgis_server.h"    88                      const QString &rootPath,
    90                      const QString &description = QString(),
    91                      const QString &version = QString() );
    94     const QString 
name()
 const override { 
return mName; }
    95     const QString 
description()
 const override { 
return mDescription; }
    96     const QString 
version()
 const override { 
return mVersion; }
    97     const QString 
rootPath()
 const override { 
return mRootPath ; }
   110     static const QMap<QgsServerOgcApi::ContentType, QStringList> contentTypeMimes() 
SIP_SKIP;
   116     static const QHash<QgsServerOgcApi::ContentType, QList<QgsServerOgcApi::ContentType> > contentTypeAliases() 
SIP_SKIP;
   125     template<
class T, 
typename... Args>
   128       mHandlers.emplace_back( std::make_shared<T>( args... ) );
   140     static QUrl sanitizeUrl( 
const QUrl &url );
   175     const std::vector<std::shared_ptr<QgsServerOgcApiHandler> > handlers() 
const SIP_SKIP;
   181     QString mDescription;
   185     std::vector<std::shared_ptr<QgsServerOgcApiHandler>> mHandlers;
   188     static QMap<QgsServerOgcApi::ContentType, QStringList> sContentTypeMime;
   195     static QHash<QgsServerOgcApi::ContentType, QList<QgsServerOgcApi::ContentType>> sContentTypeAliases;
   199 #endif // QGSSERVEROGCAPI_H Server generic API endpoint abstract base class. 
#define SIP_VIRTUALERRORHANDLER(name)
const QString rootPath() const override
Returns the root path for the API. 
Refers to a resource providing information about the link’s context. 
void registerHandler(Args... args)
Registers an OGC API handler passing Args to the constructor. 
The QgsServerOgcApiHandler abstract class represents a OGC API handler to be registered in QgsServerO...
Refers to a resource that is comprised of members of the collection represented by the link’s contex...
Identifies service documentation for the context that is primarily intended for human consumption...
Refers to a substitute for this context. 
Indicates that the link’s context is a part of a series, and that the next in the series is the link...
const QString version() const override
Returns the version of the service. 
QGIS Server OGC API endpoint. 
The target IRI points to a resource that is a member of the collection represented by the context IRI...
ContentType
Media types used for content negotiation, insert more specific first. 
const QString description() const override
Returns the API description. 
Refers to a license associated with this context. 
const QString name() const override
Returns the API name. 
The QgsServerApiContext class encapsulates the resources for a particular client request: the request...
Bad request error API exception. 
Indicates that the link’s context is a part of a series, and that the previous in the series is the ...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
virtual void executeRequest(const QgsServerApiContext &context) const =0
Executes a request by passing the given context to the API handlers. 
Conveys an identifier for the link’s context. 
"application/openapi+json;version=3.0" 
Identifies service description for the context that is primarily intended for consumption by machines...