dediagency / sylius-seo-plugin

Sylius SEO Plugin by Dedi.
26 stars 24 forks source link

API Platform #65

Open antiseptikk opened 1 year ago

antiseptikk commented 1 year ago

Hi ! Has anyone tested this plugin with API platform ?

I want to update SeoContent in taxon update route, but I have "Unable to generate an IRI for \"Dedi\\SyliusSEOPlugin\\Entity\\SEOContent\". Error.

With the Taxon GET Route, it's works

"referenceableContent": {
      "@id": "\/api\/v2\/admin\/seo-content\/2396",
      "@type": "SEOContent",
      "id": 2396,
      "translations": {
          "fr_FR": {
              "@id": "\/api\/v2\/admin\/seo-content-translations\/2139",
              "@type": "SEOContentTranslation",
              "id": 2139,
              "notIndexable": false,
              "metadataTitle": "Test",
              "metadataDescription": "Test",
              "openGraphMetadataTitle": "Test",
              "openGraphMetadataDescription": "Test",
              "openGraphMetadataUrl": null,
              "openGraphMetadataImage": "Test",
              "openGraphMetadataType": "website",
              "locale": "fr_FR"
          }
      }
},