Score:0

Access block content data from blocks inserted in the layout builder via Restful API

cn flag

I am looking for a way to access the block content data from blocks that were place in the layout builder. I am looking for a way to do it using the Restful WebService module and not JSON-API.

I know it is possible to access the block_content using JSON-API like so : http://contenta.ddev.site/api/block_content/card/3a9e181a-659b-4adf-ad1d-f854674147cc

but I am looking to use the Restful module and I already tried :

http://contenta.ddev.site/block/3a9e181a-659b-4adf-ad1d-f854674147cc?_format=json

Gives it me this error message :

The "block_content" parameter was not converted for the path "/block/{block_content}" (route name: "rest.entity.block_content.GET")

What is the difference and is there a way to fix it ?

Thank you in advance

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.