Skip to content

XPublish has only one route when used with new plugin system #170

Closed Answered by abkfenris
mpiannucci asked this question in Q&A
Discussion options

You must be logged in to vote

When you specify plugins in xpublish.Rest() it disables automatic loading of the default plugins.

How plugins are loaded

If you want to add to the default plugins, you can use either xpublish.Rest.register_plugin() to add them one by one, or you can load the default plugins and then add yours to the dict before initializing xpublish.Rest.

rest = xpublish.Rest(
    app_kws={
        "title": 'XREDS',
        "description": 'XArray Environmental Data Services exposes environmental model data in common data formats for digestion in applications and notebooks',
        "openapi_url": "/xreds.json",
    },
    cache_kws={
        "available_bytes": 1e9
    },
    datasets=None,
)
rest.register…

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@abkfenris
Comment options

@mpiannucci
Comment options

@mpiannucci
Comment options

@abkfenris
Comment options

@mpiannucci
Comment options

Answer selected by mpiannucci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants