template-annotations API not working

Skip to first unread message

Jens Ihrig - JobRad

May 24, 2022, 10:13:05 AMMay 24
to Magnolia User Mailing List
I am playing around with @magnolia/react-editor.

doing so i wanted to fetch the Template Definions via the SPA templating API.

a call to http://localhost:8080/.rest/template-definitions/v1/mtk:components/textImage
works like a charm and returns 



{"error":{"code":"notFound","message":"Node with path 'mtk:components/textImage' cannot be found."}}

I use Magnolia DXCore with Version 6.2.18. 

Do i have to 'activate the template-annotations enpoint somehow ?

Christopher Zimmermann

May 24, 2022, 11:05:57 AMMay 24
to user...@magnolia-cms.com
Hi Jens,
The API works differntly - it takes the path of the page rather than the id of a template.

If you have not - I'd recommend checking out this tutorial/demo project:

Also, check this out:

Cheers, Topher

You received this message because you are subscribed to the Google Groups "Magnolia User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to user-list+...@magnolia-cms.com.
To view this discussion on the web, visit https://groups.google.com/a/magnolia-cms.com/d/msgid/user-list/42c8b2b5-19fe-4789-aed9-0b738d2e18b1n%40magnolia-cms.com.

Best regards,

Christopher Zimmermann Product Manager 

Oslo-Strasse 2, 4142 Münchenstein (Basel), Switzerland
Office: +41 61 228 90 00 www.magnolia-cms.com

Reply all
Reply to author
Message has been deleted
0 new messages