LOADING

initializing...

Pariette

Site & Navigation

Bir web sitesinin veya uygulamanın temeli, genel ayarlar (logo, başlık, seo) ve navigasyon yapısıdır. Pariette, bu verileri tek bir yerden yönetmenize ve API aracılığıyla dinamik olarak çekmenize olanak tanır.

1) Get Environment Info

Sitenizin genel bilgilerini (Başlık, Logo, SEO Meta, Sosyal Medya Linkleri vb.) çekmek için bu endpoint'i kullanılır. Genellikle uygulamanın açılışında (Layout veya App Context) çağrılır.
Request Example
cURL Requestbash
curl --location --request GET 'https://live.pariette.com/api/public/environment/{PARIETTE_TOKEN}' 
--header 'ParietteToken: {YOUR_API_TOKEN}' 
--header 'Locale: tr'
Response Examplejson
{
    "status": true,
    "data": {
        "id": 1,
        "title": "My Awesome Brand",
        "domain": "mybrand.com",
        "cdn_url": "https://cdn.pariette.com/env-1/",
        "design": {
            "logo": "logo.png",
            "favicon": "favicon.ico",
            "primary_color": "#000000"
        },
        "meta": {
            "description": "En iyi ürünler burada.",
            "keywords": "alışveriş, moda"
        },
        "social": {
            "instagram": "https://instagram.com/...",
            "twitter": "https://twitter.com/..."
        }
    }
}
Panelde oluşturduğunuz navigasyon menülerini (Header, Footer, Sidebar vb.) çekmek için kullanılır. Her bir menü, kendi slug'ı ile çağrılır.
Request Example
cURL Requestbash
curl --location --request GET 'https://live.pariette.com/api/public/navigation/{menu_slug}' 
--header 'ParietteToken: {YOUR_API_TOKEN}' 
--header 'Locale: tr'
Response Examplejson
{
    "status": true,
    "data": {
        "id": 10,
        "name": "Main Menu",
        "slug": "main-menu",
        "items": [
            {
                "title": "Ana Sayfa",
                "url": "/",
                "target": "_self",
                "children": []
            },
            {
                "title": "Ürünler",
                "url": "/products",
                "target": "_self",
                "children": [
                    {
                        "title": "Elektronik",
                        "url": "/products/electronics"
                    }
                ]
            },
            {
                "title": "İletişim",
                "url": "/contact"
            }
        ]
    }
}
Tüm navigasyonları tek seferde listelemek isterseniz (örneğin site haritası oluştururken) bu endpoint'i kullanabilirsiniz.
Request Example
cURL Requestbash
curl --location --request GET 'https://live.pariette.com/api/public/navigations' 
--header 'ParietteToken: {YOUR_API_TOKEN}'
Response Examplejson
{
    "status": true,
    "data": [
        { "slug": "main-menu", "name": "Main Menu" },
        { "slug": "footer-menu", "name": "Footer Menu" }
    ]
}