-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RequestHandlerDelegate.contentTypes and RequestHandler.links #8
base: master
Are you sure you want to change the base?
Conversation
Some of the proposed fixes and changes are actually at hand. This PR is not relevant anymore. |
… types this handler can serve, default to JSON. QgsServerOgcApiHandler::contentTypes not available in Python bindings
…given request The QgsServerOgcApiHandler::links not available in Python bindings
c86f150
to
4f466fc
Compare
@dmarteau which code are duplicated ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmarteau which code are duplicated ?
Layers path fix
return self._parent.href(self._context,path,extension) | ||
return self._parent.href(self._context, path, extension) | ||
|
||
def links(self) -> List[str]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no point to implement this here, apiutils is not a global library and will never be one because of the way Qgis plugin are distributed (with no dependencies)
To provide self and alternate links the RequestHandlerDelegate.contentTypes and RequestHandler.links have been implemented because QgsServerOgcApiHandler::contentTypes and QgsServerOgcApiHandler::links are not available in Python bindings.
This PR is an extraction of #7