Files
compositor/Blocks.http
Guillaume Dugas 90ac1fe6b4
Some checks failed
Maven build / build (push) Failing after 54s
Init (1)
2026-02-19 22:14:54 +01:00

48 lines
830 B
HTTP

### Render a simple template
POST http://localhost:8080/blocks/template/render
Content-Type: application/json
{
"definitions": {
"defsId": [
{
"name": "html",
"inputs": {
"name": "toto"
},
"slots": {
"content": [
{
"name": "html",
"inputs": {
"name": "slot content"
}
}
]
}
}
]
}
}
### Render a block configuration
POST http://localhost:8080/blocks/configuration/render
Content-Type: application/json
{
"definitions": {
"defsId": [
{
"name": "product",
"inputs": {
"product": {
"title": "TEA",
"name": "Visiting Eiffel Tower"
}
},
"slots": {}
}
]
}
}