Skip to content

Inconsistent examples for Glue Resource Plugin implementation #1622

Open
@VladyslavSikailo

Description

@VladyslavSikailo

On the page
https://docs.spryker.com/docs/scos/dev/glue-api-guides/202204.0/decoupled-glue-infrastructure/how-to-guides/routing/how-to-create-a-storefront-resource.html
it shows how to implement \Pyz\Glue\ModuleRestApi\Plugin\JsonConventionModuleResource

There are 2 problems with that:

  1. It implements JsonApiResourceInterface which is not present in any use section and doesn't exist in the codebase at all
  2. It conflicts with the approach that is used in the https://docs.spryker.com/docs/scos/dev/glue-api-guides/202204.0/glue-api-tutorials/implement-a-rest-api-resource.html#route-requests-to-your-controller for WishlistsResourceRoutePlugin

By the way the approach from second points implements \Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ResourceRoutePluginInterface so it's not clear what should I use.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions