{
    "name": "cms",
    "connector": "rest",
    "options": {
        "baseUrl": "CMS_SERVICE_URL",
        "headers": {
            "accept": "application/json",
            "content-type": "application/json"
        }
    },
    "crud": true,
    "operations": [
        {
            "template": {
                "method": "GET",
                "url": "/cms/{model}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filters": "{filter}",
                    "populate": "{populate}"
                }
            },
            "functions": {
                "getAll": [
                    "model",
                    "token",
                    "filter",
                    "populate"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/cms/{model}/{id}",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getById": [
                    "model",
                    "id",
                    "token",
                    "filter"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/cms/strapiurl",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "tenantId": "{tenantId}"
                }
            },
            "functions": {
                "getUrl": [
                    "token",
                    "tenantId"
                ]
            }
        },
        {
            "template": {
                "method": "GET",
                "url": "/cms/{model}/count",
                "headers": {
                    "content-type": "application/json",
                    "Authorization": "{token}"
                },
                "query": {
                    "filter": "{filter}"
                }
            },
            "functions": {
                "getCount": [
                    "model",
                    "token",
                    "filter"
                ]
            }
        }
    ]
}
