What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Is it possible to define sub resources in GLUE? Like /health-check/index/session ? Naming the resour

UNMD3G6CD
UNMD3G6CD Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

Is it possible to define sub resources in GLUE? Like /health-check/index/session ? Naming the resourceType like the route does not ssem to work

Comments

  • Eugenia Poidenko
    Eugenia Poidenko Sprykee Posts: 145 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi!

    Maybe you are looking for a ResourceWithParentPluginInterface? Implementing this interface along with ResourceRoutePluginInterface allows setting the parent resource type. Infrastructure will then interpret the /health-check/index/session as resourceType=session, parent resource = health-check, with parent resource id = index.

  • UNMD3G6CD
    UNMD3G6CD Posts: 38 πŸ§‘πŸ»β€πŸš€ - Cadet

    This sound promising!

  • FYI
    https://documentation.spryker.com/docs/glue-infrastructure
    See sections Resource Routing and Nested Resources.