Glue Backend Request Validation

LukasB
LukasB lukas.bruecklmeier@unic.com Posts: 13 ✨ - Novice

Hello everybody,

is there a way to validate a request to the glue backend api in the same way that is described for the storefront api here ?

https://docs.spryker.com/docs/dg/dev/glue-api/202404.0/glue-api-tutorials/validate-rest-request-format.html#install-the-coderestrequestvalidationcode-module?

Answers

  • LukasB
    LukasB lukas.bruecklmeier@unic.com Posts: 13 ✨ - Novice

    Thanks @profuel!

    I saw the ValidateRestRequestAttributesPlugin in the Storefront Glue yesterday and added it to the Backend Dependency Provider. After getting an error I though I ask here if there is an easier way without that much customization. But then it's clear to me what needs to be done - thanks!