This commit is contained in:
47
Blocks.http
Normal file
47
Blocks.http
Normal file
@@ -0,0 +1,47 @@
|
||||
### 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": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user