Public Get Page
curl --request GET \
--url https://api.vellaro.io/api/v1/cms/pages/{slug}import requests
url = "https://api.vellaro.io/api/v1/cms/pages/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vellaro.io/api/v1/cms/pages/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vellaro.io/api/v1/cms/pages/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vellaro.io/api/v1/cms/pages/{slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vellaro.io/api/v1/cms/pages/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/cms/pages/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"slug": "<string>",
"page_type": "<string>",
"title_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"version_no": 123,
"blocks": [
{}
]
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}cms-pages
Public Get Page
Public: the PUBLISHED block-tree for a page. 404 if the page is missing or has never been published (drafts/superseded are never served here).
GET
/
api
/
v1
/
cms
/
pages
/
{slug}
Public Get Page
curl --request GET \
--url https://api.vellaro.io/api/v1/cms/pages/{slug}import requests
url = "https://api.vellaro.io/api/v1/cms/pages/{slug}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.vellaro.io/api/v1/cms/pages/{slug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vellaro.io/api/v1/cms/pages/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.vellaro.io/api/v1/cms/pages/{slug}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.vellaro.io/api/v1/cms/pages/{slug}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vellaro.io/api/v1/cms/pages/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"slug": "<string>",
"page_type": "<string>",
"title_i18n": {},
"meta_title_i18n": {},
"meta_description_i18n": {},
"version_no": 123,
"blocks": [
{}
]
},
"meta": {
"page": 123,
"page_size": 123,
"total": 123,
"total_pages": 123
},
"error": "<string>",
"error_code": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Parametri del percorso
Risposta
Successful Response
Public (storefront) view — the published block-tree + SEO metadata.
Reused verbatim by the draft-preview endpoint (F2): same envelope, but the
blocks/version_no come from the DRAFT version instead of the
published one, so the composer iframe renders exactly what publishing would.
Show child attributes
Show child attributes
Show child attributes
Show child attributes