Skip to content
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

[Feature] Cache manager API #4

Closed
wants to merge 5 commits into from
Closed

Conversation

rldhont
Copy link
Contributor

@rldhont rldhont commented May 25, 2021

This feature introduces a new QGIS Server API to get information about WMTS disk cache and to delete disk cache content

The available URLs are:

  • /cachemngr.json
    • to get information on the WMTS disk cache
  • /cachemngr/collections.json
    • to get the list of collections, QGIS projects, that have WMTS disk cache
  • /cachemngr/collections/(?[^/]+?).json
    • to get information on a collection, QGIS project, WMTS disk cache
    • to delete the collection, QGIS Project, WMTS disk cache
  • /cachemngr/collections/(?[^/]+?)/docs.json
    • to get information on a collection, QGIS project, WMTS documents disk cache
    • to delete the collection, QGIS Project, WMTS documents disk cache
  • /cachemngr/collections/(?[^/]+?)/layers.json
    • to get information on a collection, QGIS project, WMTS layers tiles disk cache
    • to delete the collection, QGIS Project, WMTS layers tiles disk cache
  • /cachemngr/collections/(?[^/]+?)/layers/(?[^/]+?).json
    • to get information on a collection, QGIS project, WMTS layer tiles disk cache
    • to delete the collection, QGIS Project, WMTS layer tiles disk cache

To delete some cache, you have to use Delete HTTP method over the dedicated URL.

Funded by Ifremer

@rldhont rldhont added the enhancement New feature or request label May 25, 2021
Comment on lines +60 to +69
* /cachemngr/collection/(?<collectionId>[^/]+?).json
* to get information on a collection, QGIS project, WMTS disk cache
* to delete the collection, QGIS Project, WMTS disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/docs.json
* to get information on a collection, QGIS project, WMTS documents disk cache
* to delete the collection, QGIS Project, WMTS documents disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers.json
* to get information on a collection, QGIS project, WMTS layers tiles disk cache
* to delete the collection, QGIS Project, WMTS layers tiles disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers/(?<layerId>[^/]+?).json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* /cachemngr/collection/(?<collectionId>[^/]+?).json
* to get information on a collection, QGIS project, WMTS disk cache
* to delete the collection, QGIS Project, WMTS disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/docs.json
* to get information on a collection, QGIS project, WMTS documents disk cache
* to delete the collection, QGIS Project, WMTS documents disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers.json
* to get information on a collection, QGIS project, WMTS layers tiles disk cache
* to delete the collection, QGIS Project, WMTS layers tiles disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers/(?<layerId>[^/]+?).json
* /cachemngr/collections/(?<collectionId>[^/]+?).json
* to get information on a collection, QGIS project, WMTS disk cache
* to delete the collection, QGIS Project, WMTS disk cache
* /cachemngr/collections/(?<collectionId>[^/]+?)/docs.json
* to get information on a collection, QGIS project, WMTS documents disk cache
* to delete the collection, QGIS Project, WMTS documents disk cache
* /cachemngr/collections/(?<collectionId>[^/]+?)/layers.json
* to get information on a collection, QGIS project, WMTS layers tiles disk cache
* to delete the collection, QGIS Project, WMTS layers tiles disk cache
* /cachemngr/collections/(?<collectionId>[^/]+?)/layers/(?<layerId>[^/]+?).json

Fix the docs

@Gustry
Copy link
Member

Gustry commented Jun 11, 2021

@rldhont I have rebased your branch on top of master and fixed conflicts.
You got a few after #5

@Gustry
Copy link
Member

Gustry commented Jun 11, 2021

@rldhont @dmarteau I have also added a changelog.md file so it would need to edited before tagging to keep track.

rldhont and others added 5 commits June 11, 2021 11:09
This feature introduces a new QGIS Server API to get information about WMTS disk cache and to delete disk cache content

The available URLs are:
* /cachemngr.json
  * to get information on the WMTS disk cache
* /cachemngr/collections.json
  * to get the list of collections, QGIS projects, that have WMTS disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?).json
  * to get information on a collection, QGIS project, WMTS disk cache
  * to delete the collection, QGIS Project, WMTS disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/docs.json
  * to get information on a collection, QGIS project, WMTS documents disk cache
  * to delete the collection, QGIS Project, WMTS documents disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers.json
  * to get information on a collection, QGIS project, WMTS layers tiles disk cache
  * to delete the collection, QGIS Project, WMTS layers tiles disk cache
* /cachemngr/collection/(?<collectionId>[^/]+?)/layers/(?<layerId>[^/]+?).json
  * to get information on a collection, QGIS project, WMTS layer tiles disk cache
  * to delete the collection, QGIS Project, WMTS layer tiles disk cache

To delete some cache, you have to use Delete HTTP method over the dedicated URL.
@rldhont
Copy link
Contributor Author

rldhont commented Jul 22, 2021

@dmarteau you have enhance this PR, do we merge it and you will update your branch and PR ?

@rldhont
Copy link
Contributor Author

rldhont commented Jul 22, 2021

I close this one to merge #6

@rldhont rldhont closed this Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants